aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-01-21 18:07:03 +0000
committerTom Tromey <tromey@redhat.com>2013-01-21 18:07:03 +0000
commit748e18ae852546a7d0fceb3537e8b5efdd03f5f3 (patch)
treed650f9a2da8b5f73b4a4dca445ffc8f52b1cd9a7
parent46212e0bb5c0c74454045ef9410f80f1c9b44ddd (diff)
downloadgdb-748e18ae852546a7d0fceb3537e8b5efdd03f5f3.zip
gdb-748e18ae852546a7d0fceb3537e8b5efdd03f5f3.tar.gz
gdb-748e18ae852546a7d0fceb3537e8b5efdd03f5f3.tar.bz2
* gdbtypes.c (init_type): Make 'name' const.
* gdbtypes.h (init_type): Update.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/gdbtypes.c2
-rw-r--r--gdb/gdbtypes.h2
3 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6323056..6d51c7d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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.
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 5885241..6a4b152 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 8b340a3..0ca7a87 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. */