[PATCH 1/4] catch syscall -- try 4 -- Architecture-independent part

Pedro Alves pedro@codesourcery.com
Mon Mar 9 18:31:00 GMT 2009


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



More information about the Gdb-patches mailing list