Skip to content

Commit

Permalink
[lldb/Debugger] Rename ExecuteIOHandlers to RunIOHandlers (NFC)
Browse files Browse the repository at this point in the history
This improves consistency among the related methods.
  • Loading branch information
JDevlieghere committed Jan 17, 2020
1 parent 8ef57f3 commit 2671df9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lldb/include/lldb/Core/Debugger.h
Expand Up @@ -309,7 +309,7 @@ class Debugger : public std::enable_shared_from_this<Debugger>,

bool LoadPlugin(const FileSpec &spec, Status &error);

void ExecuteIOHandlers();
void RunIOHandlers();

bool IsForwardingEvents();

Expand Down
4 changes: 2 additions & 2 deletions lldb/source/Core/Debugger.cpp
Expand Up @@ -894,7 +894,7 @@ void Debugger::ClearIOHandlers() {
}
}

void Debugger::ExecuteIOHandlers() {
void Debugger::RunIOHandlers() {
while (true) {
IOHandlerSP reader_sp(m_io_handler_stack.Top());
if (!reader_sp)
Expand Down Expand Up @@ -1551,7 +1551,7 @@ void Debugger::StopEventHandlerThread() {

lldb::thread_result_t Debugger::IOHandlerThread(lldb::thread_arg_t arg) {
Debugger *debugger = (Debugger *)arg;
debugger->ExecuteIOHandlers();
debugger->RunIOHandlers();
debugger->StopEventHandlerThread();
return {};
}
Expand Down
2 changes: 1 addition & 1 deletion lldb/source/Interpreter/CommandInterpreter.cpp
Expand Up @@ -2943,7 +2943,7 @@ void CommandInterpreter::RunCommandInterpreter(
if (spawn_thread) {
m_debugger.StartIOHandlerThread();
} else {
m_debugger.ExecuteIOHandlers();
m_debugger.RunIOHandlers();

if (auto_handle_events)
m_debugger.StopEventHandlerThread();
Expand Down

0 comments on commit 2671df9

Please sign in to comment.