From c9cf394f796e181b9ee3bc9b69d84fbbba2fe45c Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Tue, 13 Apr 2021 09:25:37 +0200 Subject: [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. --- lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp') 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)}}; -- cgit v1.2.3