From: Alan Curry <pacman@TheWorld.com>
To: drow@false.org (Daniel Jacobowitz)
Cc: gdb-patches@sourceware.org
Subject: Re: [rfc] catch syscall
Date: Fri, 06 Jul 2007 23:48:00 -0000 [thread overview]
Message-ID: <200707062348.l66Nm63I461200@shell01.TheWorld.com> (raw)
In-Reply-To: <20070704220408.GA10362@caradoc.them.org> from "Daniel Jacobowitz" at Jul 04, 2007 06:04:08 PM
Daniel Jacobowitz writes the following:
>
>If you didn't use PTRACE_SYSCALL previously, are you always past the
>point of syscall tracing by the time the process stops? I was worried
>that the first PTRACE_SYSCALL might sometimes take you to an exit
>rather than an entrance. But maybe that never happens.
I've tried to make that happen and I can't.
>
>> We just need to keep track of a single bit of extra state for each inferior
>> thread, to know what type of syscall event is expected next. I'm just having
>> a hard time finding where per-inferior-thread information is supposed to be
>> stored.
>
>This would probably be Linux-specific data, at least for now. Take a
>look at the LWP list in linux-nat.c.
If we want the generic code in inf-ptrace.c to behave differently (for
example using PTRACE_SYSCALL instead of PTRACE_SINGLESTEP) depending on the
value of a flag in that Linux-specific data, how do we get at it? Add another
target method to return the flag? I noticed when doing this patch that adding
a target method involves changing code in several different places.
next prev parent reply other threads:[~2007-07-06 23:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-09 20:18 Alan Curry
2007-07-03 17:52 ` Daniel Jacobowitz
2007-07-04 21:36 ` Alan Curry
2007-07-04 22:04 ` Daniel Jacobowitz
2007-07-06 23:48 ` Alan Curry [this message]
2007-07-07 0:51 ` Daniel Jacobowitz
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=200707062348.l66Nm63I461200@shell01.TheWorld.com \
--to=pacman@theworld.com \
--cc=drow@false.org \
--cc=gdb-patches@sourceware.org \
/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