diff options
author | Kamil Rytarowski <n54@gmx.com> | 2020-10-02 04:17:57 +0200 |
---|---|---|
committer | Kamil Rytarowski <kamil@moritz.systems> | 2020-10-13 16:28:29 +0200 |
commit | b07993f695bdca0153ee7b9123be9348f6aad4a6 (patch) | |
tree | bb2d736c52fdc8290f8aff6a06deabb2c0576d61 | |
parent | 6c0005b8f4a8bf5f239be761deee6e5ee4faa25e (diff) | |
download | gdb-b07993f695bdca0153ee7b9123be9348f6aad4a6.zip gdb-b07993f695bdca0153ee7b9123be9348f6aad4a6.tar.gz gdb-b07993f695bdca0153ee7b9123be9348f6aad4a6.tar.bz2 |
Remove unneeded netbsd_add_process()
Currently it does not add any value.
The netbsd_tdesc local variable is no longer needed. Remove it.
The tdesc value is set by the low target now.
gdbserver/ChangeLog:
* netbsd-low.cc (netbsd_tdesc): Remove.
(netbsd_add_process): Likewise.
(netbsd_process_target::create_inferior): Update.
-rw-r--r-- | gdbserver/ChangeLog | 6 | ||||
-rw-r--r-- | gdbserver/netbsd-low.cc | 15 |
2 files changed, 7 insertions, 14 deletions
diff --git a/gdbserver/ChangeLog b/gdbserver/ChangeLog index 79e6a37..e93e4ea 100644 --- a/gdbserver/ChangeLog +++ b/gdbserver/ChangeLog @@ -1,3 +1,9 @@ +2020-10-13 Kamil Rytarowski <n54@gmx.com>x + + * netbsd-low.cc (netbsd_tdesc): Remove. + (netbsd_add_process): Likewise. + (netbsd_process_target::create_inferior): Update. + 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com> * linux-arc-low.cc (arc_linux_read_description): Release the diff --git a/gdbserver/netbsd-low.cc b/gdbserver/netbsd-low.cc index 30028d3..b9b8caf 100644 --- a/gdbserver/netbsd-low.cc +++ b/gdbserver/netbsd-low.cc @@ -43,19 +43,6 @@ int using_threads = 1; -const struct target_desc *netbsd_tdesc; - -/* Call add_process with the given parameters, and initialize - the process' private data. */ - -static void -netbsd_add_process (int pid, int attached) -{ - struct process_info *proc = add_process (pid, attached); - proc->tdesc = netbsd_tdesc; - proc->priv = nullptr; -} - /* Callback used by fork_inferior to start tracing the inferior. */ static void @@ -100,7 +87,7 @@ netbsd_process_target::create_inferior (const char *program, get_environ ()->envp (), netbsd_ptrace_fun, nullptr, nullptr, nullptr, nullptr); - netbsd_add_process (pid, 0); + add_process (pid, 0); post_fork_inferior (pid, program); |