diff options
author | Jeff Law <law@redhat.com> | 1995-06-07 18:48:00 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1995-06-07 18:48:00 +0000 |
commit | fbf8d7e17a278de34f75f0a1c0ca3b036e8d01cb (patch) | |
tree | a1020cff5d1dfba10edba0ea5b75877a1135f978 /gdb/somsolib.c | |
parent | c38e0b58f332b3a4435a47d98e6e4602d08ab2ce (diff) | |
download | gdb-fbf8d7e17a278de34f75f0a1c0ca3b036e8d01cb.zip gdb-fbf8d7e17a278de34f75f0a1c0ca3b036e8d01cb.tar.gz gdb-fbf8d7e17a278de34f75f0a1c0ca3b036e8d01cb.tar.bz2 |
* somsolib.c (som_solib_section_offsets): Handle relative pathnames.
Part of mentor-6302.
Diffstat (limited to 'gdb/somsolib.c')
-rw-r--r-- | gdb/somsolib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/somsolib.c b/gdb/somsolib.c index ede2c41..91b0e0c 100644 --- a/gdb/somsolib.c +++ b/gdb/somsolib.c @@ -36,7 +36,8 @@ and by Cygnus Support. */ /* TODO: - * Relocate data addresses in the shared library. + * Access to static (file scoped) variables in shared libraries + still doesn't work. * Most of this code should work for hp300 shared libraries. Does anyone care enough to weed out any SOM-isms. @@ -578,7 +579,7 @@ som_solib_section_offsets (objfile, offsets) { /* Oh what a pain! We need the offsets before so_list->objfile is valid. The BFDs will never match. Make a best guess. */ - if (!strcmp (so_list->som_solib.name, objfile->name)) + if (strstr (objfile->name, so_list->som_solib.name)) { asection *private_section; |