diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-24 21:14:17 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-10-24 21:14:17 +0000 |
commit | d542061a791651ada2064bcc23f62ec142acc628 (patch) | |
tree | 2a2dfa13e450a5ac8464bdfdb0999d5bb315c4d5 /gdb/solib-som.c | |
parent | 917630e4a052582e310992c23cdf912b39687d42 (diff) | |
download | gdb-d542061a791651ada2064bcc23f62ec142acc628.zip gdb-d542061a791651ada2064bcc23f62ec142acc628.tar.gz gdb-d542061a791651ada2064bcc23f62ec142acc628.tar.bz2 |
* configure.tgt: Remove hppa*64*-*-hpux11* special case.
* config/pa/hppa64.mt: Delete file.
* config/pa/hppahpux.mt (MT_CFLAGS): Remove.
(TDEPFILES): Move somread.o to ...
* config/pa/hpux.mh (NATDEPFILES): ... here.
* configure.ac: Add check for elf_hp.h header.
Search libdl and libxpdl for dlgetmodinfo.
* config.in, configure: Regenerate.
* solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
instead of #ifndef PA_SOM_ONLY. Include "solib.h".
(pa64_solib_select): Take gdbarch instead of tdep argument. Call
set_solib_ops instead of modifying current_target_so_ops.
* solib-pa64.h (pa64_solib_select): Update prototype.
* solib-som.c: Remove include of "som.h". Include "solib.h".
(som_solib_select): Take gdbarch instead of tdep argument. Call
set_solib_ops instead of modifying current_target_so_ops.
* solib-som.h (som_solib_select): Update prototype.
* hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
of tdep to som_solib_select call.
(hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
pa64_solib_select call.
* Makefile.in: Update dependencies.
Diffstat (limited to 'gdb/solib-som.c')
-rw-r--r-- | gdb/solib-som.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/solib-som.c b/gdb/solib-som.c index 96a25da..2c9b001 100644 --- a/gdb/solib-som.c +++ b/gdb/solib-som.c @@ -18,7 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "defs.h" -#include "som.h" #include "symtab.h" #include "bfd.h" #include "symfile.h" @@ -29,6 +28,7 @@ #include "hppa-tdep.h" #include "solist.h" +#include "solib.h" #undef SOLIB_SOM_DBG @@ -759,9 +759,10 @@ _initialize_som_solib (void) som_so_ops.in_dynsym_resolve_code = som_in_dynsym_resolve_code; } -void som_solib_select (struct gdbarch_tdep *tdep) +void som_solib_select (struct gdbarch *gdbarch) { - current_target_so_ops = &som_so_ops; + struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); + set_solib_ops (gdbarch, &som_so_ops); tdep->solib_thread_start_addr = som_solib_thread_start_addr; tdep->solib_get_got_by_pc = som_solib_get_got_by_pc; |