Trying to trace 32 bit executable under SPARC

here is the script
typedef struct spwd{
          char           *sp_namp;     /* login name */
          char           *sp_pwdp;     /* encrypted passwd */
          int            sp_lstchg;    /* date of last change */
          int            sp_min;       /* min days to passwd change */
          int            sp_max;       /* max days to passwd change*/
          int            sp_warn;      /* warning period */
          int            sp_inact;     /* max days inactive */
          int            sp_expire;    /* account expiry date */
          unsigned int   sp_flag;      /* not used */
       } spwd_t;


pid$target::getspnam:return {
     self->spwd = (spwd_t *)(uint32_t *)copyin(arg1, sizeof(spwd_t));
     printf("name: %s", copyinstr(*(uint32_t *)self->spwd->sp_namp));
}

getting an invalid address

dtrace: error on enabled probe ID 1 (ID 76178: 
pid14270:libc.so.1:getspnam:return): invalid address (0x6e32333300000000) in 
action #6 at DIF offset 8

Any ideas?

Thanks
-- 
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to