aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/API/SBDebugger.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/SBDebugger.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/SBDebugger.cpp')
-rw-r--r--lldb/source/API/SBDebugger.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp
index d90fcbf..2e7f06c 100644
--- a/lldb/source/API/SBDebugger.cpp
+++ b/lldb/source/API/SBDebugger.cpp
@@ -1699,3 +1699,24 @@ SBDebugger::LoadTraceFromFile(SBError &error,
LLDB_INSTRUMENT_VA(this, error, trace_description_file);
return SBTrace::LoadTraceFromFile(error, *this, trace_description_file);
}
+
+void SBDebugger::RequestInterrupt() {
+ LLDB_INSTRUMENT_VA(this);
+
+ if (m_opaque_sp)
+ m_opaque_sp->RequestInterrupt();
+}
+void SBDebugger::CancelInterruptRequest() {
+ LLDB_INSTRUMENT_VA(this);
+
+ if (m_opaque_sp)
+ m_opaque_sp->CancelInterruptRequest();
+}
+
+bool SBDebugger::InterruptRequested() {
+ LLDB_INSTRUMENT_VA(this);
+
+ if (m_opaque_sp)
+ return m_opaque_sp->InterruptRequested();
+ return false;
+}