aboutsummaryrefslogtreecommitdiff
path: root/gdb/hpread.c
diff options
context:
space:
mode:
authorRandolph Chung <tausq@debian.org>2004-12-13 04:06:16 +0000
committerRandolph Chung <tausq@debian.org>2004-12-13 04:06:16 +0000
commitacf86d5407207bccaec185adfd2c0bd33d110b79 (patch)
tree811ace95e2a0026313a23c7e9595e72dfa2f1bf3 /gdb/hpread.c
parent0efcf9dce5173dc3206260261dcf01487e6e8b5d (diff)
downloadfsf-binutils-gdb-acf86d5407207bccaec185adfd2c0bd33d110b79.zip
fsf-binutils-gdb-acf86d5407207bccaec185adfd2c0bd33d110b79.tar.gz
fsf-binutils-gdb-acf86d5407207bccaec185adfd2c0bd33d110b79.tar.bz2
2004-12-13 Randolph Chung <tausq@debian.org>
* Makefile.in (pa64solib_h, somsolib_h): Delete. (solib_pa64_h, solib_som_h): New. (HFILES_NO_SRCDIR, ALLDEPFILES): Replace somsolib.h with solib-som.h. (hppa-hpux-tdep.o, hpread.o): Update dependencies. (pa64solib.o, somsolib.o): Delete. (solib-pa64.o, solib-som.o): New. * hppa-hpux-tdep.c: Include new solib interfaces. (hppa_hpux_som_init_abi): Attach to SOM solib interface. (hppa_hpux_elf_init_abi): Attach to PA64 ELF solib interface. * hppa-tdep.c (internalize_unwinds): If solib_get_text_base method is available, use it to determine the base of unwind records. * hppa-tdep.h (gdbarch_tdep): Add new solib methods. * hpread.c: Replace somsolib.h with solib-som.h. (hpread_process_one_debug_symbol): Use target vector to get thread start address. * config/pa/hppa64.mt (TDEPFILES): Use new solib interface. * config/pa/hppahpux.mt (TDEPFILES): Likewise. * config/pa/hpux.mh (NATDEPFILES): Delete references to target objects. * config/pa/tm-hppah.h: Use new solib interface.
Diffstat (limited to 'gdb/hpread.c')
-rw-r--r--gdb/hpread.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gdb/hpread.c b/gdb/hpread.c
index a9287c0..1103b36 100644
--- a/gdb/hpread.c
+++ b/gdb/hpread.c
@@ -35,7 +35,7 @@
#include "gdb-stabs.h"
#include "gdbtypes.h"
#include "demangle.h"
-#include "somsolib.h"
+#include "solib-som.h"
#include "gdb_assert.h"
#include "hppa-tdep.h"
@@ -5779,14 +5779,8 @@ 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.
*/
- 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
+ SYMBOL_VALUE_ADDRESS (sym) = dn_bufp->dsvar.location +
+ gdbarch_tdep (current_gdbarch)->solib_thread_start_addr (so);
}
}
break;