diff options
| author | skrll <skrll@NetBSD.org> | 2008-03-17 17:39:15 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2008-03-17 17:39:15 +0000 |
| commit | 1c84a0c3c5f0bba6f85b32a64efff67febbf2fae (patch) | |
| tree | f02f333903b7feacfeb58c17471a98e46b5fbb62 /gnu | |
| parent | b2af3e5bc657620874e58b0c70ae0037c3a9b0df (diff) | |
Add nbsd_pid_to_exec_file to target ops.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/dist/gdb6/gdb/m68kbsd-nat.c | 5 | ||||
| -rw-r--r-- | gnu/dist/gdb6/gdb/vaxbsd-nat.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gnu/dist/gdb6/gdb/m68kbsd-nat.c b/gnu/dist/gdb6/gdb/m68kbsd-nat.c index c8c4da37d96..a86d9c7c679 100644 --- a/gnu/dist/gdb6/gdb/m68kbsd-nat.c +++ b/gnu/dist/gdb6/gdb/m68kbsd-nat.c @@ -32,6 +32,8 @@ #include "m68k-tdep.h" #include "inf-ptrace.h" +#include "nbsd-nat.h" + static int m68kbsd_gregset_supplies_p (int regnum) { @@ -229,6 +231,9 @@ _initialize_m68kbsd_nat (void) t = inf_ptrace_target (); t->to_fetch_registers = m68kbsd_fetch_inferior_registers; t->to_store_registers = m68kbsd_store_inferior_registers; + + t->to_pid_to_exec_file = nbsd_pid_to_exec_file; + add_target (t); /* Support debugging kernel virtual memory images. */ diff --git a/gnu/dist/gdb6/gdb/vaxbsd-nat.c b/gnu/dist/gdb6/gdb/vaxbsd-nat.c index fa5cfac5661..56975a47f3b 100644 --- a/gnu/dist/gdb6/gdb/vaxbsd-nat.c +++ b/gnu/dist/gdb6/gdb/vaxbsd-nat.c @@ -31,6 +31,8 @@ #include "vax-tdep.h" #include "inf-ptrace.h" +#include "nbsd-nat.h" + /* Supply the general-purpose registers stored in GREGS to REGCACHE. */ static void @@ -137,9 +139,11 @@ _initialize_vaxbsd_nat (void) { struct target_ops *t; + /* Add some extra features to the common *BSD/vax target. */ t = inf_ptrace_target (); t->to_fetch_registers = vaxbsd_fetch_inferior_registers; t->to_store_registers = vaxbsd_store_inferior_registers; + t->to_pid_to_exec_file = nbsd_pid_to_exec_file; add_target (t); /* Support debugging kernel virtual memory images. */ |
