[commit/hpux/multiarch] osabi gdbarch init _after_ common gdbarch init

Joel Brobecker brobecker@gnat.com
Wed Aug 13 19:01:00 GMT 2003


This is in preparation for some hppa32 vs hppa64 multiarch work. I
realized that the common gdbarch initialization was overriding the
abi-specific initialization. This didn't have any consequence because
the abi-specific initialization is almost null, but we will soon
start populating the 64-bit initialization routine...

2003-08-13  J. Brobecker  <brobecker@gnat.com>

        * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
        initialization after the common gdbarch initialization, not before.

Tested on hppa-hpux (32bits).

-- 
Joel
-------------- next part --------------
Index: hppa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.c,v
retrieving revision 1.87
diff -u -p -r1.87 hppa-tdep.c
--- hppa-tdep.c	13 Aug 2003 17:09:09 -0000	1.87
+++ hppa-tdep.c	13 Aug 2003 18:53:12 -0000
@@ -4997,9 +4997,6 @@ hppa_gdbarch_init (struct gdbarch_info i
   /* If none found, then allocate and initialize one.  */
   gdbarch = gdbarch_alloc (&info, NULL);
 
-  /* Hook in ABI-specific overrides, if they have been registered.  */
-  gdbarch_init_osabi (info, gdbarch);
-
   set_gdbarch_reg_struct_has_addr (gdbarch, hppa_reg_struct_has_addr);
   set_gdbarch_function_start_offset (gdbarch, 0);
   set_gdbarch_skip_prologue (gdbarch, hppa_skip_prologue);
@@ -5055,6 +5052,9 @@ hppa_gdbarch_init (struct gdbarch_info i
 
   /* Helper for function argument information.  */
   set_gdbarch_fetch_pointer_argument (gdbarch, hppa_fetch_pointer_argument);
+
+  /* Hook in ABI-specific overrides, if they have been registered.  */
+  gdbarch_init_osabi (info, gdbarch);
 
   return gdbarch;
 }


More information about the Gdb-patches mailing list