Date: Sun, 30 Jul 2006 08:23:38 GMT From: Howard Su <howardsu@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 102773 for review Message-ID: <200607300823.k6U8NcED023670@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=102773 Change 102773 by howardsu@su_vm on 2006/07/30 08:22:55 Remove syscall number from LWPINFo. There is no clean MI way to do it. And it is easy to get from the userland. Affected files ... .. //depot/projects/dtrace/src/sys/kern/sys_process.c#4 edit .. //depot/projects/dtrace/src/sys/sys/ptrace.h#4 edit Differences ... ==== //depot/projects/dtrace/src/sys/kern/sys_process.c#4 (text+ko) ==== @@ -943,19 +943,16 @@ pl->pl_flags = 0; pl->pl_sigmask = td2->td_sigmask; pl->pl_siglist = td2->td_siglist; - if (data > (int)&((struct ptrace_lwpinfo *)NULL)->pl_sysnum) { - switch(td2->td_xsig_why){ - case PL_EVENT_SYSENTER: - case PL_EVENT_SYSEXIT: - pl->pl_sysnum = td2->td_frame->tf_eax; - break; - case PL_EVENT_SIGNAL: - pl->pl_signal = td2->td_xsig; - break; - } + if (td->td_sig & TD_XSIG) + pl->pl_event = td2->td_xsig_why; + else + pl->pl_event = PL_EVENT_NONE; + switch(td2->td_xsig_why){ + case PL_EVENT_SIGNAL: + pl->pl_signal = td2->td_xsig; + break; } - break; case PT_GETNUMLWPS: ==== //depot/projects/dtrace/src/sys/sys/ptrace.h#4 (text+ko) ==== @@ -100,12 +100,10 @@ sigset_t pl_siglist; /* LWP pending signal */ union { - int _pl_sysnum; int _pl_signal; }pl_data; }; -#define pl_sysnum pl_data._pl_sysnum #define pl_signal pl_data._pl_signal #ifdef _KERNEL
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607300823.k6U8NcED023670>