2000-08-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Sun, 27 Aug 2000 22:30:29 +0000 (22:30 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Sun, 27 Aug 2000 22:30:29 +0000 (22:30 +0000)
* pa64solib.c (pa64_solib_load_symbols): Don't use ANOFFSET as an
  lvalue.
* xcoffread.c (xcoff_symfile_offsets): Ditto
* somsolib.c (som_solib_section_offsets): Ditto.
* somread.c (som_symfile_offsets): Ditto.
* rs6000-nat.c (vmap_symtab): Ditto.
* remote-vx.c (vx_add_symbols): Ditto.
* remote-os9k.c (rombug_wait): Ditto.

gdb/ChangeLog
gdb/pa64solib.c
gdb/remote-os9k.c
gdb/remote-vx.c
gdb/rs6000-nat.c
gdb/somread.c
gdb/somsolib.c
gdb/xcoffread.c

index 1bce6b3fbd3ec03f13dd8af8906c98ac3d206d1c..688010902ad3bdf8f7c390fcd08caf587304a4cd 100644 (file)
@@ -1,3 +1,14 @@
+2000-08-27  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
+
+       * pa64solib.c (pa64_solib_load_symbols): Don't use ANOFFSET as an
+       lvalue.
+       * xcoffread.c (xcoff_symfile_offsets): Ditto
+       * somsolib.c (som_solib_section_offsets): Ditto.
+       * somread.c (som_symfile_offsets): Ditto.
+       * rs6000-nat.c (vmap_symtab): Ditto.
+       * remote-vx.c (vx_add_symbols): Ditto.
+       * remote-os9k.c (rombug_wait): Ditto.
+
 2000-08-27  Mark Kettenis  <kettenis@gnu.org>
 
        * gregset.h: Protect against multiple inclusion.  Remove some
index 459302ae219e581aab4d4e09e655f59a6c1c138c..480802df9e450e47699b528fbd56eacde8661042 100644 (file)
@@ -319,9 +319,9 @@ pa64_solib_load_symbols (struct so_list *so, char *name, int from_tty,
       return;
     }
 
-  ANOFFSET (so->objfile->section_offsets, SECT_OFF_TEXT (so->objfile))
+  (so->objfile->section_offsets)->offsets[SECT_OFF_TEXT (so->objfile)]
     = so->pa64_solib_desc.text_base;
-  ANOFFSET (so->objfile->section_offsets, SECT_OFF_DATA (so->objfile))
+  (so->objfile->section_offsets)->offsets[SECT_OFF_DATA (so->objfile)]
     = so->pa64_solib_desc.data_base;
 
   /* Relocate all the sections based on where they got loaded.  */
index 3e1a1eedb0f885e7c394c4356c01e9ce6ed8e5fa..53ca13d2762da73d034b3a99998fd241ea2c160e 100644 (file)
@@ -493,8 +493,8 @@ rombug_wait (int pid, struct target_waitstatus *status)
        new_symfile_objfile (obj_sec->objfile, 1, 0);
       offs = (struct section_offsets *) alloca (SIZEOF_SECTION_OFFSETS);
       memcpy (offs, symfile_objfile->section_offsets, SIZEOF_SECTION_OFFSETS);
-      ANOFFSET (offs, SECT_OFF_DATA (symfile_objfile)) = addr;
-      ANOFFSET (offs, SECT_OFF_BSS (symfile_objfile)) = addr;
+      offs->offsets[SECT_OFF_DATA (symfile_objfile)]  = addr;
+      offs->offsets[SECT_OFF_BSS (symfile_objfile)]  = addr;
 
       objfile_relocate (symfile_objfile, offs);
     }
index b66bc4626a2dc2bd570d3cf4ea4dfab50f9a7101..36066607dd29b8205c1fdd3017164673e50e1cc4 100644 (file)
@@ -685,9 +685,9 @@ vx_add_symbols (char *name, int from_tty, CORE_ADDR text_addr,
   bfd_map_over_sections (objfile->obfd, find_sect, &ss);
 
   /* Both COFF and b.out frontends use these SECT_OFF_* values.  */
-  ANOFFSET (offs, SECT_OFF_TEXT (objfile)) = text_addr - ss.text_start;
-  ANOFFSET (offs, SECT_OFF_DATA (objfile)) = data_addr - ss.data_start;
-  ANOFFSET (offs, SECT_OFF_BSS (objfile)) = bss_addr - ss.bss_start;
+  offs->offsets[SECT_OFF_TEXT (objfile)]  = text_addr - ss.text_start;
+  offs->offsets[SECT_OFF_DATA (objfile)] = data_addr - ss.data_start;
+  offs->offsets[SECT_OFF_BSS (objfile)] = bss_addr - ss.bss_start;
   objfile_relocate (objfile, offs);
 }
 
index 0bf1e32da03f6c8006e0a6303a878c8af8fc4a91..f9a0b145ec52b2d604239f45029367cc566d5312 100644 (file)
@@ -609,13 +609,13 @@ vmap_symtab (struct vmap *vp)
   new_offsets = (struct section_offsets *) alloca (SIZEOF_SECTION_OFFSETS);
 
   for (i = 0; i < objfile->num_sections; ++i)
-    ANOFFSET (new_offsets, i) = ANOFFSET (objfile->section_offsets, i);
+    new_offsets->offsets[i] = ANOFFSET (objfile->section_offsets, i);
 
   /* The symbols in the object file are linked to the VMA of the section,
      relocate them VMA relative.  */
-  ANOFFSET (new_offsets, SECT_OFF_TEXT (objfile)) = vp->tstart - vp->tvma;
-  ANOFFSET (new_offsets, SECT_OFF_DATA (objfile)) = vp->dstart - vp->dvma;
-  ANOFFSET (new_offsets, SECT_OFF_BSS (objfile)) = vp->dstart - vp->dvma;
+  new_offsets->offsets[SECT_OFF_TEXT (objfile)] = vp->tstart - vp->tvma;
+  new_offsets->offsets[SECT_OFF_DATA (objfile)] = vp->dstart - vp->dvma;
+  new_offsets->offsets[SECT_OFF_BSS (objfile)] = vp->dstart - vp->dvma;
 
   objfile_relocate (objfile, new_offsets);
 }
index 92d54921621b79026fdc2839217063ff8b712c30..4605c26e4a8fdbe5192e486b208a6c8482a31bb2 100644 (file)
@@ -477,7 +477,7 @@ som_symfile_offsets (struct objfile *objfile, struct section_addr_info *addrs)
       text_addr = addrs->other[i].addr;
 
       for (i = 0; i < SECT_OFF_MAX; i++)
-       ANOFFSET (objfile->section_offsets, i) = text_addr;
+       (objfile->section_offsets)->offsets[i] = text_addr;
     }
 }
 
index fa65666d01784d16f9c72e95c500f499183660c1..892cbc9bea49bd5fe3aff7a26a92bf5198043610 100644 (file)
@@ -1378,10 +1378,10 @@ som_solib_section_offsets (struct objfile *objfile,
          asection *private_section;
 
          /* The text offset is easy.  */
-         ANOFFSET (offsets, SECT_OFF_TEXT (objfile))
+         offsets->offsets[SECT_OFF_TEXT (objfile)]
            = (so_list->som_solib.text_addr
               - so_list->som_solib.text_link_addr);
-         ANOFFSET (offsets, SECT_OFF_RODATA (objfile))
+         offsets->offsets[SECT_OFF_RODATA (objfile)]
            = ANOFFSET (offsets, SECT_OFF_TEXT (objfile));
 
          /* We should look at presumed_dp in the SOM header, but
@@ -1391,13 +1391,13 @@ som_solib_section_offsets (struct objfile *objfile,
          if (!private_section)
            {
              warning ("Unable to find $PRIVATE$ in shared library!");
-             ANOFFSET (offsets, SECT_OFF_DATA (objfile)) = 0;
-             ANOFFSET (offsets, SECT_OFF_BSS (objfile)) = 0;
+             offsets->offsets[SECT_OFF_DATA (objfile)] = 0;
+             offsets->offsets[SECT_OFF_BSS (objfile)] = 0;
              return 1;
            }
-         ANOFFSET (offsets, SECT_OFF_DATA (objfile))
+         offsets->offsets[SECT_OFF_DATA (objfile)]
            = (so_list->som_solib.data_start - private_section->vma);
-         ANOFFSET (offsets, SECT_OFF_BSS (objfile))
+         offsets->offsets[SECT_OFF_BSS (objfile)]
            = ANOFFSET (offsets, SECT_OFF_DATA (objfile));
          return 1;
        }
index 47d44a5261613b3a4a1d1a5c041aca4150fcb067..ed55c74d27708236dbfd0a7be7bfb0edcdfbf8df 100644 (file)
@@ -2744,7 +2744,7 @@ xcoff_symfile_offsets (struct objfile *objfile, struct section_addr_info *addrs)
         sensibly), so just ignore the addr parameter and use 0.
         rs6000-nat.c will set the correct section offsets via
         objfile_relocate.  */
-       ANOFFSET (objfile->section_offsets, i) = 0;
+       (objfile->section_offsets)->offsets[i] = 0;
     }
 }
 
This page took 0.03462 seconds and 4 git commands to generate.