aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-aix5.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2001-03-03 08:24:05 +0000
committerKevin Buettner <kevinb@redhat.com>2001-03-03 08:24:05 +0000
commitd112a051b59828babb95ef4d526f142649948fe7 (patch)
tree22577babd42d4ec55ecddd97cb96af3a9e7ed6cb /gdb/solib-aix5.c
parent130c39e6f14ce2fa014bf432dbde65a878d0cf66 (diff)
downloadgdb-d112a051b59828babb95ef4d526f142649948fe7.zip
gdb-d112a051b59828babb95ef4d526f142649948fe7.tar.gz
gdb-d112a051b59828babb95ef4d526f142649948fe7.tar.bz2
Don't use ANOFFSET as an lvalue.
Diffstat (limited to 'gdb/solib-aix5.c')
-rw-r--r--gdb/solib-aix5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/solib-aix5.c b/gdb/solib-aix5.c
index bfe7f46..b15179b 100644
--- a/gdb/solib-aix5.c
+++ b/gdb/solib-aix5.c
@@ -595,7 +595,7 @@ aix5_relocate_main_executable (void)
symfile_objfile->num_sections);
make_cleanup (free, new_offsets);
for (i = 0; i < symfile_objfile->num_sections; i++)
- ANOFFSET (new_offsets, i) = ANOFFSET (symfile_objfile->section_offsets, i);
+ new_offsets->offsets[i] = ANOFFSET (symfile_objfile->section_offsets, i);
/* Iterate over the mappings in the main executable and compute
the new offset value as appropriate. */
@@ -622,7 +622,7 @@ aix5_relocate_main_executable (void)
if (increment != ANOFFSET (new_offsets, idx))
{
- ANOFFSET (new_offsets, idx) = increment;
+ new_offsets->offsets[idx] = increment;
changed = 1;
}
}