aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-06-06 13:19:53 -0600
committerTom Tromey <tromey@redhat.com>2014-06-16 10:29:17 -0600
commita30bf1f15c51b82a0134713bc44175cda296d3ae (patch)
tree9e741116883ba6d993d4329fe7269ac724f0b313 /gdb/target.c
parentf4c51f600ed2fcf9f29bdaae71aa767b9b1bc4ac (diff)
downloadgdb-a30bf1f15c51b82a0134713bc44175cda296d3ae.zip
gdb-a30bf1f15c51b82a0134713bc44175cda296d3ae.tar.gz
gdb-a30bf1f15c51b82a0134713bc44175cda296d3ae.tar.bz2
constify to_rcmd
This makes the "command" parameter of the to_rcmd target method const. 2014-06-16 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_rcmd>: Make "command" const. * target.c (debug_to_rcmd, default_rcmd): Update. * target-delegates.c: Rebuild. * remote.c (remote_rcmd): Update. * monitor.c (monitor_rcmd): Update.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/target.c b/gdb/target.c
index f73ab3c..a9255d7 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -57,7 +57,7 @@ static int default_watchpoint_addr_within_range (struct target_ops *,
static int default_region_ok_for_hw_watchpoint (struct target_ops *,
CORE_ADDR, int);
-static void default_rcmd (struct target_ops *, char *, struct ui_file *);
+static void default_rcmd (struct target_ops *, const char *, struct ui_file *);
static ptid_t default_get_ada_task_ptid (struct target_ops *self,
long lwp, long tid);
@@ -4006,7 +4006,7 @@ debug_to_stop (struct target_ops *self, ptid_t ptid)
}
static void
-debug_to_rcmd (struct target_ops *self, char *command,
+debug_to_rcmd (struct target_ops *self, const char *command,
struct ui_file *outbuf)
{
debug_target.to_rcmd (&debug_target, command, outbuf);
@@ -4080,7 +4080,8 @@ stack of targets currently in use (including the exec-file,\n\
core-file, and process, if any), as well as the symbol file name.";
static void
-default_rcmd (struct target_ops *self, char *command, struct ui_file *output)
+default_rcmd (struct target_ops *self, const char *command,
+ struct ui_file *output)
{
error (_("\"monitor\" command not supported by this target."));
}