aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2020-04-12 23:47:06 +0200
committerKamil Rytarowski <n54@gmx.com>2020-04-13 11:49:36 +0200
commit1085dfd4e1242fab231b26093882f4e2526d14d0 (patch)
tree0b0498b834b287f761c1d53a08ba1bac6c7fd960 /gdb
parentb23b09ad315f311d33d0f36d3ef90af397953d36 (diff)
downloadfsf-binutils-gdb-1085dfd4e1242fab231b26093882f4e2526d14d0.zip
fsf-binutils-gdb-1085dfd4e1242fab231b26093882f4e2526d14d0.tar.gz
fsf-binutils-gdb-1085dfd4e1242fab231b26093882f4e2526d14d0.tar.bz2
Implement IP_MINIMAL and IP_ALL on NetBSD
gdb/ChangeLog: * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and IP_ALL.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/nbsd-nat.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6fd3836..7d91abf 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2020-04-12 Kamil Rytarowski <n54@gmx.com>
+ * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
+ IP_ALL.
+
+2020-04-12 Kamil Rytarowski <n54@gmx.com>
+
* nbsd-nat.c (nbsd_pid_to_cmdline): Add.
(nbsd_nat_target::info_proc): Add do_cmdline.
diff --git a/gdb/nbsd-nat.c b/gdb/nbsd-nat.c
index fa49ac2..5eaf9de 100644
--- a/gdb/nbsd-nat.c
+++ b/gdb/nbsd-nat.c
@@ -347,6 +347,11 @@ nbsd_nat_target::info_proc (const char *args, enum info_proc_what what)
switch (what)
{
+ case IP_MINIMAL:
+ do_cmdline = true;
+ do_cwd = true;
+ do_exe = true;
+ break;
case IP_MAPPINGS:
do_mappings = true;
break;
@@ -359,6 +364,12 @@ nbsd_nat_target::info_proc (const char *args, enum info_proc_what what)
case IP_CWD:
do_cwd = true;
break;
+ case IP_ALL:
+ do_cmdline = true;
+ do_cwd = true;
+ do_exe = true;
+ do_mappings = true;
+ break;
default:
error (_("Not supported on this target."));
}