? nbsd-nat.c ? nbsd-nat.h Index: Makefile.in =================================================================== RCS file: /cvs/src/src/gdb/Makefile.in,v retrieving revision 1.856 diff -u -p -u -r1.856 Makefile.in --- Makefile.in 28 Nov 2006 22:14:31 -0000 1.856 +++ Makefile.in 30 Nov 2006 13:15:37 -0000 @@ -758,6 +758,7 @@ mips_tdep_h = mips-tdep.h memory_map_h = memory-map.h $(memattr_h) mn10300_tdep_h = mn10300-tdep.h monitor_h = monitor.h +nbsd_nat_h = nbsd-nat.h nbsd_tdep_h = nbsd-tdep.h nto_tdep_h = nto-tdep.h $(defs_h) $(solist_h) $(osabi_h) $(regset_h) objc_lang_h = objc-lang.h @@ -1476,7 +1477,7 @@ ALLDEPFILES = \ mips-tdep.c mipsv4-nat.c \ mipsnbsd-nat.c mipsnbsd-tdep.c \ mips64obsd-nat.c mips64obsd-tdep.c \ - nbsd-tdep.c obsd-tdep.c \ + nbsd-nat.c nbsd-tdep.c obsd-tdep.c \ solib-osf.c \ somread.c solib-som.c $(HPREAD_SOURCE) \ posix-hdep.c \ @@ -2404,6 +2405,7 @@ ms1-tdep.o: ms1-tdep.c $(defs_h) $(frame $(gdb_string_h) $(regcache_h) $(reggroups_h) $(gdbcore_h) \ $(trad_frame_h) $(inferior_h) $(dwarf2_frame_h) $(infcall_h) \ $(gdb_assert_h) +nbsd-nat.o: nbsd-nat.c $(defs_h) $(nbsd_nat_h) nbsd-tdep.o: nbsd-tdep.c $(defs_h) $(gdb_string_h) $(solib_svr4_h) nlmread.o: nlmread.c $(defs_h) $(bfd_h) $(symtab_h) $(symfile_h) \ $(objfiles_h) $(buildsym_h) $(stabsread_h) $(block_h) Index: i386nbsd-nat.c =================================================================== RCS file: /cvs/src/src/gdb/i386nbsd-nat.c,v retrieving revision 1.16 diff -u -p -u -r1.16 i386nbsd-nat.c --- i386nbsd-nat.c 17 Dec 2005 22:34:01 -0000 1.16 +++ i386nbsd-nat.c 30 Nov 2006 13:15:42 -0000 @@ -33,6 +33,7 @@ #include #include +#include "nbsd-nat.h" #include "bsd-kvm.h" static int @@ -79,9 +80,13 @@ void _initialize_i386nbsd_nat (void); void _initialize_i386nbsd_nat (void) { - /* We've got nothing to add to the common *BSD/i386 target. */ - add_target (i386bsd_target ()); + struct target_ops *t; + /* Add some extra features to the common *BSD/i386 target. */ + t = i386bsd_target (); + t->to_pid_to_exec_file = nbsd_pid_to_exec_file; + add_target (t); + /* Support debugging kernel virtual memory images. */ bsd_kvm_add_target (i386nbsd_supply_pcb); } Index: config/i386/nbsdelf.mh =================================================================== RCS file: /cvs/src/src/gdb/config/i386/nbsdelf.mh,v retrieving revision 1.23 diff -u -p -u -r1.23 nbsdelf.mh --- config/i386/nbsdelf.mh 24 Nov 2006 18:23:34 -0000 1.23 +++ config/i386/nbsdelf.mh 30 Nov 2006 13:15:42 -0000 @@ -1,5 +1,5 @@ # Host: NetBSD/i386 ELF NATDEPFILES= fork-child.o inf-ptrace.o \ - i386bsd-nat.o i386nbsd-nat.o bsd-kvm.o + nbsd-nat.o i386bsd-nat.o i386nbsd-nat.o bsd-kvm.o LOADLIBES= -lkvm