This just lets gdb handle the control-c instead of killing winedbg.
fixes https://bugs.winehq.org/show_bug.cgi?id=51766
Signed-off-by: Eric Pouech eric.pouech@gmail.com
--- programs/winedbg/gdbproxy.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/programs/winedbg/gdbproxy.c b/programs/winedbg/gdbproxy.c index 0fb27023957..8d8ae30fce5 100644 --- a/programs/winedbg/gdbproxy.c +++ b/programs/winedbg/gdbproxy.c @@ -2499,6 +2499,8 @@ static int gdb_remote(unsigned flags, unsigned port) struct gdb_context gdbctx;
if (!gdb_init_context(&gdbctx, flags, port)) return 0; + /* don't handle ctrl-c, but let gdb do the job */ + SetConsoleCtrlHandler(NULL, TRUE); for (;;) { fd_set read_fds, err_fds;