From: Joel Brobecker Date: Wed, 13 Aug 2003 18:57:01 +0000 (+0000) Subject: * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=752d4ac100f278240416392f38a713cdd92dada6;p=binutils-gdb.git * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch initialization after the common gdbarch initialization, not before. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e61111291bf..f908cc55f3d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-08-13 J. Brobecker + + * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch + initialization after the common gdbarch initialization, not before. + 2003-08-13 J. Brobecker * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used. diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index fb40481c6a1..8e50aef0060 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -4997,9 +4997,6 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) /* 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); @@ -5056,6 +5053,9 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) /* 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; }