This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Break on syscall?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Alex Bennee <kernel-hacker at bennee dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 19 May 2006 08:48:35 -0400
- Subject: Re: Break on syscall?
- References: <1148033730.30951.15.camel@okra.transitives.com>
On Fri, May 19, 2006 at 11:15:30AM +0100, Alex Bennee wrote:
> Is it possible to get gdb to break on entering/exiting a syscall (rather
> than breaking on entering libc or some such)?
This is not supported.
> Does gdb use ptrace() to
> control breakpoints in the debugged code?
Breakpoints are inserted usually using PTRACE_POKETEXT.
--
Daniel Jacobowitz
CodeSourcery