fix buglet in nto-procfs.c
authorTom Tromey <tromey@redhat.com>
Thu, 16 Jan 2014 18:46:23 +0000 (11:46 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:48:48 +0000 (07:48 -0700)
I happened to notice that nto-procfs.c defines
procfs_remove_hw_breakpoint but never uses it.  This caused it not to
be updated by my target-method-updating script.  This patch fixes the
function and installs it properly.  I have no way to test this,
however.

2014-02-19  Tom Tromey  <tromey@redhat.com>

* nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
argument.
(init_procfs_ops): Correctly set to_remove_hw_breakpoint.

gdb/ChangeLog
gdb/nto-procfs.c

index ff6188b0347abbd14af9c5755181aec23260ba65..c75ca0d157c46a490a7f0b929f5811f8a48af310 100644 (file)
@@ -1,3 +1,9 @@
+2014-02-19  Tom Tromey  <tromey@redhat.com>
+
+       * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
+       argument.
+       (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
+
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
index 1b2b2ff6e62ccc7007f042573cba69eb5491121e..d0bdc90b8d82cb43ccfa61218904bd6a6ae673d6 100644 (file)
@@ -947,7 +947,8 @@ procfs_insert_hw_breakpoint (struct target_ops *self, struct gdbarch *gdbarch,
 }
 
 static int
-procfs_remove_hw_breakpoint (struct gdbarch *gdbarch,
+procfs_remove_hw_breakpoint (struct target_ops *self,
+                            struct gdbarch *gdbarch,
                             struct bp_target_info *bp_tgt)
 {
   return procfs_breakpoint (bp_tgt->placed_address,
@@ -1402,7 +1403,7 @@ init_procfs_ops (void)
   procfs_ops.to_remove_breakpoint = procfs_remove_breakpoint;
   procfs_ops.to_can_use_hw_breakpoint = procfs_can_use_hw_breakpoint;
   procfs_ops.to_insert_hw_breakpoint = procfs_insert_hw_breakpoint;
-  procfs_ops.to_remove_hw_breakpoint = procfs_remove_breakpoint;
+  procfs_ops.to_remove_hw_breakpoint = procfs_remove_hw_breakpoint;
   procfs_ops.to_insert_watchpoint = procfs_insert_hw_watchpoint;
   procfs_ops.to_remove_watchpoint = procfs_remove_hw_watchpoint;
   procfs_ops.to_stopped_by_watchpoint = procfs_stopped_by_watchpoint;