aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectTarget.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/Commands/CommandObjectTarget.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/Commands/CommandObjectTarget.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectTarget.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp
index 490a7e0..5874453 100644
--- a/lldb/source/Commands/CommandObjectTarget.cpp
+++ b/lldb/source/Commands/CommandObjectTarget.cpp
@@ -2004,7 +2004,7 @@ protected:
result.GetOutputStream().EOL();
result.GetOutputStream().EOL();
}
- if (m_interpreter.WasInterrupted())
+ if (GetDebugger().InterruptRequested())
break;
num_dumped++;
DumpModuleSymtab(m_interpreter, result.GetOutputStream(),
@@ -2031,7 +2031,7 @@ protected:
result.GetOutputStream().EOL();
result.GetOutputStream().EOL();
}
- if (m_interpreter.WasInterrupted())
+ if (GetDebugger().InterruptRequested())
break;
num_dumped++;
DumpModuleSymtab(m_interpreter, result.GetOutputStream(),
@@ -2092,7 +2092,7 @@ protected:
result.GetOutputStream().Format("Dumping sections for {0} modules.\n",
num_modules);
for (size_t image_idx = 0; image_idx < num_modules; ++image_idx) {
- if (m_interpreter.WasInterrupted())
+ if (GetDebugger().InterruptRequested())
break;
num_dumped++;
DumpModuleSections(
@@ -2110,7 +2110,7 @@ protected:
FindModulesByName(target, arg_cstr, module_list, true);
if (num_matches > 0) {
for (size_t i = 0; i < num_matches; ++i) {
- if (m_interpreter.WasInterrupted())
+ if (GetDebugger().InterruptRequested())
break;
Module *module = module_list.GetModulePointerAtIndex(i);
if (module) {
@@ -2224,7 +2224,7 @@ protected:
result.GetOutputStream().Format("Dumping clang ast for {0} modules.\n",
num_modules);
for (ModuleSP module_sp : module_list.ModulesNoLocking()) {
- if (m_interpreter.WasInterrupted())
+ if (GetDebugger().InterruptRequested())
break;
if (SymbolFile *sf = module_sp->GetSymbolFile())
sf->DumpClangAST(result.GetOutputStream());
@@ -2249,7 +2249,7 @@ protected:
}
for (size_t i = 0; i < num_matches; ++i) {
- if (m_interpreter.WasInterrupted())
+ if (GetDebugger().InterruptRequested())
break;
Module *m = module_list.GetModulePointerAtIndex(i);
if (SymbolFile *sf = m->GetSymbolFile())
@@ -2298,7 +2298,7 @@ protected:
result.GetOutputStream().Format(
"Dumping debug symbols for {0} modules.\n", num_modules);
for (ModuleSP module_sp : target_modules.ModulesNoLocking()) {
- if (m_interpreter.WasInterrupted())
+ if (GetDebugger().InterruptRequested())
break;
if (DumpModuleSymbolFile(result.GetOutputStream(), module_sp.get()))
num_dumped++;
@@ -2314,7 +2314,7 @@ protected:
FindModulesByName(target, arg_cstr, module_list, true);
if (num_matches > 0) {
for (size_t i = 0; i < num_matches; ++i) {
- if (m_interpreter.WasInterrupted())
+ if (GetDebugger().InterruptRequested())
break;
Module *module = module_list.GetModulePointerAtIndex(i);
if (module) {
@@ -2381,7 +2381,7 @@ protected:
if (target_modules.GetSize() > 0) {
uint32_t num_dumped = 0;
for (ModuleSP module_sp : target_modules.ModulesNoLocking()) {
- if (m_interpreter.WasInterrupted())
+ if (GetDebugger().InterruptRequested())
break;
if (DumpCompileUnitLineTable(
m_interpreter, result.GetOutputStream(), module_sp.get(),