[lldb] Modernize ThreadLauncher
authorPavel Labath <pavel@labath.sk>
Mon, 21 Feb 2022 10:07:38 +0000 (11:07 +0100)
committerPavel Labath <pavel@labath.sk>
Wed, 23 Feb 2022 13:25:59 +0000 (14:25 +0100)
commitd0810779b1f310d99176467d5d5b5aa4e26d7eb5
tree65650a935786a316c13763f0aba49092273f3eae
parent40f908195807953f19322a8d1a193d243dc5bfb6
[lldb] Modernize ThreadLauncher

Accept a function object instead of a raw pointer. This avoids a bunch
of boilerplate typically needed to pass arguments to the thread
functions.

Differential Revision: https://reviews.llvm.org/D120321
22 files changed:
lldb/include/lldb/Core/Communication.h
lldb/include/lldb/Core/Debugger.h
lldb/include/lldb/Host/ThreadLauncher.h
lldb/include/lldb/Target/Process.h
lldb/source/API/SBHostOS.cpp
lldb/source/Core/Communication.cpp
lldb/source/Core/Debugger.cpp
lldb/source/Host/common/Host.cpp
lldb/source/Host/common/HostNativeThreadBase.cpp
lldb/source/Host/common/ThreadLauncher.cpp
lldb/source/Host/macosx/objcxx/Host.mm
lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.h
lldb/source/Plugins/Process/Windows/Common/DebuggerThread.cpp
lldb/source/Plugins/Process/Windows/Common/DebuggerThread.h
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
lldb/source/Target/Process.cpp
lldb/unittests/Host/CMakeLists.txt
lldb/unittests/Host/ThreadLauncherTest.cpp [new file with mode: 0644]