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: [RFA Darwin]: handle simultaneous signal posting and single-stepping



On Jul 7, 2009, at 11:43 AM, Mark Kettenis wrote:

This patch fixes the issue by first single-stepping and keeping in mind that a signal has to be posted.

I'm not sure that single-stepping before sending the signal is right. This means we'll execute an instruction (which potentially affects the way signals are handled) before the program actually sees the signal.

I think a better way to do this is to continue with a signal while
keeping the breakpoints inserted, and deal with hitting the breakpoint
again in the appropriate way.

Doesn't this change the gdb behaviour ? I have no strong opinion on this but this is
generally a concern.


Also, I think this needs to be handled in the generic code.  I'm
facing the same problem on OpenBSD.

Interesting. So I have to work on infrun.c...


Thanks for the comment,
Tristan.


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