mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 00:59:15 +08:00
Add target_ops argument to to_can_run_breakpoint_commands
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_can_run_breakpoint_commands>: Add argument. (target_can_run_breakpoint_commands): Add argument. * target.c (update_current_target): Update. * remote.c (remote_can_run_breakpoint_commands): Add 'self' argument. (remote_insert_breakpoint): Add 'self' argument. (remote_insert_hw_breakpoint): Add 'self' argument. (remote_can_run_breakpoint_commands): Add 'self' argument.
This commit is contained in:
@ -690,7 +690,7 @@ struct target_ops
|
||||
|
||||
/* Does this target support evaluation of breakpoint commands on its
|
||||
end? */
|
||||
int (*to_can_run_breakpoint_commands) (void);
|
||||
int (*to_can_run_breakpoint_commands) (struct target_ops *);
|
||||
|
||||
/* Determine current architecture of thread PTID.
|
||||
|
||||
@ -1129,7 +1129,7 @@ int target_supports_disable_randomization (void);
|
||||
on its end. */
|
||||
|
||||
#define target_can_run_breakpoint_commands() \
|
||||
(*current_target.to_can_run_breakpoint_commands) ()
|
||||
(*current_target.to_can_run_breakpoint_commands) (¤t_target)
|
||||
|
||||
extern int target_read_string (CORE_ADDR, char **, int, int *);
|
||||
|
||||
|
Reference in New Issue
Block a user