aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/API/SBCommandInterpreter.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2023-03-15 11:20:20 -0700
committerJim Ingham <jingham@apple.com>2023-03-15 16:45:14 -0700
commitfe61b38258bf4c5f34c32de26f4ed11ef5c32ebc (patch)
tree749c0ee49b856c7536015fd6123e2013eb75d421 /lldb/source/API/SBCommandInterpreter.cpp
parenta0a76804c4b56058ba3dcd7374bcaec2fec3978e (diff)
downloadllvm-fe61b38258bf4c5f34c32de26f4ed11ef5c32ebc.zip
llvm-fe61b38258bf4c5f34c32de26f4ed11ef5c32ebc.tar.gz
llvm-fe61b38258bf4c5f34c32de26f4ed11ef5c32ebc.tar.bz2
Add a Debugger interruption mechanism in conjunction with the
Command Interpreter mechanism. Differential Revision: https://reviews.llvm.org/D145136
Diffstat (limited to 'lldb/source/API/SBCommandInterpreter.cpp')
-rw-r--r--lldb/source/API/SBCommandInterpreter.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/source/API/SBCommandInterpreter.cpp b/lldb/source/API/SBCommandInterpreter.cpp
index 35c5528..36b70bc 100644
--- a/lldb/source/API/SBCommandInterpreter.cpp
+++ b/lldb/source/API/SBCommandInterpreter.cpp
@@ -141,7 +141,13 @@ bool SBCommandInterpreter::IsActive() {
bool SBCommandInterpreter::WasInterrupted() const {
LLDB_INSTRUMENT_VA(this);
- return (IsValid() ? m_opaque_ptr->WasInterrupted() : false);
+ return (IsValid() ? m_opaque_ptr->GetDebugger().InterruptRequested() : false);
+}
+
+bool SBCommandInterpreter::InterruptCommand() {
+ LLDB_INSTRUMENT_VA(this);
+
+ return (IsValid() ? m_opaque_ptr->InterruptCommand() : false);
}
const char *SBCommandInterpreter::GetIOHandlerControlSequence(char ch) {