[RFA Darwin]: handle simultaneous signal posting and single-stepping

Tristan Gingold gingold@adacore.com
Tue Jul 7 10:42:00 GMT 2009


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.



More information about the Gdb-patches mailing list