This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] solib-aix5.c: Don't use ANOFFSET as an lvalue
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH] solib-aix5.c: Don't use ANOFFSET as an lvalue
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Sat, 3 Mar 2001 01:28:24 -0700
I've just committed the patch below.
* solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
as an lvalue.
Index: solib-aix5.c
===================================================================
RCS file: /cvs/src/src/gdb/solib-aix5.c,v
retrieving revision 1.3
diff -u -p -r1.3 solib-aix5.c
--- solib-aix5.c 2001/02/22 03:01:27 1.3
+++ solib-aix5.c 2001/03/03 08:22:04
@@ -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;
}
}