[commit/hpux] Replace hard-coded constant by associated machine name

Joel Brobecker brobecker@gnat.com
Fri Sep 19 06:16:00 GMT 2003


Now that the machine names have been added to bfd, I checked the
following change in.

2003-09-18  J. Brobecker  <brobecker@gnat.com>

        * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
        hard-coded constant. Use the proper machine name instead.

Cheers,
-- 
Joel
-------------- next part --------------
Index: hppa-hpux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-hpux-tdep.c,v
retrieving revision 1.10
diff -u -p -r1.10 hppa-hpux-tdep.c
--- hppa-hpux-tdep.c	15 Aug 2003 23:02:03 -0000	1.10
+++ hppa-hpux-tdep.c	19 Sep 2003 06:10:07 -0000
@@ -171,9 +171,6 @@ _initialize_hppa_hpux_tdep (void)
 {
   gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_HPUX_SOM,
                           hppa_hpux_som_init_abi);
-  /* 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,
+  gdbarch_register_osabi (bfd_arch_hppa, bfd_mach_hppa20w, GDB_OSABI_HPUX_ELF,
                           hppa_hpux_elf_init_abi);
 }


More information about the Gdb-patches mailing list