* somread.c (som_symfile_offsets): Add 'const' to addrs.
authorTom Tromey <tromey@redhat.com>
Mon, 6 May 2013 19:38:04 +0000 (19:38 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 6 May 2013 19:38:04 +0000 (19:38 +0000)
* machoread.c (macho_symfile_offsets): Add 'const' to addrs.
* xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
Remove declaration.

gdb/ChangeLog
gdb/machoread.c
gdb/somread.c
gdb/xcoffread.c

index 52780a9d74a553c7ea986239ce3959d9b1eb81c7..2579f7dcce917c05cced335987bafa0505a0fde4 100644 (file)
@@ -1,3 +1,10 @@
+2013-05-06  Tom Tromey  <tromey@redhat.com>
+
+       * 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  <tromey@redhat.com>
 
        * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
index 18cd04ad13f0cccebadd9a3decbb73396422fcc9..9877f07b4d343df6aad6c30bd9b2639be3797108 100644 (file)
@@ -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;
index 7772f9faf0f6a89a24e21340987db3c65a0deada..db6c4d441e9287632653f32130403e15f9e55935 100644 (file)
@@ -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;
index 48b693513dc5ef4af4a4f22bcc473e44d3fa10f1..a9ce667000dff2a86622981be5462f5a0c94521e 100644 (file)
@@ -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)
 \f
 static void
 xcoff_symfile_offsets (struct objfile *objfile,
-                      struct section_addr_info *addrs)
+                      const struct section_addr_info *addrs)
 {
   const char *first_section_name;
 
This page took 0.034068 seconds and 4 git commands to generate.