aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandInterpreter.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-04-30 13:17:48 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2020-04-30 13:20:06 -0700
commit32c3224612d84ee7e65907795eaba505f5c90e7c (patch)
tree9403f30a300bfc0185412c3408521d6fa339e292 /lldb/source/Interpreter/CommandInterpreter.cpp
parent21afeddfb25fbde260f84ee6ceaa61e761c1e48c (diff)
downloadllvm-32c3224612d84ee7e65907795eaba505f5c90e7c.zip
llvm-32c3224612d84ee7e65907795eaba505f5c90e7c.tar.gz
llvm-32c3224612d84ee7e65907795eaba505f5c90e7c.tar.bz2
[lldb/CommandInterpreter] Move everything into CommandInterpreterRunOptions
This implements Greg's suggestion from D78825 to include "auto handle events" and "spawn thread" in CommandInterpreterRunOptions. This change is in preparation for adding a new overload for RunCommandInterpreter that takes only SBCommandInterpreterRunOptions and returns SBCommandInterpreterRunResults. Differential revision: https://reviews.llvm.org/D79108
Diffstat (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/CommandInterpreter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp
index 65b3cf5..2be5ca0 100644
--- a/lldb/source/Interpreter/CommandInterpreter.cpp
+++ b/lldb/source/Interpreter/CommandInterpreter.cpp
@@ -2951,7 +2951,6 @@ CommandInterpreter::GetIOHandler(bool force_create,
}
void CommandInterpreter::RunCommandInterpreter(
- bool auto_handle_events, bool spawn_thread,
CommandInterpreterRunOptions &options) {
// Always re-create the command interpreter when we run it in case any file
// handles have changed.
@@ -2959,15 +2958,15 @@ void CommandInterpreter::RunCommandInterpreter(
m_debugger.RunIOHandlerAsync(GetIOHandler(force_create, &options));
m_stopped_for_crash = false;
- if (auto_handle_events)
+ if (options.GetAutoHandleEvents())
m_debugger.StartEventHandlerThread();
- if (spawn_thread) {
+ if (options.GetSpawnThread()) {
m_debugger.StartIOHandlerThread();
} else {
m_debugger.RunIOHandlers();
- if (auto_handle_events)
+ if (options.GetAutoHandleEvents())
m_debugger.StopEventHandlerThread();
}
}