aboutsummaryrefslogtreecommitdiff
path: root/gdb/m32r-tdep.c
diff options
context:
space:
mode:
authorKazuhiro Inaoka <inaoka.kazuhiro@renesas.com>2004-11-04 02:15:20 +0000
committerKazuhiro Inaoka <inaoka.kazuhiro@renesas.com>2004-11-04 02:15:20 +0000
commitc46b0409aa7993a1c2b09e0067aa7a4790aca5f5 (patch)
treebf926044928e1696829336775f23bb3f8fd1d365 /gdb/m32r-tdep.c
parent0ebdbb83125357775c78f6760858084bddfa9939 (diff)
downloadgdb-c46b0409aa7993a1c2b09e0067aa7a4790aca5f5.zip
gdb-c46b0409aa7993a1c2b09e0067aa7a4790aca5f5.tar.gz
gdb-c46b0409aa7993a1c2b09e0067aa7a4790aca5f5.tar.bz2
2004-11-04 Kei Sakamoto <sakamoto.kei@denesas.com>
* Makefile.in (m32r-tdep.o): Update dependencies. * m32r-tdep.c (m32r_gdbarch_init): Call gdbarch_init_osabi for ABI-specific overrides.
Diffstat (limited to 'gdb/m32r-tdep.c')
-rw-r--r--gdb/m32r-tdep.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/m32r-tdep.c b/gdb/m32r-tdep.c
index c4497c9..82ddf30 100644
--- a/gdb/m32r-tdep.c
+++ b/gdb/m32r-tdep.c
@@ -33,6 +33,7 @@
#include "inferior.h"
#include "symfile.h"
#include "objfiles.h"
+#include "osabi.h"
#include "language.h"
#include "arch-utils.h"
#include "regcache.h"
@@ -938,7 +939,6 @@ m32r_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_frame_align (gdbarch, m32r_frame_align);
- frame_unwind_append_sniffer (gdbarch, m32r_frame_sniffer);
frame_base_set_default (gdbarch, &m32r_frame_base);
/* Methods for saving / extracting a dummy frame's ID. The ID's
@@ -951,6 +951,12 @@ m32r_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_print_insn (gdbarch, print_insn_m32r);
+ /* Hook in ABI-specific overrides, if they have been registered. */
+ gdbarch_init_osabi (info, gdbarch);
+
+ /* Hook in the default unwinders. */
+ frame_unwind_append_sniffer (gdbarch, m32r_frame_sniffer);
+
return gdbarch;
}