[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.
This commit is contained in:
Pavel Labath
2021-04-13 09:25:37 +02:00
parent aa6eb2af10
commit c9cf394f79
5 changed files with 11 additions and 87 deletions

View File

@@ -1018,7 +1018,7 @@ void NativeProcessNetBSD::MonitorClone(::pid_t child_pid) {
MainLoop unused_loop;
NativeProcessNetBSD child_process{static_cast<::pid_t>(child_pid),
m_terminal_fd, *m_delegates[0], m_arch,
m_terminal_fd, m_delegate, m_arch,
unused_loop};
child_process.Detach();
Status pt_error =