forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -31,6 +31,9 @@
|
||||
#include "inferior.h"
|
||||
#include "infcall.h"
|
||||
#include "observer.h"
|
||||
#include "hppa-tdep.h"
|
||||
#include "solib-som.h"
|
||||
#include "solib-pa64.h"
|
||||
#include "regset.h"
|
||||
|
||||
#include "gdb_string.h"
|
||||
@@ -38,8 +41,6 @@
|
||||
#include <dl.h>
|
||||
#include <machine/save_state.h>
|
||||
|
||||
#include "hppa-tdep.h"
|
||||
|
||||
#ifndef offsetof
|
||||
#define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER)
|
||||
#endif
|
||||
@@ -1690,6 +1691,7 @@ hppa_hpux_som_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
|
||||
|
||||
tdep->find_global_pointer = hppa_hpux_som_find_global_pointer;
|
||||
hppa_hpux_init_abi (info, gdbarch);
|
||||
som_solib_select (tdep);
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -1699,6 +1701,7 @@ hppa_hpux_elf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
|
||||
|
||||
tdep->is_elf = 1;
|
||||
hppa_hpux_init_abi (info, gdbarch);
|
||||
pa64_solib_select (tdep);
|
||||
}
|
||||
|
||||
static enum gdb_osabi
|
||||
|
||||
Reference in New Issue
Block a user