]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* Makefile.in (amd64nbsd-nat.o): New dependency.
authorNick Hudson <nick.hudson@dsl.pipex.com>
Mon, 17 Mar 2008 12:15:09 +0000 (12:15 +0000)
committerNick Hudson <nick.hudson@dsl.pipex.com>
Mon, 17 Mar 2008 12:15:09 +0000 (12:15 +0000)
        * 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.

gdb/ChangeLog
gdb/Makefile.in
gdb/amd64nbsd-nat.c
gdb/config/i386/nbsd64.mh

index 9c93b81e8e9bb0feaf51341a1004ec7bb6a9ce6c..56ce38ef1433ac6556cf71a457c14cf619e4427f 100644 (file)
@@ -1,3 +1,11 @@
+2008-03-17  Nick Hudson  <nick.hudson@dsl.pipex.com>
+
+        * 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.
+
 2008-03-13  Joel Brobecker  <brobecker@adacore.com>
 
        * version.in: Set version to 6.7.90.20080313-cvs.
index 027cbb135f3530549a416bdbbb81dcc36a8ed11c..23735628774f3f3ccd3413f354ae6fa2303b4860 100644 (file)
@@ -1867,7 +1867,7 @@ amd64-linux-tdep.o: amd64-linux-tdep.c $(defs_h) $(frame_h) $(gdbcore_h) \
 amd64-nat.o: amd64-nat.c $(defs_h) $(gdbarch_h) $(regcache_h) \
        $(gdb_assert_h) $(gdb_string_h) $(i386_tdep_h) $(amd64_tdep_h)
 amd64nbsd-nat.o: amd64nbsd-nat.c $(defs_h) $(target_h) $(gdb_assert_h) \
-       $(amd64_tdep_h) $(amd64_nat_h)
+       $(amd64_tdep_h) $(amd64_nat_h) $(nbsd_nat_h)
 amd64nbsd-tdep.o: amd64nbsd-tdep.c $(defs_h) $(arch_utils_h) $(frame_h) \
        $(gdbcore_h) $(osabi_h) $(symtab_h) $(gdb_assert_h) $(amd64_tdep_h) \
        $(nbsd_tdep_h) $(solib_svr4_h)
index 58843c81a36c67fd3a8276ba4f02884257e3fb5d..40c7f09cd1b7fa19b63e937352fa8481325488fd 100644 (file)
@@ -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);
 }
index aec2905024232f436ba831ef558234e2670ce77b..5de8cf582d8c9bed5c180b36c80530da1e5e439c 100644 (file)
@@ -1,3 +1,3 @@
 # Host: NetBSD/amd64
 NATDEPFILES= fork-child.o inf-ptrace.o \
-       amd64-nat.o amd64bsd-nat.o amd64nbsd-nat.o
+       nbsd-nat.o amd64-nat.o amd64bsd-nat.o amd64nbsd-nat.o