diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-04-21 14:24:45 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2000-04-21 14:24:45 +0000 |
commit | e9f8c07685d3eace1609c77d39247d6b59c6b646 (patch) | |
tree | 8c80c1fd3d0e67bb2928cc9b2dc6944e24a44c36 /gdb/somread.c | |
parent | fe2b0d3ddc4324a2bf55a54a5724469eab99f5a1 (diff) | |
download | gdb-e9f8c07685d3eace1609c77d39247d6b59c6b646.tar.gz |
2000-04-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* win32-nat.c (handle_load_dll): Don't treat .text as a special
section anymore.
* somread.c (som_symfile_offsets): Ditto.
* somsolib.c (som_solib_add_solib_objfile): Ditto.
Diffstat (limited to 'gdb/somread.c')
-rw-r--r-- | gdb/somread.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/somread.c b/gdb/somread.c index 489a33095ab..bc9a3829abb 100644 --- a/gdb/somread.c +++ b/gdb/somread.c @@ -465,6 +465,7 @@ som_symfile_offsets (objfile, addrs) struct section_addr_info *addrs; { int i; + CORE_ADDR text_addr; objfile->num_sections = SECT_OFF_MAX; objfile->section_offsets = (struct section_offsets *) @@ -474,8 +475,13 @@ som_symfile_offsets (objfile, addrs) offsets from the library, else get them from addrs. */ if (!som_solib_section_offsets (objfile, objfile->section_offsets)) { + for (i = 0; i < SECT_OFF_MAX && addrs->other[i].name; i++) + if (strcmp (addrs->other[i].name, ".text") == 0) + break; + text_addr = addrs->other[i].addr; + for (i = 0; i < SECT_OFF_MAX; i++) - ANOFFSET (objfile->section_offsets, i) = addrs -> text_addr; + ANOFFSET (objfile->section_offsets, i) = text_addr; } } |