This revision was automatically updated to reflect the committed changes.
Closed by commit rGf42f21746cb8: [lldb][gui] handle Ctrl+C to stop a running
process (authored by llunak).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123015/new/
https://reviews.llvm.org/D123015
Files:
lldb/include/lldb/Interpreter/CommandInterpreter.h
lldb/source/Core/IOHandlerCursesGUI.cpp
Index: lldb/source/Core/IOHandlerCursesGUI.cpp
===================================================================
--- lldb/source/Core/IOHandlerCursesGUI.cpp
+++ lldb/source/Core/IOHandlerCursesGUI.cpp
@@ -7710,7 +7710,9 @@
void IOHandlerCursesGUI::Cancel() {}
-bool IOHandlerCursesGUI::Interrupt() { return false; }
+bool IOHandlerCursesGUI::Interrupt() {
+ return m_debugger.GetCommandInterpreter().IOHandlerInterrupt(*this);
+}
void IOHandlerCursesGUI::GotEOF() {}
Index: lldb/include/lldb/Interpreter/CommandInterpreter.h
===================================================================
--- lldb/include/lldb/Interpreter/CommandInterpreter.h
+++ lldb/include/lldb/Interpreter/CommandInterpreter.h
@@ -610,6 +610,8 @@
bool IsInteractive();
+ bool IOHandlerInterrupt(IOHandler &io_handler) override;
+
protected:
friend class Debugger;
@@ -623,8 +625,6 @@
return ConstString();
}
- bool IOHandlerInterrupt(IOHandler &io_handler) override;
-
void GetProcessOutput();
bool DidProcessStopAbnormally() const;
Index: lldb/source/Core/IOHandlerCursesGUI.cpp
===================================================================
--- lldb/source/Core/IOHandlerCursesGUI.cpp
+++ lldb/source/Core/IOHandlerCursesGUI.cpp
@@ -7710,7 +7710,9 @@
void IOHandlerCursesGUI::Cancel() {}
-bool IOHandlerCursesGUI::Interrupt() { return false; }
+bool IOHandlerCursesGUI::Interrupt() {
+ return m_debugger.GetCommandInterpreter().IOHandlerInterrupt(*this);
+}
void IOHandlerCursesGUI::GotEOF() {}
Index: lldb/include/lldb/Interpreter/CommandInterpreter.h
===================================================================
--- lldb/include/lldb/Interpreter/CommandInterpreter.h
+++ lldb/include/lldb/Interpreter/CommandInterpreter.h
@@ -610,6 +610,8 @@
bool IsInteractive();
+ bool IOHandlerInterrupt(IOHandler &io_handler) override;
+
protected:
friend class Debugger;
@@ -623,8 +625,6 @@
return ConstString();
}
- bool IOHandlerInterrupt(IOHandler &io_handler) override;
-
void GetProcessOutput();
bool DidProcessStopAbnormally() const;
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits