diff options
| author | Luboš Luňák <l.lunak@centrum.cz> | 2022-04-04 10:36:54 +0200 |
|---|---|---|
| committer | Luboš Luňák <l.lunak@centrum.cz> | 2022-04-07 21:58:37 +0200 |
| commit | f42f21746cb8b940518bf37e5917d61542d278b7 (patch) | |
| tree | 3347312df0a1f3071dc88c3de8d8b55bd1f34e10 /lldb/source/Core/IOHandlerCursesGUI.cpp | |
| parent | 65942554e23ffcc5a48bb48d686b2f2986a59310 (diff) | |
[lldb][gui] handle Ctrl+C to stop a running process
Differential Revision: https://reviews.llvm.org/D123015
Diffstat (limited to 'lldb/source/Core/IOHandlerCursesGUI.cpp')
| -rw-r--r-- | lldb/source/Core/IOHandlerCursesGUI.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Core/IOHandlerCursesGUI.cpp b/lldb/source/Core/IOHandlerCursesGUI.cpp index caf88c7fdf37..c8d86f0e1128 100644 --- a/lldb/source/Core/IOHandlerCursesGUI.cpp +++ b/lldb/source/Core/IOHandlerCursesGUI.cpp @@ -7710,7 +7710,9 @@ IOHandlerCursesGUI::~IOHandlerCursesGUI() = default; void IOHandlerCursesGUI::Cancel() {} -bool IOHandlerCursesGUI::Interrupt() { return false; } +bool IOHandlerCursesGUI::Interrupt() { + return m_debugger.GetCommandInterpreter().IOHandlerInterrupt(*this); +} void IOHandlerCursesGUI::GotEOF() {} |
