This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/4] catch syscall -- try 4 -- Architecture-independent part
- From: Pedro Alves <pedro at codesourcery dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: Sérgio Durigan Júnior <sergiodj at linux dot vnet dot ibm dot com>, gdb-patches at sourceware dot org
- Date: Mon, 9 Mar 2009 18:31:43 +0000
- Subject: Re: [PATCH 1/4] catch syscall -- try 4 -- Architecture-independent part
- References: <1232929831.26873.22.camel@miki> <1236539758.28243.6.camel@miki> <20090309131856.GA16796@caradoc.them.org>
On Monday 09 March 2009 13:18:56, Daniel Jacobowitz wrote:
> > > Not sure that the flag exists any more, but you're trying to avoid it
> > > when called by startup_inferior. ?I suppose you could use the
> > > inferior_created observer (not new_inferior! ?The distinction is not
> > > too clear in the manual but that one is too early). ?The problem is,
> > > again, that this flag needs to be per-inferior.
> > >
> > > Pedro, any thoughts?
Makes sense to me.
Alternatively, can we use inf->stop_soon != STOP_QUIETLY for this?
This flag is already per-inferior. The only small problem is, since
startup_inferior was rewritten to not use wait_for_inferior, we're not
setting stop_soon = STOP_QUIETLY while in there anymore. We could
bring that bit back again. Just something like setting stop_soon = STOP_QUIETLY
on entry to startup_inferior, and clear it on exit to NO_STOP_QUIETLY on
exit.
--
Pedro Alves