Use new to allocate mapped_index
[deliverable/binutils-gdb.git] / gdb / i386-fbsd-nat.c
index a5b20c243cbf5c84d9ce2821ed5d1df69917205f..0d3762a7f03ef59310663d62d6648de64d3bf4e2 100644 (file)
@@ -46,7 +46,7 @@ public:
   void resume (ptid_t, int, enum gdb_signal) override;
 
 #if defined(HAVE_PT_GETDBREGS) && defined(USE_SIGTRAP_SIGINFO)
-  int supports_stopped_by_hw_breakpoint () override;
+  bool supports_stopped_by_hw_breakpoint () override;
 #endif
 };
 
@@ -167,17 +167,17 @@ i386_fbsd_nat_target::read_description ()
 #if defined(HAVE_PT_GETDBREGS) && defined(USE_SIGTRAP_SIGINFO)
 /* Implement the supports_stopped_by_hw_breakpoints method.  */
 
-int
+bool
 i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint ()
 {
-  return 1;
+  return true;
 }
 #endif
 
 void
 _initialize_i386fbsd_nat (void)
 {
-  add_target (&the_i386_fbsd_nat_target);
+  add_inf_child_target (&the_i386_fbsd_nat_target);
 
   /* Support debugging kernel virtual memory images.  */
   bsd_kvm_add_target (i386fbsd_supply_pcb);
This page took 0.02391 seconds and 4 git commands to generate.