PTRACE_SYSCALL on Intel Linux
Daniel Jacobowitz
drow@mvista.com
Thu Aug 22 07:19:00 GMT 2002
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
More information about the Gdb
mailing list