This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]