From 78eff0ec9d736c4a96bbd18c9bcd643d2a1edcea Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Dec 2013 21:38:09 -0700 Subject: Add target_ops argument to to_can_run_breakpoint_commands 2014-02-19 Tom Tromey * target.h (struct target_ops) : 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. --- gdb/target.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/target.h') diff --git a/gdb/target.h b/gdb/target.h index ce73863..c809c1b 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -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 *); -- cgit v1.1