From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16338 invoked by alias); 22 Aug 2002 14:19:23 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 16328 invoked from network); 22 Aug 2002 14:19:21 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 22 Aug 2002 14:19:21 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17hso1-0008IN-00; Thu, 22 Aug 2002 09:19:25 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17hsof-0006cM-00; Thu, 22 Aug 2002 10:20:05 -0400 Date: Thu, 22 Aug 2002 07:19:00 -0000 From: Daniel Jacobowitz To: Datoda Cc: gdb@sources.redhat.com Subject: Re: PTRACE_SYSCALL on Intel Linux Message-ID: <20020822142005.GA12965@nevyn.them.org> Mail-Followup-To: Datoda , gdb@sources.redhat.com References: <20020822141332.64923.qmail@web11201.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020822141332.64923.qmail@web11201.mail.yahoo.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-08/txt/msg00260.txt.bz2 On Thu, Aug 22, 2002 at 07:13:32AM -0700, Datoda wrote: > Hi, > > This ptrace request sigtraps at the entry and at > the exit of a system call. It is not clear to me how > to tell whether it's at the entry or at the exit. Does > anyone have an idea? Thanks. There is no way to tell. If you use the TRACESYSGOOD option, you can at least distinguish it from normal breakpoints. Then you count how many you've had. I have some additional kernel patches to make TRACESYSGOOD work on all architectures, but it should already work on Intel. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer