mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
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.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2017-09-27 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* dummy-frame.c (maintenance_print_dummy_frames): Constify.
|
* dummy-frame.c (maintenance_print_dummy_frames): Constify.
|
||||||
|
@ -1899,7 +1899,7 @@ show_tdesc_filename_cmd (struct ui_file *file, int from_tty,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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);
|
xfree (target_description_filename);
|
||||||
target_description_filename = NULL;
|
target_description_filename = NULL;
|
||||||
@ -2288,7 +2288,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
static void
|
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 struct target_desc *tdesc;
|
||||||
const char *filename;
|
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. */
|
found in the specified directory DIR. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
maintenance_check_xml_descriptions (char *dir, int from_tty)
|
maintenance_check_xml_descriptions (const char *dir, int from_tty)
|
||||||
{
|
{
|
||||||
if (dir == NULL)
|
if (dir == NULL)
|
||||||
error (_("Missing dir name"));
|
error (_("Missing dir name"));
|
||||||
|
Reference in New Issue
Block a user