aboutsummaryrefslogtreecommitdiff
path: root/gdb/amd64nbsd-nat.c
diff options
context:
space:
mode:
authorNick Hudson <nick.hudson@dsl.pipex.com>2008-03-16 08:50:43 +0000
committerNick Hudson <nick.hudson@dsl.pipex.com>2008-03-16 08:50:43 +0000
commitf01be29bbc6ef5fd011675bd0da09ab1f7aea030 (patch)
tree4fcb32a6d75a605f7eebfe71d9870c680269bba1 /gdb/amd64nbsd-nat.c
parentc59aaa8345ce853b2529ecc812714546f25e83c5 (diff)
downloadgdb-f01be29bbc6ef5fd011675bd0da09ab1f7aea030.zip
gdb-f01be29bbc6ef5fd011675bd0da09ab1f7aea030.tar.gz
gdb-f01be29bbc6ef5fd011675bd0da09ab1f7aea030.tar.bz2
* Makefile.in (amd64nbsd-nat.o): New dependency.
* amd64nbsd-nat.c: Include "nbsd-nat.h". (_initialize_amd64nbsd_nat): Update target vector to use nbsd_pid_to_exec_file. * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
Diffstat (limited to 'gdb/amd64nbsd-nat.c')
-rw-r--r--gdb/amd64nbsd-nat.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/amd64nbsd-nat.c b/gdb/amd64nbsd-nat.c
index 58843c8..40c7f09 100644
--- a/gdb/amd64nbsd-nat.c
+++ b/gdb/amd64nbsd-nat.c
@@ -22,6 +22,7 @@
#include "gdb_assert.h"
+#include "nbsd-nat.h"
#include "amd64-tdep.h"
#include "amd64-nat.h"
@@ -61,10 +62,14 @@ void _initialize_amd64nbsd_nat (void);
void
_initialize_amd64nbsd_nat (void)
{
+ struct target_ops *t;
+
amd64_native_gregset32_reg_offset = amd64nbsd32_r_reg_offset;
amd64_native_gregset32_num_regs = ARRAY_SIZE (amd64nbsd32_r_reg_offset);
amd64_native_gregset64_reg_offset = amd64nbsd_r_reg_offset;
- /* We've got nothing to add to the common *BSD/amd64 target. */
- add_target (amd64bsd_target ());
+ /* Add some extra features to the common *BSD/amd64 target. */
+ t = amd64bsd_target ();
+ t->to_pid_to_exec_file = nbsd_pid_to_exec_file;
+ add_target (t);
}