From 66f65e2b480682001987f8cf58b78577c3e85491 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 6 May 2013 19:38:04 +0000 Subject: [PATCH] * somread.c (som_symfile_offsets): Add 'const' to addrs. * machoread.c (macho_symfile_offsets): Add 'const' to addrs. * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs. Remove declaration. --- gdb/ChangeLog | 7 +++++++ gdb/machoread.c | 2 +- gdb/somread.c | 3 ++- gdb/xcoffread.c | 5 +---- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 52780a9d74a..2579f7dcce9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2013-05-06 Tom Tromey + + * somread.c (som_symfile_offsets): Add 'const' to addrs. + * machoread.c (macho_symfile_offsets): Add 'const' to addrs. + * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs. + Remove declaration. + 2013-05-06 Tom Tromey * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not diff --git a/gdb/machoread.c b/gdb/machoread.c index 18cd04ad13f..9877f07b4d3 100644 --- a/gdb/machoread.c +++ b/gdb/machoread.c @@ -968,7 +968,7 @@ macho_symfile_finish (struct objfile *objfile) static void macho_symfile_offsets (struct objfile *objfile, - struct section_addr_info *addrs) + const struct section_addr_info *addrs) { unsigned int i; unsigned int num_sections; diff --git a/gdb/somread.c b/gdb/somread.c index 7772f9faf0f..db6c4d441e9 100644 --- a/gdb/somread.c +++ b/gdb/somread.c @@ -487,7 +487,8 @@ set_section_index (struct objfile *objfile, flagword invert, flagword flags, Plain and simple for now. */ static void -som_symfile_offsets (struct objfile *objfile, struct section_addr_info *addrs) +som_symfile_offsets (struct objfile *objfile, + const struct section_addr_info *addrs) { int i; CORE_ADDR text_addr; diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 48b693513dc..a9ce667000d 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -220,9 +220,6 @@ static void xcoff_new_init (struct objfile *); static void xcoff_symfile_finish (struct objfile *); -static void xcoff_symfile_offsets (struct objfile *, - struct section_addr_info *addrs); - static char *coff_getfilename (union internal_auxent *, struct objfile *); static void read_symbol (struct internal_syment *, int); @@ -3038,7 +3035,7 @@ xcoff_initial_scan (struct objfile *objfile, int symfile_flags) static void xcoff_symfile_offsets (struct objfile *objfile, - struct section_addr_info *addrs) + const struct section_addr_info *addrs) { const char *first_section_name; -- 2.30.2