Re: GDB (not) handling SIGINT...?

Paul Smith <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
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() :)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.