Inherit sh_nbsd_nat_target from nbsd_nat_target
[deliverable/binutils-gdb.git] / gdb / sh-nbsd-nat.c
index 873bdba00281a2a11451ea7d7330c30b32775823..486ef9d18e93391680d6aa2740ff540220b41ca1 100644 (file)
 
 #include "sh-tdep.h"
 #include "inf-ptrace.h"
+#include "nbsd-nat.h"
 #include "regcache.h"
 
-struct sh_nbsd_nat_target final : public inf_ptrace_target
+struct sh_nbsd_nat_target final : public nbsd_nat_target
 {
   void fetch_registers (struct regcache *, int) override;
   void store_registers (struct regcache *, int) override;
@@ -96,8 +97,9 @@ sh_nbsd_nat_target::store_registers (struct regcache *regcache, int regno)
     }
 }
 
+void _initialize_shnbsd_nat ();
 void
-_initialize_shnbsd_nat (void)
+_initialize_shnbsd_nat ()
 {
   add_inf_child_target (&the_sh_nbsd_nat_target);
 }
This page took 0.024489 seconds and 4 git commands to generate.