diff options
author | Zachary Turner <zturner@google.com> | 2014-11-07 23:44:13 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2014-11-07 23:44:13 +0000 |
commit | 02862bc83acd8d10a0a8b6cea4b63a25f46ad68a (patch) | |
tree | 7054d08ca1d879f139d86ab1a5f75981028fcb91 /lldb/source/Plugins/Process/Windows/ProcessWindows.cpp | |
parent | c15788a23a3695e32b590644f78ab3d6931a12a5 (diff) | |
download | bcm5719-llvm-02862bc83acd8d10a0a8b6cea4b63a25f46ad68a.tar.gz bcm5719-llvm-02862bc83acd8d10a0a8b6cea4b63a25f46ad68a.zip |
Remove the top-level DebugDriverThread in ProcessWindows.
Originally the idea was that we would queue requests to a master
thread that would dispatch them to other slave threads each
responsible for debugging an individual process. This might make
some scenarios more scalable and responsive, but for now it seems
to be unwarranted complexity for no observable benefit.
llvm-svn: 221561
Diffstat (limited to 'lldb/source/Plugins/Process/Windows/ProcessWindows.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Windows/ProcessWindows.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp b/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp index be302bdc7cf..f0edeaeeaaa 100644 --- a/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp +++ b/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp @@ -27,8 +27,7 @@ #include "lldb/Target/FileAction.h" #include "lldb/Target/Target.h" -#include "DebugDriverThread.h" -#include "DebugProcessLauncher.h" +#include "DebuggerThread.h" #include "LocalDebugDelegate.h" #include "ProcessMessages.h" #include "ProcessWindows.h" @@ -56,7 +55,6 @@ ProcessWindows::Initialize() PluginManager::RegisterPlugin(GetPluginNameStatic(), GetPluginDescriptionStatic(), CreateInstance); - DebugDriverThread::Initialize(); } } @@ -75,7 +73,6 @@ ProcessWindows::~ProcessWindows() void ProcessWindows::Terminate() { - DebugDriverThread::Teardown(); } lldb_private::ConstString @@ -108,12 +105,9 @@ ProcessWindows::DoLaunch(Module *exe_module, SetPrivateState(eStateLaunching); if (launch_info.GetFlags().Test(eLaunchFlagDebug)) { - // If we're trying to debug this process, we need to use a - // DebugProcessLauncher so that we can enter a WaitForDebugEvent loop - // on the same thread that does the CreateProcess. DebugDelegateSP delegate(new LocalDebugDelegate(shared_from_this())); - DebugProcessLauncher launcher(delegate); - process = launcher.LaunchProcess(launch_info, result); + m_debugger.reset(new DebuggerThread(delegate)); + process = m_debugger->DebugLaunch(launch_info); } else return Host::LaunchProcess(launch_info); |