This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PTRACE_SYSCALL on Intel Linux


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]