Author: Jonas Devlieghere Date: 2020-01-16T16:45:47-08:00 New Revision: 2671df9bd675d4a1a07457dce748f4fe939e95fb
URL: https://github.com/llvm/llvm-project/commit/2671df9bd675d4a1a07457dce748f4fe939e95fb DIFF: https://github.com/llvm/llvm-project/commit/2671df9bd675d4a1a07457dce748f4fe939e95fb.diff LOG: [lldb/Debugger] Rename ExecuteIOHandlers to RunIOHandlers (NFC) This improves consistency among the related methods. Added: Modified: lldb/include/lldb/Core/Debugger.h lldb/source/Core/Debugger.cpp lldb/source/Interpreter/CommandInterpreter.cpp Removed: ################################################################################ diff --git a/lldb/include/lldb/Core/Debugger.h b/lldb/include/lldb/Core/Debugger.h index 6ee39f62be98..26fc0ccb5f8e 100644 --- a/lldb/include/lldb/Core/Debugger.h +++ b/lldb/include/lldb/Core/Debugger.h @@ -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(); diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index eafb64173f6a..7fb4baa29390 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -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) @@ -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 {}; } diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index 3701ee1d0d27..e583142a063e 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -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(); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits