Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Paul Smith <paul@mad-scientist.net>
To: Pedro Alves <palves@redhat.com>, Simon Marchi <simon.marchi@polymtl.ca>
Cc: gdb@sourceware.org
Subject: Re: GDB (not) handling SIGINT...?
Date: Mon, 19 Nov 2018 19:44:00 -0000	[thread overview]
Message-ID: <a72dfb5777cf8d9d55ba561c621935015ecc502e.camel@mad-scientist.net> (raw)
In-Reply-To: <0aa97651789ea8cc5917b73435ab61db5670934a.camel@mad-scientist.net>

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() :)


      reply	other threads:[~2018-11-19 19:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-13 22:37 Paul Smith
2018-11-14 22:32 ` Simon Marchi
2018-11-15 13:55   ` Pedro Alves
2018-11-15 16:01     ` Paul Smith
2018-11-15 16:24       ` Pedro Alves
2018-11-15 18:01         ` Paul Smith
2018-11-15 18:04           ` Pedro Alves
2018-11-15 18:27             ` Paul Smith
2018-11-19 19:07         ` Paul Smith
2018-11-19 19:44           ` Paul Smith [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a72dfb5777cf8d9d55ba561c621935015ecc502e.camel@mad-scientist.net \
    --to=paul@mad-scientist.net \
    --cc=gdb@sourceware.org \
    --cc=palves@redhat.com \
    --cc=simon.marchi@polymtl.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox