From: Joel Brobecker Date: Thu, 14 Aug 2003 00:23:51 +0000 (+0000) Subject: * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37ba2569e35857a07c34be69d090cd13d83b8b5d;p=binutils-gdb.git * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization routine. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index da22c718621..852c96c1b6e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2003-08-13 J. Brobecker + + * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct + bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization + routine. + 2003-08-13 Michael Snyder * frv-tdep.c (frv_push_arguments): Use deprecated ftype. diff --git a/gdb/hppa-hpux-tdep.c b/gdb/hppa-hpux-tdep.c index 5d26c7c5442..e7849bf4b3f 100644 --- a/gdb/hppa-hpux-tdep.c +++ b/gdb/hppa-hpux-tdep.c @@ -118,6 +118,9 @@ _initialize_hppa_hpux_tdep (void) { gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_HPUX_SOM, hppa_hpux_som_init_abi); - gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_HPUX_ELF, + /* FIXME brobecker 2003-08-13: The machine number 25 corresponds to + the hppa2.0w bfd arch_info. A #define should probably be defined + in bfd, instead of using this hard-coded number. */ + gdbarch_register_osabi (bfd_arch_hppa, 25, GDB_OSABI_HPUX_ELF, hppa_hpux_elf_init_abi); }