diff options
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h index 6fc7294b0e4..7f94b2b4d61 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -454,7 +454,8 @@ struct target_ops int (*to_ranged_break_num_registers) (struct target_ops *); int (*to_insert_hw_breakpoint) (struct target_ops *, struct gdbarch *, struct bp_target_info *); - int (*to_remove_hw_breakpoint) (struct gdbarch *, struct bp_target_info *); + int (*to_remove_hw_breakpoint) (struct target_ops *, + struct gdbarch *, struct bp_target_info *); /* Documentation of what the two routines below are expected to do is provided with the corresponding target_* macros. */ @@ -1642,7 +1643,8 @@ extern int target_remove_mask_watchpoint (CORE_ADDR, CORE_ADDR, int); gdbarch, bp_tgt) #define target_remove_hw_breakpoint(gdbarch, bp_tgt) \ - (*current_target.to_remove_hw_breakpoint) (gdbarch, bp_tgt) + (*current_target.to_remove_hw_breakpoint) (¤t_target, \ + gdbarch, bp_tgt) /* Return number of debug registers needed for a ranged breakpoint, or -1 if ranged breakpoints are not supported. */ |