GDB (not) handling SIGINT...?

Paul Smith paul@mad-scientist.net
Mon Nov 19 19:44:00 GMT 2018


On Mon, 2018-11-19 at 14:07 -0500, Paul Smith wrote:
> I got around to trying this and it did work... except for one thing:
> when I wanted to continue I had to continue once for each thread in
> my program :-/.  Actually it stopped thread 1 twice, once at first
> then again...

I also discovered that detaching doesn't work properly; I guess we have
to send along a SIGCONT when we detach.  Yep, if I manually kill -CONT
the process after I detach it wakes back up.

So yeah, possibly a reasonable alternative (although I'm not sure about
the delivery of SIGSTOP to each thread...) but it does need a bit more
love than just swapping SIGSTOP for SIGINT in child_pass_ctrlc() :)



More information about the Gdb mailing list