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

Paul Bolle pebolle at tiscali.nl
Mon Aug 30 06:33:25 CDT 2010

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

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 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);
         case 0: /* in child... and alive */
             gdb_exec(imh_mod.LoadedImageName, s_addrs.sin_port, flags);

More information about the wine-patches mailing list