From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: "'Pedro Alves'" <pedro@codesourcery.com>, <gdb-patches@sourceware.org>
Subject: RE: [RFC] win32-nat.c 'set new-console' and interruption
Date: Mon, 23 Jun 2008 20:33:00 -0000 [thread overview]
Message-ID: <000301c8d566$bb831690$328943b0$@u-strasbg.fr> (raw)
In-Reply-To: <200806231922.10798.pedro@codesourcery.com>
> Anyway, back to the original issue: do we really need to translate
> that SIGTRAP into a SIGINT (from a DebugBreakProcess) ?
This is what I get with my patch:
(top-gdb) set new-c
(top-gdb) r ./gdb
Starting program: /usr/local/src/gdbcvs/build-bare/gdb/gdb.exe ./gdb
[New Thread 480.0x2ec]
[New Thread 480.0xc60]
[New Thread 480.0xae4]
[New Thread 480.0xe7c]
Program received signal SIGINT, Interrupt.
[Switching to Thread 480.0xe7c]
0x7c901231 in ntdll!DbgUiConnectToDbg ()
from /cygdrive/d/WINDOWS/system32/ntdll.dll
(top-gdb)
If I removed the code that transforms the
EXCEPTION_BREAKPOINT into a TARGET_SIGNAL_INT
I get this:
Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 2548.0xf1c]
0x7c901231 in ntdll!DbgUiConnectToDbg ()
from /cygdrive/d/WINDOWS/system32/ntdll.dll
(top-gdb) c
Continuing.
[New Thread 2548.0xd10]
Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 2548.0xd10]
0x7c901231 in ntdll!DbgUiConnectToDbg ()
from /cygdrive/d/WINDOWS/system32/ntdll.dll
I find it cleaner with signal SIGINT,
but it's true that the other option is simpler
and not that different!
Christopher, should I just remove the
ctrl_break_sent variable and let
GDB use SIGTRAP signal?
Pierre Muller
Pascal language support maintainer for GDB
next prev parent reply other threads:[~2008-06-23 19:24 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-21 17:05 Pierre Muller
2008-06-21 18:37 ` Christopher Faylor
2008-06-22 3:17 ` Daniel Jacobowitz
2008-06-22 3:18 ` Corinna Vinschen
2008-06-23 1:04 ` Christopher Faylor
2008-06-23 1:10 ` Corinna Vinschen
2008-06-23 7:40 ` Pierre Muller
2008-06-23 12:00 ` Christopher Faylor
2008-06-23 16:05 ` Pierre Muller
2008-06-23 17:00 ` Pedro Alves
2008-06-23 17:25 ` Pierre Muller
2008-06-23 18:03 ` Christopher Faylor
2008-06-23 19:24 ` Pedro Alves
2008-06-23 20:33 ` Pierre Muller [this message]
2008-06-23 21:06 ` Joel Brobecker
2008-06-24 6:33 ` Christopher Faylor
2008-06-24 13:36 ` [RFC-v3] " Pierre Muller
2008-06-24 2:33 ` [RFC] " Christopher Faylor
2008-06-24 13:54 ` Pedro Alves
2008-06-24 18:29 ` Christopher Faylor
2008-06-22 9:00 ` Christopher Faylor
2008-06-23 8:52 ` [RFC v2] " Pierre Muller
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='000301c8d566$bb831690$328943b0$@u-strasbg.fr' \
--to=muller@ics.u-strasbg.fr \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
/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