Constify commands maint.c, plus maintenance_print_type

In addition to the constification, this fixes a command-repeat bug.

gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

	* typeprint.c (maintenance_print_type): Constify.
	* maint.c (maintenance_dump_me, maintenance_demangle)
	(maintenance_time_display, maintenance_info_sections)
	(maintenance_print_statistics, maintenance_deprecate)
	(maintenance_undeprecate): Constify.
	(maintenance_do_deprecate): Constify.  Use std::string.
	(maintenance_selftest): Constify.
	* gdbtypes.h (maintenance_print_type): Constify.
This commit is contained in:
Tom Tromey
2017-09-12 14:40:43 -06:00
parent c482f52ccf
commit 5897114462
4 changed files with 28 additions and 26 deletions

View File

@ -1931,7 +1931,7 @@ extern int is_scalar_type_recursive (struct type *);
extern int class_or_union_p (const struct type *);
extern void maintenance_print_type (char *, int);
extern void maintenance_print_type (const char *, int);
extern htab_t create_copied_types_hash (struct objfile *objfile);