diff options
author | Tom Tromey <tom@tromey.com> | 2017-09-12 21:02:08 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-27 08:44:51 -0600 |
commit | 5e93d4c64bbc3b4fb306e54cdcd79bc8ff86b2f0 (patch) | |
tree | afa10b86b7b76eeffb1346abd67a689951fc79f9 | |
parent | fc41a75bee01fbd0883e6df1e031d4d9e998c437 (diff) | |
download | fsf-binutils-gdb-5e93d4c64bbc3b4fb306e54cdcd79bc8ff86b2f0.zip fsf-binutils-gdb-5e93d4c64bbc3b4fb306e54cdcd79bc8ff86b2f0.tar.gz fsf-binutils-gdb-5e93d4c64bbc3b4fb306e54cdcd79bc8ff86b2f0.tar.bz2 |
Constify cd_command
gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>
* cli/cli-cmds.h (cd_command): Constify.
* cli/cli-cmds.c (cd_command): Constify.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/cli/cli-cmds.c | 2 | ||||
-rw-r--r-- | gdb/cli/cli-cmds.h | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 697a161..ce85881 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2017-09-27 Tom Tromey <tom@tromey.com> + * cli/cli-cmds.h (cd_command): Constify. + * cli/cli-cmds.c (cd_command): Constify. + +2017-09-27 Tom Tromey <tom@tromey.com> + * thread.c (thread_name_command, thread_find_command): Constify. 2017-09-27 Tom Tromey <tom@tromey.com> diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index c009941..dde67ee 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -395,7 +395,7 @@ pwd_command (char *args, int from_tty) } void -cd_command (char *dir, int from_tty) +cd_command (const char *dir, int from_tty) { int len; /* Found something other than leading repetitions of "/..". */ diff --git a/gdb/cli/cli-cmds.h b/gdb/cli/cli-cmds.h index 1122a97..34d19f5 100644 --- a/gdb/cli/cli-cmds.h +++ b/gdb/cli/cli-cmds.h @@ -110,7 +110,7 @@ int is_complete_command (struct cmd_list_element *cmd); /* Exported to gdb/main.c */ -extern void cd_command (char *, int); +extern void cd_command (const char *, int); /* Exported to gdb/top.c and gdb/main.c */ |