diff options
author | Jim Ingham <jingham@apple.com> | 2023-05-23 11:13:36 -0700 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2023-07-06 16:19:19 -0700 |
commit | 2b0c8865421287a30ddda0f459f17f76bfeb1358 (patch) | |
tree | d84ecd66f97cef06e8a9b71a44559dc78b2034e4 /lldb/source/Commands/CommandObjectThread.cpp | |
parent | a4a26374aa11d48ac6bf65c78c2aaf8f16414287 (diff) | |
download | llvm-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.cpp | 7 |
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; |