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


> It makes sense to do the same on HP/UX as well. It shouldn't be
> very difficult, and I have a 30min window right now, so I'll give
> it a shot.

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?

-- 
Joel


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