* hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
authorJoel Brobecker <brobecker@gnat.com>
Thu, 14 Aug 2003 00:23:51 +0000 (00:23 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 14 Aug 2003 00:23:51 +0000 (00:23 +0000)
       bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
       routine.

gdb/ChangeLog
gdb/hppa-hpux-tdep.c

index da22c718621145fc081c7c2aebcec386191d003d..852c96c1b6e9d6c1bfe66fece1d2a329deb1678f 100644 (file)
@@ -1,3 +1,9 @@
+2003-08-13  J. Brobecker  <brobecker@gnat.com>
+
+       * 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  <msnyder@redhat.com>
 
        * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
index 5d26c7c5442b570f562bf21f508266774f7b7243..e7849bf4b3fe7da0faed7e71577056e9a0422d09 100644 (file)
@@ -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);
 }