From: Daniel Jacobowitz <drow@false.org>
To: Nikolay Molchanov <Nikolay.Molchanov@Sun.COM>
Cc: gdb@sourceware.org
Subject: Re: Can I use -exec-interrupt to stop the inferior program?
Date: Wed, 11 Oct 2006 13:49:00 -0000 [thread overview]
Message-ID: <20061011134916.GA25745@nevyn.them.org> (raw)
In-Reply-To: <452C936F.2080704@sun.com>
On Tue, Oct 10, 2006 at 11:47:11PM -0700, Nikolay Molchanov wrote:
> Nick Roberts suggested to use signals to implement "interrupt" action,
> and it really works very well on Unix (Solaris and Linux), but unfortunately
> it does not work properly on Windows. If I send SIGTSTP, gdb does not
> show that the program is stopped (and it really does not stop), so it looks
> like this signal is ignored. If I send SIGINT, the program is really
> interrupted,
> but it seems to cause SIGSEGV (Segmentation Fault), and there is no way
> to continue the debugging. Here is a scenario (I use Cygwin):
You should be using SIGINT for this, yes. Windows SIGINT is funny, but
if you're dealing with Cygwin, it should be OK - in theory. It doesn't
work for me either; I get the program exiting with code 01000, instead
of a segfault, but the result is equally useless.
Maybe this is a bug in Cygwin?
Eventually, you'll be able to do this properly in GDB. Nick has been
working hard on asynchronous operation, and once that's ready, we can
implement the -exec-interrupt operation using Windows API calls. In
the mean time, I have no idea.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2006-10-11 13:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-11 6:47 Nikolay Molchanov
2006-10-11 13:49 ` Daniel Jacobowitz [this message]
2006-10-11 17:32 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2006-05-15 21:51 Nikolay Molchanov
2006-05-16 11:35 ` Nick Roberts
2006-05-18 16:19 ` Carlos Eduardo Rodrigues de Almeida
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=20061011134916.GA25745@nevyn.them.org \
--to=drow@false.org \
--cc=Nikolay.Molchanov@Sun.COM \
--cc=gdb@sourceware.org \
/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