From: Daniel Jacobowitz <drow@false.org>
To: Roland Puntaier <Roland.Puntaier@br-automation.com>
Cc: gdb@sourceware.org
Subject: Re: gdb-6.6 mingw port hangs after Ctrl-C
Date: Mon, 20 Aug 2007 16:24:00 -0000 [thread overview]
Message-ID: <20070820162439.GA30242@caradoc.them.org> (raw)
In-Reply-To: <OF8E457D60.CC9CEA8E-ONC125733D.005323EA-C125733D.0056FB5E@br-automation.com>
On Mon, Aug 20, 2007 at 05:49:53PM +0200, Roland Puntaier wrote:
> Dear GDB community,
>
> With cygwin GDB I used to abandon the remote target by twice typing
> Ctrl-C.
>
> I would like to switch to the gdb-6.6 mingw port, because that does not
> need any cygwin dlls.
> But here I ran into a hang:
>
> (gdb) c
> Continuing.
> <twice Ctrl-C goes here>
> Interrupted while waiting for the program.
> Give up (and stop debugging it)? (y or n) y
> <hang>
>
> Maybe someone with a better understanding of gdb sources can give me a
> hint on how to overcome this issue.
Some of us at CodeSourcery keep trying to fix this, but no luck so
far. Control-C handling on Windows is completely different from on
POSIX operating systems, because the handler runs in a new thread
instead of interrupting the main thread of execution. This means
that GDB's signal handling, which relies on longjmp, does not work.
> I've tried to debug into gdb, but the Ctrl-C is intercepted by the GDB I
> use to debug. (Any Idea how I can make GDB stop intercepting Ctrl-C?)
You can try "signal SIGINT pass nostop noprint", but I don't think it
will work right on Windows.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-08-20 16:24 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-20 16:20 Roland Puntaier
2007-08-20 16:24 ` Daniel Jacobowitz [this message]
2007-08-20 19:16 ` Eli Zaretskii
2007-08-20 19:31 ` Daniel Jacobowitz
2007-08-21 2:56 ` Christopher Faylor
2007-08-21 17:42 ` Jim Blandy
2007-08-21 19:09 ` Eli Zaretskii
2007-08-21 23:47 ` Jim Blandy
2007-08-22 3:13 ` Eli Zaretskii
2007-08-22 10:13 ` Dave Korn
2007-08-22 19:17 ` Eli Zaretskii
2007-08-24 9:19 ` Roland Puntaier
2007-08-24 16:12 ` Roland Puntaier
2007-08-21 22:55 ` Christopher Faylor
2007-08-22 11:10 ` Roland Puntaier
2007-08-22 19:20 ` Eli Zaretskii
2007-08-23 2:49 ` 答复: (Rising Spam Alert)Re: " xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
2007-08-23 2:49 ` xchen
[not found] ` <NUTMEGt3HvoFOAmEaJs0000003d@mail.artimi.com>
2007-08-23 9:30 ` Dave Korn
2007-08-21 3:22 ` Eli Zaretskii
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=20070820162439.GA30242@caradoc.them.org \
--to=drow@false.org \
--cc=Roland.Puntaier@br-automation.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