diff options
author | Tom Tromey <tromey@redhat.com> | 2014-06-06 13:19:53 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-06-16 10:29:17 -0600 |
commit | a30bf1f15c51b82a0134713bc44175cda296d3ae (patch) | |
tree | 9e741116883ba6d993d4329fe7269ac724f0b313 /gdb/target.h | |
parent | f4c51f600ed2fcf9f29bdaae71aa767b9b1bc4ac (diff) | |
download | fsf-binutils-gdb-a30bf1f15c51b82a0134713bc44175cda296d3ae.zip fsf-binutils-gdb-a30bf1f15c51b82a0134713bc44175cda296d3ae.tar.gz fsf-binutils-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.h')
-rw-r--r-- | gdb/target.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target.h b/gdb/target.h index cd5a799..87d2a83 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -560,7 +560,7 @@ struct target_ops void (*to_stop) (struct target_ops *, ptid_t) TARGET_DEFAULT_IGNORE (); void (*to_rcmd) (struct target_ops *, - char *command, struct ui_file *output) + const char *command, struct ui_file *output) TARGET_DEFAULT_FUNC (default_rcmd); char *(*to_pid_to_exec_file) (struct target_ops *, int pid) TARGET_DEFAULT_RETURN (NULL); |