Implement "info proc cwd" for NetBSD
authorKamil Rytarowski <n54@gmx.com>
Sun, 12 Apr 2020 17:24:01 +0000 (19:24 +0200)
committerKamil Rytarowski <n54@gmx.com>
Sun, 12 Apr 2020 18:15:00 +0000 (20:15 +0200)
commitb4848d2a7b63d6001051f39d50ca965cb4210951
tree8e3346b5c0a11f7621843a7d78e907a87b1d336e
parent51c133d547e21421c678276b0cb53383f5706781
Implement "info proc cwd" for NetBSD

Add nbsd_pid_to_cwd() to query the program current directory.

gdb/ChangeLog:

* nbsd-nat.c (nbsd_pid_to_cwd): Add.
(nbsd_nat_target::info_proc): Add do_cwd.
gdb/ChangeLog
gdb/nbsd-nat.c