https://bugs.winehq.org/show_bug.cgi?id=51766
Bug ID: 51766 Summary: ^C in gdb mode makes debugger quit Product: Wine Version: 6.17 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winedbg Assignee: wine-bugs@winehq.org Reporter: hi-angel@yandex.ru Distribution: ---
# Steps to reproduce
1. Run `winedbg --gdb notepad.exe` 2. Once you're dropped in gdb prompt, press ^C (Ctrl+c)
## Expected
Prompt gets redrawn a line below
## Actual
You are dropped out of winedbg into the terminal.
https://bugs.winehq.org/show_bug.cgi?id=51766
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Confirming. What is weird, winedbg isn't really quit - when you then press "y enter enter" then notepad opens.
https://bugs.winehq.org/show_bug.cgi?id=51766
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #2 from Fabian Maurer dark.shadow4@web.de --- Changing status.
https://bugs.winehq.org/show_bug.cgi?id=51766
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #3 from Bernhard Übelacker bernhardu@mailbox.org --- Created attachment 70681 --> https://bugs.winehq.org/attachment.cgi?id=70681 Slightly improve Ctrl+C handling of winedbg, start, cmd and wineconsole.
This patch makes winedbg survive the Ctrl+C and enables it to break into running debuggees. I guess it will make cmd, start and wineconsole more Ctrl+C-proof than wanted, but might serve as a starting point.
https://bugs.winehq.org/show_bug.cgi?id=51766
--- Comment #4 from Konstantin Kharlamov hi-angel@yandex.ru --- (In reply to Bernhard Übelacker from comment #3)
Created attachment 70681 [details] Slightly improve Ctrl+C handling of winedbg, start, cmd and wineconsole.
This patch makes winedbg survive the Ctrl+C and enables it to break into running debuggees. I guess it will make cmd, start and wineconsole more Ctrl+C-proof than wanted, but might serve as a starting point.
Thank you! I confirm that applying the patch fixes the problem
https://bugs.winehq.org/show_bug.cgi?id=51766
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED CC| |eric.pouech@orange.fr
--- Comment #5 from Eric Pouech eric.pouech@orange.fr --- should be fixed in Wine tree by 4a206a7ecb9d38fa6ef755d7b1cb47fc6ba81bfe
https://bugs.winehq.org/show_bug.cgi?id=51766
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |4a206a7ecb9d38fa6ef755d7b1c | |b47fc6ba81bfe
https://bugs.winehq.org/show_bug.cgi?id=51766
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.0-rc2.