aboutsummaryrefslogtreecommitdiff
path: root/gdb/somsolib.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-08-27 22:30:29 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-08-27 22:30:29 +0000
commitf0a58b0b8c4dde0a186617d71b3280d8ce9379d0 (patch)
tree58bb74315c8a60f3bd667a4e66f624a586e91ecb /gdb/somsolib.c
parentbd415eabb699c911e5186fc9efc5a867e45ba7af (diff)
downloadgdb-f0a58b0b8c4dde0a186617d71b3280d8ce9379d0.zip
gdb-f0a58b0b8c4dde0a186617d71b3280d8ce9379d0.tar.gz
gdb-f0a58b0b8c4dde0a186617d71b3280d8ce9379d0.tar.bz2
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.
Diffstat (limited to 'gdb/somsolib.c')
-rw-r--r--gdb/somsolib.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/somsolib.c b/gdb/somsolib.c
index fa65666..892cbc9 100644
--- a/gdb/somsolib.c
+++ b/gdb/somsolib.c
@@ -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;
}