diff options
author | Jim Ingham <jingham@apple.com> | 2023-03-15 11:20:20 -0700 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2023-03-15 16:45:14 -0700 |
commit | fe61b38258bf4c5f34c32de26f4ed11ef5c32ebc (patch) | |
tree | 749c0ee49b856c7536015fd6123e2013eb75d421 /lldb/source/API/SBCommandInterpreter.cpp | |
parent | a0a76804c4b56058ba3dcd7374bcaec2fec3978e (diff) | |
download | llvm-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.cpp | 8 |
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) { |