Paul Bolle : winedbg: gdb proxy mode: allow interrupt from command line.

Alexandre Julliard julliard at winehq.org
Mon Aug 30 13:00:45 CDT 2010


Module: wine
Branch: master
Commit: 2855fac64584ed1789865a535ecef686470f6af2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2855fac64584ed1789865a535ecef686470f6af2

Author: Paul Bolle <pebolle at tiscali.nl>
Date:   Mon Aug 30 13:33:25 2010 +0200

winedbg: gdb proxy mode: allow interrupt from command line.

Ignore SIGINT (in gdb_startup) so an interrupt from the command line
will break the debuggee and bring up the gdb prompt (instead of killing
both winedbg and the debuggee).

---

 programs/winedbg/gdbproxy.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/programs/winedbg/gdbproxy.c b/programs/winedbg/gdbproxy.c
index 885ff86..4aad6e1 100644
--- a/programs/winedbg/gdbproxy.c
+++ b/programs/winedbg/gdbproxy.c
@@ -2252,6 +2252,7 @@ static BOOL gdb_startup(struct gdb_context* gdbctx, DEBUG_EVENT* de, unsigned fl
             fprintf(stderr, "Cannot create gdb\n");
             return FALSE;
         default: /* in parent... success */
+            signal(SIGINT, SIG_IGN);
             break;
         case 0: /* in child... and alive */
             gdb_exec(imh_mod.LoadedImageName, s_addrs.sin_port, flags);




More information about the wine-cvs mailing list