mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
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.
This commit is contained in:
parent
6c0005b8f4
commit
b07993f695
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user