mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 05:12:33 +08:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user