Switch local native code to gdb/nat shared functions
authorKamil Rytarowski <n54@gmx.com>
Wed, 2 Sep 2020 17:32:54 +0000 (19:32 +0200)
committerKamil Rytarowski <n54@gmx.com>
Thu, 10 Sep 2020 13:39:45 +0000 (15:39 +0200)
commitcf4ac4be12c311d387c8bce55f16f5ad3782d77c
tree6f97740c8d0c4add4387ea7acded81bf5243e83b
parentf404573e4f8d22f0f1f87eee4f08fa132b15a9aa
Switch local native code to gdb/nat shared functions

No functional change as the same functionality inlined in nbsd-nat.c
is offered in gdb/nat/netbsd-nat.c.

gdb/ChangeLog:

* nbsd-nat.c: Include "nat/netbsd-nat.h".
* (nbsd_nat_target::pid_to_exec_file)
(nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
(nbsd_nat_target::post_startup_inferior)
(nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
(nbsd_add_threads): Switch local code to common gdb/nat functions.
* (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
* (nbsd_thread_lister): Remove.
gdb/ChangeLog
gdb/nbsd-nat.c