mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 00:32:30 +08:00
convert to_insert_hw_breakpoint
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (update_current_target): Don't inherit or default to_insert_hw_breakpoint. * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use TARGET_DEFAULT_RETURN.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* target-delegates.c: Rebuild.
|
||||||
|
* target.c (update_current_target): Don't inherit or default
|
||||||
|
to_insert_hw_breakpoint.
|
||||||
|
* target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
|
||||||
|
TARGET_DEFAULT_RETURN.
|
||||||
|
|
||||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* target-delegates.c: Rebuild.
|
* target-delegates.c: Rebuild.
|
||||||
|
@ -125,6 +125,19 @@ tdefault_can_use_hw_breakpoint (struct target_ops *self, int arg1, int arg2, int
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
delegate_insert_hw_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
|
||||||
|
{
|
||||||
|
self = self->beneath;
|
||||||
|
return self->to_insert_hw_breakpoint (self, arg1, arg2);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
tdefault_insert_hw_breakpoint (struct target_ops *self, struct gdbarch *arg1, struct bp_target_info *arg2)
|
||||||
|
{
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
delegate_stopped_by_watchpoint (struct target_ops *self)
|
delegate_stopped_by_watchpoint (struct target_ops *self)
|
||||||
{
|
{
|
||||||
@ -236,6 +249,8 @@ install_delegators (struct target_ops *ops)
|
|||||||
ops->to_remove_breakpoint = delegate_remove_breakpoint;
|
ops->to_remove_breakpoint = delegate_remove_breakpoint;
|
||||||
if (ops->to_can_use_hw_breakpoint == NULL)
|
if (ops->to_can_use_hw_breakpoint == NULL)
|
||||||
ops->to_can_use_hw_breakpoint = delegate_can_use_hw_breakpoint;
|
ops->to_can_use_hw_breakpoint = delegate_can_use_hw_breakpoint;
|
||||||
|
if (ops->to_insert_hw_breakpoint == NULL)
|
||||||
|
ops->to_insert_hw_breakpoint = delegate_insert_hw_breakpoint;
|
||||||
if (ops->to_stopped_by_watchpoint == NULL)
|
if (ops->to_stopped_by_watchpoint == NULL)
|
||||||
ops->to_stopped_by_watchpoint = delegate_stopped_by_watchpoint;
|
ops->to_stopped_by_watchpoint = delegate_stopped_by_watchpoint;
|
||||||
if (ops->to_stopped_data_address == NULL)
|
if (ops->to_stopped_data_address == NULL)
|
||||||
@ -268,6 +283,7 @@ install_dummy_methods (struct target_ops *ops)
|
|||||||
ops->to_insert_breakpoint = memory_insert_breakpoint;
|
ops->to_insert_breakpoint = memory_insert_breakpoint;
|
||||||
ops->to_remove_breakpoint = memory_remove_breakpoint;
|
ops->to_remove_breakpoint = memory_remove_breakpoint;
|
||||||
ops->to_can_use_hw_breakpoint = tdefault_can_use_hw_breakpoint;
|
ops->to_can_use_hw_breakpoint = tdefault_can_use_hw_breakpoint;
|
||||||
|
ops->to_insert_hw_breakpoint = tdefault_insert_hw_breakpoint;
|
||||||
ops->to_stopped_by_watchpoint = tdefault_stopped_by_watchpoint;
|
ops->to_stopped_by_watchpoint = tdefault_stopped_by_watchpoint;
|
||||||
ops->to_stopped_data_address = tdefault_stopped_data_address;
|
ops->to_stopped_data_address = tdefault_stopped_data_address;
|
||||||
ops->to_rcmd = default_rcmd;
|
ops->to_rcmd = default_rcmd;
|
||||||
|
@ -605,7 +605,7 @@ update_current_target (void)
|
|||||||
/* Do not inherit to_insert_breakpoint. */
|
/* Do not inherit to_insert_breakpoint. */
|
||||||
/* Do not inherit to_remove_breakpoint. */
|
/* Do not inherit to_remove_breakpoint. */
|
||||||
/* Do not inherit to_can_use_hw_breakpoint. */
|
/* Do not inherit to_can_use_hw_breakpoint. */
|
||||||
INHERIT (to_insert_hw_breakpoint, t);
|
/* Do not inherit to_insert_hw_breakpoint. */
|
||||||
INHERIT (to_remove_hw_breakpoint, t);
|
INHERIT (to_remove_hw_breakpoint, t);
|
||||||
/* Do not inherit to_ranged_break_num_registers. */
|
/* Do not inherit to_ranged_break_num_registers. */
|
||||||
INHERIT (to_insert_watchpoint, t);
|
INHERIT (to_insert_watchpoint, t);
|
||||||
@ -734,10 +734,6 @@ update_current_target (void)
|
|||||||
(int (*) (CORE_ADDR, gdb_byte *, int, int,
|
(int (*) (CORE_ADDR, gdb_byte *, int, int,
|
||||||
struct mem_attrib *, struct target_ops *))
|
struct mem_attrib *, struct target_ops *))
|
||||||
nomemory);
|
nomemory);
|
||||||
de_fault (to_insert_hw_breakpoint,
|
|
||||||
(int (*) (struct target_ops *, struct gdbarch *,
|
|
||||||
struct bp_target_info *))
|
|
||||||
return_minus_one);
|
|
||||||
de_fault (to_remove_hw_breakpoint,
|
de_fault (to_remove_hw_breakpoint,
|
||||||
(int (*) (struct target_ops *, struct gdbarch *,
|
(int (*) (struct target_ops *, struct gdbarch *,
|
||||||
struct bp_target_info *))
|
struct bp_target_info *))
|
||||||
|
@ -459,7 +459,8 @@ struct target_ops
|
|||||||
TARGET_DEFAULT_RETURN (0);
|
TARGET_DEFAULT_RETURN (0);
|
||||||
int (*to_ranged_break_num_registers) (struct target_ops *);
|
int (*to_ranged_break_num_registers) (struct target_ops *);
|
||||||
int (*to_insert_hw_breakpoint) (struct target_ops *,
|
int (*to_insert_hw_breakpoint) (struct target_ops *,
|
||||||
struct gdbarch *, struct bp_target_info *);
|
struct gdbarch *, struct bp_target_info *)
|
||||||
|
TARGET_DEFAULT_RETURN (-1);
|
||||||
int (*to_remove_hw_breakpoint) (struct target_ops *,
|
int (*to_remove_hw_breakpoint) (struct target_ops *,
|
||||||
struct gdbarch *, struct bp_target_info *);
|
struct gdbarch *, struct bp_target_info *);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user