aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2023-05-23 11:13:36 -0700
committerJim Ingham <jingham@apple.com>2023-07-06 16:19:19 -0700
commit2b0c8865421287a30ddda0f459f17f76bfeb1358 (patch)
treed84ecd66f97cef06e8a9b71a44559dc78b2034e4 /lldb/source/Commands/CommandObjectThread.cpp
parenta4a26374aa11d48ac6bf65c78c2aaf8f16414287 (diff)
downloadllvm-2b0c8865421287a30ddda0f459f17f76bfeb1358.zip
llvm-2b0c8865421287a30ddda0f459f17f76bfeb1358.tar.gz
llvm-2b0c8865421287a30ddda0f459f17f76bfeb1358.tar.bz2
Refine the reporting mechanism for interruption.
Also, make it possible for new Targets which haven't been added to the TargetList yet to check for interruption, and add a few more places in building modules where we can check for interruption. Differential Revision: https://reviews.llvm.org/D154542
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectThread.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp
index 66a33f5..64f3edc 100644
--- a/lldb/source/Commands/CommandObjectThread.cpp
+++ b/lldb/source/Commands/CommandObjectThread.cpp
@@ -228,8 +228,11 @@ protected:
thread->GetIndexID());
return false;
}
- if (m_options.m_extended_backtrace && !GetDebugger().InterruptRequested()) {
- DoExtendedBacktrace(thread, result);
+ if (m_options.m_extended_backtrace) {
+ if (!INTERRUPT_REQUESTED(GetDebugger(),
+ "Interrupt skipped extended backtrace")) {
+ DoExtendedBacktrace(thread, result);
+ }
}
return true;