From owner-p4-projects@FreeBSD.ORG Sun Jul 30 08:23:39 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8042616A4DF; Sun, 30 Jul 2006 08:23:39 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C33516A4DD for ; Sun, 30 Jul 2006 08:23:39 +0000 (UTC) (envelope-from howardsu@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27E2F43D46 for ; Sun, 30 Jul 2006 08:23:39 +0000 (GMT) (envelope-from howardsu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k6U8Ndji023673 for ; Sun, 30 Jul 2006 08:23:39 GMT (envelope-from howardsu@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6U8NcED023670 for perforce@freebsd.org; Sun, 30 Jul 2006 08:23:38 GMT (envelope-from howardsu@FreeBSD.org) Date: Sun, 30 Jul 2006 08:23:38 GMT Message-Id: <200607300823.k6U8NcED023670@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to howardsu@FreeBSD.org using -f From: Howard Su To: Perforce Change Reviews Cc: Subject: PERFORCE change 102773 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jul 2006 08:23:39 -0000 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