aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:38:09 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:09 -0700
commit78eff0ec9d736c4a96bbd18c9bcd643d2a1edcea (patch)
treeb7bc1f68c335c175b2ffbbc4b9b0847cc5b5e0ca /gdb/target.h
parentefcc2da70ea8bdb9153f1e717e84c0b9d976b394 (diff)
downloadbinutils-78eff0ec9d736c4a96bbd18c9bcd643d2a1edcea.zip
binutils-78eff0ec9d736c4a96bbd18c9bcd643d2a1edcea.tar.gz
binutils-78eff0ec9d736c4a96bbd18c9bcd643d2a1edcea.tar.bz2
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.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h4
1 files changed, 2 insertions, 2 deletions
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) (&current_target)
extern int target_read_string (CORE_ADDR, char **, int, int *);