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).
This commit is contained in:
Paul Bolle 2010-08-30 13:33:25 +02:00 committed by Alexandre Julliard
parent 1f25534628
commit 2855fac645
1 changed files with 1 additions and 0 deletions

View File

@ -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);