From fbf8d7e17a278de34f75f0a1c0ca3b036e8d01cb Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 7 Jun 1995 18:48:00 +0000 Subject: * somsolib.c (som_solib_section_offsets): Handle relative pathnames. Part of mentor-6302. --- gdb/ChangeLog | 2 ++ gdb/somsolib.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 30ba31d..1ff8b33 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ Wed Jun 7 12:41:42 1995 Jeff Law (law@snake.cs.utah.edu) + * somsolib.c (som_solib_section_offsets): Handle relative pathnames. + * hppa-tdep.c (frame_saved_pc): Handle backtracing through signal handler in dynamically linked executables. 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; -- cgit v1.1