From: Tom Tromey Date: Mon, 21 Jan 2013 18:07:03 +0000 (+0000) Subject: * gdbtypes.c (init_type): Make 'name' const. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=748e18ae852546a7d0fceb3537e8b5efdd03f5f3;p=binutils-gdb.git * gdbtypes.c (init_type): Make 'name' const. * gdbtypes.h (init_type): Update. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 63230566897..6d51c7dc612 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-01-21 Tom Tromey + + * gdbtypes.c (init_type): Make 'name' const. + * gdbtypes.h (init_type): Update. + 2013-01-21 Tom Tromey * buildsym.c (patch_subfile_names): Use set_last_source_file. diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 588524195a5..6a4b152bc22 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -1957,7 +1957,7 @@ allocate_gnat_aux_type (struct type *type) struct type * init_type (enum type_code code, int length, int flags, - char *name, struct objfile *objfile) + const char *name, struct objfile *objfile) { struct type *type; diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 8b340a32bca..0ca7a87dae7 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -1432,7 +1432,7 @@ extern struct type *alloc_type_copy (const struct type *); extern struct gdbarch *get_type_arch (const struct type *); /* Helper function to construct objfile-owned types. */ -extern struct type *init_type (enum type_code, int, int, char *, +extern struct type *init_type (enum type_code, int, int, const char *, struct objfile *); /* Helper functions to construct architecture-owned types. */