This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: PTRACE_SYSCALL on Intel Linux
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Datoda <datoda at yahoo dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 22 Aug 2002 10:20:05 -0400
- Subject: Re: PTRACE_SYSCALL on Intel Linux
- References: <20020822141332.64923.qmail@web11201.mail.yahoo.com>
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