diff options
Diffstat (limited to 'gdb/i386-nbsd-nat.c')
-rw-r--r-- | gdb/i386-nbsd-nat.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/i386-nbsd-nat.c b/gdb/i386-nbsd-nat.c index 6b0bcc9..508abdc 100644 --- a/gdb/i386-nbsd-nat.c +++ b/gdb/i386-nbsd-nat.c @@ -71,16 +71,13 @@ i386nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) return 1; } +static i386_bsd_nat_target<nbsd_nat_target> the_i386_nbsd_nat_target; + void _initialize_i386nbsd_nat (void) { - struct target_ops *t; + add_target (&the_i386_nbsd_nat_target); - /* 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); } |