aboutsummaryrefslogtreecommitdiff
path: root/gdb/hpread.c
diff options
context:
space:
mode:
authorRandolph Chung <tausq@debian.org>2004-11-13 02:19:03 +0000
committerRandolph Chung <tausq@debian.org>2004-11-13 02:19:03 +0000
commit89676665cf9b9365020080047d199d67c2122378 (patch)
tree520708c0e97a27839dd183186765b3743d31ed8d /gdb/hpread.c
parent4991999e3530290962590480d1de73c5483f8b2a (diff)
downloadgdb-89676665cf9b9365020080047d199d67c2122378.zip
gdb-89676665cf9b9365020080047d199d67c2122378.tar.gz
gdb-89676665cf9b9365020080047d199d67c2122378.tar.bz2
2004-11-12 Randolph Chung <tausq@debian.org>
* pa64solib.c (pa64_solib_thread_start_addr): Rename from so_lib_thread_start_addr. * pa64solib.h (so_list): Forward declare. (pa64_solib_thread_start_addr): Prototype. * somsolib.c (SHL_LOAD, SHL_UNLOAD): Define if not already defined. (no_shared_libraries): Remove. (som_solib_thread_start_addr): Rename from so_lib_thread_start_addr. * somsolib.h (som_solib_thread_start_addr): Likewise; prototype. * hpread.c (hpread_process_one_debug_symbol): Use either the som or the elf solib handler to find the start address. * config/pa/hppahpux.mh (NATDEPFILES): Move target-specific support files to the target makefile. * config/pa/hpux1020.mh (NATDEPFILES): Likewise. * config/pa/hpux11.mh (NATDEPFILES): Likewise. * config/pa/hpux11w.mh (NATDEPFILES): Likewise. * config/pa/hppa64.mt (TDEPFILES): Put target-specific support files for symbol reading and shared library handling here. * config/pa/hppahpux.mt (TDEPFILES): Likewise. (PA_SOM_ONLY): Define so we can build a 32-bit SOM only target without bringing in 64-bit support.
Diffstat (limited to 'gdb/hpread.c')
-rw-r--r--gdb/hpread.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/hpread.c b/gdb/hpread.c
index 36aaa07..a9287c0 100644
--- a/gdb/hpread.c
+++ b/gdb/hpread.c
@@ -5779,8 +5779,14 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name,
* where to look for this variable, using a call-back
* to interpret the private shared-library data.
*/
- SYMBOL_VALUE_ADDRESS (sym) = dn_bufp->dsvar.location +
- so_lib_thread_start_addr (so);
+ if (bfd_get_flavour(objfile->obfd) == bfd_target_som_flavour)
+ SYMBOL_VALUE_ADDRESS (sym) = dn_bufp->dsvar.location +
+ som_solib_thread_start_addr (so);
+#ifndef PA_SOM_ONLY
+ else
+ SYMBOL_VALUE_ADDRESS (sym) = dn_bufp->dsvar.location +
+ pa64_solib_thread_start_addr (so);
+#endif
}
}
break;