[PATCH] winedbg: gdb proxy mode: allow interrupt from command line

Paul Bolle pebolle at tiscali.nl
Wed Nov 4 05:43:21 CST 2009


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).

Fixes http://bugs.winehq.org/show_bug.cgi?id=20534

Signed-off-by: Paul Bolle <pebolle at tiscali.nl>
---
 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 8afabe4..b725afb 100644
--- a/programs/winedbg/gdbproxy.c
+++ b/programs/winedbg/gdbproxy.c
@@ -2218,6 +2218,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);
-- 
1.6.5.1






More information about the wine-patches mailing list