summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2021-04-13 09:25:37 +0200
committerPavel Labath <pavel@labath.sk>2021-04-13 09:49:38 +0200
commitc9cf394f796e181b9ee3bc9b69d84fbbba2fe45c (patch)
treee7b4ff511b7997b3d59e54a91dd6b05b284cfb4a /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parentaa6eb2af10094e427827343b67b25d606dde10b7 (diff)
[lldb] Replace NativeProcess delegate list with a single delegate
In all this time, we've never used more than one delegate. The logic to support multiple delegates is therefore untested, and becomes particularly unwieldy once we need to support multiple processes. Just remove it.
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
index 418a7a39be2a..4880d4dc5d81 100644
--- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
@@ -917,7 +917,7 @@ bool NativeProcessLinux::MonitorClone(
MainLoop unused_loop;
NativeProcessLinux child_process{static_cast<::pid_t>(child_pid),
m_terminal_fd,
- *m_delegates[0],
+ m_delegate,
m_arch,
unused_loop,
{static_cast<::pid_t>(child_pid)}};