From: Daniel Jacobowitz <drow@false.org>
To: PAUL GILLIAM <pgilliam@us.ibm.com>
Cc: Mark Kettenis <mark.kettenis@xs4all.nl>,
kernel-hacker@bennee.com, gdb@sources.redhat.com
Subject: Re: Break on syscall?
Date: Sun, 21 May 2006 13:25:00 -0000 [thread overview]
Message-ID: <20060520001838.GA19268@nevyn.them.org> (raw)
In-Reply-To: <1148076571.315.16.camel@dufur.beaverton.ibm.com>
On Fri, May 19, 2006 at 03:09:31PM -0700, PAUL GILLIAM wrote:
> > traditionally ptrace has no way to request a single step and stop if
> > entering a syscall, so you'd need an arch hook to detect it to handle
> > that case.
> From the ptrace(2) man page on Linux:
>
> PTRACE_SYSCALL, PTRACE_SINGLESTEP
That doesn't conflict with what I said. You can't issue PTRACE_SYSCALL
and PTRACE_SINGLESTEP at the same time.
> The 'ltrace' utility uses this to trace system calls. It uses a sleazy
> table (/etc/ltrace.cfg) to find out about their arguments... GDB should
> be able to do a much better job, although matching syscall numbers to
> their associated library routines would be a challenge (at least for me
> 8-)
GDB can do vastly better, but it's not a small project.
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2006-05-20 0:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-19 10:59 Alex Bennee
2006-05-19 13:43 ` Daniel Jacobowitz
2006-05-19 22:06 ` Mark Kettenis
2006-05-19 23:13 ` Daniel Jacobowitz
2006-05-20 3:00 ` PAUL GILLIAM
2006-05-21 13:25 ` Daniel Jacobowitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060520001838.GA19268@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sources.redhat.com \
--cc=kernel-hacker@bennee.com \
--cc=mark.kettenis@xs4all.nl \
--cc=pgilliam@us.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox