summaryrefslogtreecommitdiff
path: root/gdb/amd64obsd-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-09-26 18:42:30 +0000
committerMark Kettenis <kettenis@gnu.org>2004-09-26 18:42:30 +0000
commit63d5c71bc992550edac170a02f530bc20c98fd14 (patch)
treedac445b35610548dd8824a303c3a6970cc9a3e97 /gdb/amd64obsd-nat.c
parent2d398e0c9c07fcf93916a3a7fdee75fbbc565b7a (diff)
downloadgdb-63d5c71bc992550edac170a02f530bc20c98fd14.tar.gz
* amd64-nat.h: Update copyright year.
(amd64bsd_target): New prototype. * amd64bsd-nat.c: Include "target.h" and "inf-ptrace.h". (amd64bsd_target): New function. (amd64bsd_fetch_inferior_registers): Rename from fetch_inferior_registers. Make static. (amd64bsd_store_inferior_registers): Rename from store_inferior_registers. Make static. * amd64fbsd-nat.c: Include "target.h" and "fbsd-nat.h". (_initialize_amd64fbsd_nat): Construct and add target vector. * amd64nbsd-nat.o: Include "target.h". (_initialize_amd64nbsd_nat): Construct and add target vector. * amd64obsd-nat.c: Include "target.h". (_initialize_amd64obsd_nat): Construct and add target vector. * config/i386/nm-fbsd64.h (CHILD_PID_TO_EXEC_FILE): Remove define. * config/i386/fbsd64.mh (NATDEPFILES): Remove infptrace.o, inftarg.o and fbsd-proc.o. Add inf-child.o, inf-ptrace.o and fbsd-nat.o. * config/i386/nbsd64.mh, config/i386/obsd64.mh (NATDEPFILES): Remove infptrace.o and inftarg.o. Add inf-child.o and inf-ptrace.o. * Makefile.in (amd64bsd-nat.o, amd64fbsd-nat.o, amd64nbsd-nat.o) (amd64obsd-nat.o): Update dependencies.
Diffstat (limited to 'gdb/amd64obsd-nat.c')
-rw-r--r--gdb/amd64obsd-nat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/amd64obsd-nat.c b/gdb/amd64obsd-nat.c
index 0f9b5efac7f..6f8a6014b95 100644
--- a/gdb/amd64obsd-nat.c
+++ b/gdb/amd64obsd-nat.c
@@ -22,6 +22,7 @@
#include "defs.h"
#include "gdbcore.h"
#include "regcache.h"
+#include "target.h"
#include "gdb_assert.h"
@@ -138,6 +139,9 @@ _initialize_amd64obsd_nat (void)
amd64_native_gregset32_num_regs = ARRAY_SIZE (amd64obsd32_r_reg_offset);
amd64_native_gregset64_reg_offset = amd64obsd_r_reg_offset;
+ /* We've got nothing to add to the common *BSD/amd64 target. */
+ add_target (amd64bsd_target ());
+
/* Support debugging kernel virtual memory images. */
bsd_kvm_add_target (amd64obsd_supply_pcb);
}