winedbg: In gdb proxy mode, ignore ctrl-c.

Let gdb handle the control-c instead of killing winedbg.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51766
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2021-12-15 16:52:52 +01:00 committed by Alexandre Julliard
parent ff7ff4d0b4
commit 4a206a7ecb
1 changed files with 2 additions and 0 deletions

View File

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