]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/i386-nbsd-nat.c
Convert struct target_ops to C++
[thirdparty/binutils-gdb.git] / gdb / i386-nbsd-nat.c
index 6b0bcc92698a69750393896b7e2ddce98d74d9ce..508abdc92eed57ee8041b24f61605133b6dcbdfd 100644 (file)
@@ -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);
 }