diff options
author | Tom Tromey <tom@tromey.com> | 2017-09-09 21:52:05 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-27 08:44:41 -0600 |
commit | e100df1a2ea356a8a311114bc2927215a33eefcb (patch) | |
tree | 473993fb5ad95a90244a0aed6d2abc4259cbacf8 /gdb | |
parent | 31d56ade0e943aca57acbc030334d65ae0b6f866 (diff) | |
download | binutils-e100df1a2ea356a8a311114bc2927215a33eefcb.zip binutils-e100df1a2ea356a8a311114bc2927215a33eefcb.tar.gz binutils-e100df1a2ea356a8a311114bc2927215a33eefcb.tar.bz2 |
Constify some commands in target-descriptions.c
gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>
* target-descriptions.c (unset_tdesc_filename_cmd)
(maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
Constify.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/target-descriptions.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bdbf829..e67d380 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2017-09-27 Tom Tromey <tom@tromey.com> + * target-descriptions.c (unset_tdesc_filename_cmd) + (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions): + Constify. + +2017-09-27 Tom Tromey <tom@tromey.com> + * dummy-frame.c (maintenance_print_dummy_frames): Constify. 2017-09-27 Tom Tromey <tom@tromey.com> diff --git a/gdb/target-descriptions.c b/gdb/target-descriptions.c index 877fd68..6858ee1 100644 --- a/gdb/target-descriptions.c +++ b/gdb/target-descriptions.c @@ -1899,7 +1899,7 @@ show_tdesc_filename_cmd (struct ui_file *file, int from_tty, } static void -unset_tdesc_filename_cmd (char *args, int from_tty) +unset_tdesc_filename_cmd (const char *args, int from_tty) { xfree (target_description_filename); target_description_filename = NULL; @@ -2288,7 +2288,7 @@ private: }; static void -maint_print_c_tdesc_cmd (char *args, int from_tty) +maint_print_c_tdesc_cmd (const char *args, int from_tty) { const struct target_desc *tdesc; const char *filename; @@ -2362,7 +2362,7 @@ record_xml_tdesc (const char *xml_file, const struct target_desc *tdesc) found in the specified directory DIR. */ static void -maintenance_check_xml_descriptions (char *dir, int from_tty) +maintenance_check_xml_descriptions (const char *dir, int from_tty) { if (dir == NULL) error (_("Missing dir name")); |