summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/NetBSD
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-01-07 10:59:57 +0000
committerPavel Labath <pavel@labath.sk>2019-01-07 10:59:57 +0000
commitcb8c699802f39aee10c27d4d73de5e14c7dfd09c (patch)
tree3ce4a5d35cb6e54215f798c3e8e862c733385f2a /lldb/source/Plugins/Platform/NetBSD
parent90c09232a2e508da54ee67e61dcdc6b507b5b1f9 (diff)
downloadbcm5719-llvm-cb8c699802f39aee10c27d4d73de5e14c7dfd09c.tar.gz
bcm5719-llvm-cb8c699802f39aee10c27d4d73de5e14c7dfd09c.zip
ProcessLaunchInfo: remove Debugger reference
Summary: The Debuffer object was being used in "GetListenerForProcess" to provide a default listener object if one was not specified in the launch_info object. Since all the callers of this function immediately passed the result to Target::CreateProcess, it was easy to move this logic there instead. This brings us one step closer towards being able to move the LaunchInfo classes to the Host layer (which is there the launching code that consumes them lives). Reviewers: zturner, jingham, teemperor Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D56174 llvm-svn: 350510
Diffstat (limited to 'lldb/source/Plugins/Platform/NetBSD')
-rw-r--r--lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp b/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
index eea0887e9c8..aadcf961c72 100644
--- a/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
+++ b/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
@@ -287,8 +287,8 @@ PlatformNetBSD::DebugProcess(ProcessLaunchInfo &launch_info, Debugger &debugger,
// Now create the gdb-remote process.
LLDB_LOG(log, "having target create process with gdb-remote plugin");
- process_sp = target->CreateProcess(
- launch_info.GetListenerForProcess(debugger), "gdb-remote", nullptr);
+ process_sp =
+ target->CreateProcess(launch_info.GetListener(), "gdb-remote", nullptr);
if (!process_sp) {
error.SetErrorString("CreateProcess() failed for gdb-remote process");
OpenPOWER on IntegriCloud