aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
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/remote.c
parentefcc2da70ea8bdb9153f1e717e84c0b9d976b394 (diff)
downloadgdb-78eff0ec9d736c4a96bbd18c9bcd643d2a1edcea.zip
gdb-78eff0ec9d736c4a96bbd18c9bcd643d2a1edcea.tar.gz
gdb-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/remote.c')
-rw-r--r--gdb/remote.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 2d74bc1..b62b5f2 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -228,7 +228,7 @@ static void remote_console_output (char *msg);
static int remote_supports_cond_breakpoints (struct target_ops *self);
-static int remote_can_run_breakpoint_commands (void);
+static int remote_can_run_breakpoint_commands (struct target_ops *self);
/* For "remote". */
@@ -8084,7 +8084,7 @@ remote_insert_breakpoint (struct target_ops *ops,
if (remote_supports_cond_breakpoints (ops))
remote_add_target_side_condition (gdbarch, bp_tgt, p, endbuf);
- if (remote_can_run_breakpoint_commands ())
+ if (remote_can_run_breakpoint_commands (ops))
remote_add_target_side_commands (gdbarch, bp_tgt, p);
putpkt (rs->buf);
@@ -8363,7 +8363,7 @@ remote_insert_hw_breakpoint (struct target_ops *self, struct gdbarch *gdbarch,
if (remote_supports_cond_breakpoints (self))
remote_add_target_side_condition (gdbarch, bp_tgt, p, endbuf);
- if (remote_can_run_breakpoint_commands ())
+ if (remote_can_run_breakpoint_commands (self))
remote_add_target_side_commands (gdbarch, bp_tgt, p);
putpkt (rs->buf);
@@ -10306,7 +10306,7 @@ remote_supports_string_tracing (struct target_ops *self)
}
static int
-remote_can_run_breakpoint_commands (void)
+remote_can_run_breakpoint_commands (struct target_ops *self)
{
struct remote_state *rs = get_remote_state ();