Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Alan Curry <pacman@TheWorld.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [rfc] catch syscall
Date: Sat, 07 Jul 2007 00:51:00 -0000	[thread overview]
Message-ID: <20070707005051.GA14000@caradoc.them.org> (raw)
In-Reply-To: <200707062348.l66Nm63I461200@shell01.TheWorld.com>

On Fri, Jul 06, 2007 at 07:48:06PM -0400, Alan Curry wrote:
> >> 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.

I don't know.  The best answer may be to not use the generic routine
any more.  There is not much of one, and some of it (the ptid check)
is not required with the linux-nat usage.

-- 
Daniel Jacobowitz
CodeSourcery


      reply	other threads:[~2007-07-07  0:51 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
2007-07-07  0:51         ` 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=20070707005051.GA14000@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=pacman@TheWorld.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