* gdbtypes.h (init_type): Update.
2013-01-21 Tom Tromey <tromey@redhat.com>
2013-01-21 Tom Tromey <tromey@redhat.com>
+ * gdbtypes.c (init_type): Make 'name' const.
+ * gdbtypes.h (init_type): Update.
+
+2013-01-21 Tom Tromey <tromey@redhat.com>
+
* buildsym.c (patch_subfile_names): Use set_last_source_file.
(start_symtab): Make 'name' and 'dirname' const. Use
set_last_source_file.
* buildsym.c (patch_subfile_names): Use set_last_source_file.
(start_symtab): Make 'name' and 'dirname' const. Use
set_last_source_file.
struct type *
init_type (enum type_code code, int length, int flags,
struct type *
init_type (enum type_code code, int length, int flags,
- char *name, struct objfile *objfile)
+ const char *name, struct objfile *objfile)
extern struct gdbarch *get_type_arch (const struct type *);
/* Helper function to construct objfile-owned types. */
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. */
struct objfile *);
/* Helper functions to construct architecture-owned types. */