aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2003-08-13 18:57:01 +0000
committerJoel Brobecker <brobecker@gnat.com>2003-08-13 18:57:01 +0000
commit752d4ac100f278240416392f38a713cdd92dada6 (patch)
tree409eb2e7e33974b95b7c25f52ee97b69169f51f7 /gdb/hppa-tdep.c
parent1426ac1daf31271d44d622bb2b044a1bb514d8f4 (diff)
downloadgdb-752d4ac100f278240416392f38a713cdd92dada6.zip
gdb-752d4ac100f278240416392f38a713cdd92dada6.tar.gz
gdb-752d4ac100f278240416392f38a713cdd92dada6.tar.bz2
* hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
initialization after the common gdbarch initialization, not before.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r--gdb/hppa-tdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index fb40481..8e50aef 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;
}