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: [RFC] Support exec tracing on GNU/Linux and HP-UX


On Mon, Oct 22, 2007 at 11:56:27AM -0700, Joel Brobecker wrote:
> Actually, not so simple, because the EXEC event counts as
> one of the 2 events we expect during the startup phase. So the EXEC
> events must be activated at startup-time. The only option I can see
> at this point is to add a static global that is set during the startup
> phase, and would then cause the EXEC event to be translated into a
> SIGTRAP vulgaris when set.  Another approach would be to have infrun
> treat EXEC events as SIGTRAPs during the startup phase. I don't think
> the second option is easier to implement (infrun needs to find out
> whether we're in the middle of startup or not, and then we need to
> redirect EXEC events into SIGTRAP events). What do you think of
> option 1?

Actually, I like option 2 better.  Maybe we can push pending_execs
into a global similar to the (slightly different, though unused at
present) inferior_ignoring_leading_exec_events?

-- 
Daniel Jacobowitz
CodeSourcery


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