aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2003-09-25 09:10:30 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2003-09-25 09:10:30 +0000
commit3f244638cfe4bedd1ca9b4f5fcbbe26f4b7833b7 (patch)
tree409c2f5cc39071401567e6ba50b5cefa0c3a3a09
parent1c0159e090d804f2a9d2203a1c6d9edca1eb758b (diff)
downloadgdb-3f244638cfe4bedd1ca9b4f5fcbbe26f4b7833b7.zip
gdb-3f244638cfe4bedd1ca9b4f5fcbbe26f4b7833b7.tar.gz
gdb-3f244638cfe4bedd1ca9b4f5fcbbe26f4b7833b7.tar.bz2
* m68k-tdep.c: Include "dwarf2-frame.h".
(m68k_gdbarch_init): Add the DWARF CFI frame unwinder. * Makefile.in (m68k-tdep.o): Update dependencies.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/Makefile.in4
-rw-r--r--gdb/m68k-tdep.c5
3 files changed, 13 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 530b4a5..9013b97 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2003-09-25 Andreas Schwab <schwab@suse.de>
+
+ * m68k-tdep.c: Include "dwarf2-frame.h".
+ (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
+ * Makefile.in (m68k-tdep.o): Update dependencies.
+
2003-09-25 Corinna Vinschen <vinschen@redhat.com>
* sh-tdep.c (struct frame_extra_info): Remove.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 350a255..3146aed 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1994,8 +1994,8 @@ m68knbsd-nat.o: m68knbsd-nat.c $(defs_h) $(inferior_h) $(gdbcore_h) \
$(regcache_h)
m68knbsd-tdep.o: m68knbsd-tdep.c $(defs_h) $(gdbtypes_h) $(regcache_h)
m68k-stub.o: m68k-stub.c
-m68k-tdep.o: m68k-tdep.c $(defs_h) $(frame_h) $(frame_base_h) \
- $(frame_unwind_h) $(symtab_h) $(gdbcore_h) $(value_h) \
+m68k-tdep.o: m68k-tdep.c $(defs_h) $(dwarf2_frame_h) $(frame_h) \
+ $(frame_base_h) $(frame_unwind_h) $(symtab_h) $(gdbcore_h) $(value_h) \
$(gdb_string_h) $(gdb_assert_h) $(inferior_h) $(regcache_h) \
$(arch_utils_h) $(osabi_h) $(dis_asm_h) $(m68k_tdep_h) $(gregset_h)
macrocmd.o: macrocmd.c $(defs_h) $(macrotab_h) $(macroexp_h) $(macroscope_h) \
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c
index 72c3b86..e5b41a9 100644
--- a/gdb/m68k-tdep.c
+++ b/gdb/m68k-tdep.c
@@ -21,6 +21,7 @@
Boston, MA 02111-1307, USA. */
#include "defs.h"
+#include "dwarf2-frame.h"
#include "frame.h"
#include "frame-base.h"
#include "frame-unwind.h"
@@ -1153,6 +1154,10 @@ m68k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Frame unwinder. */
set_gdbarch_unwind_dummy_id (gdbarch, m68k_unwind_dummy_id);
set_gdbarch_unwind_pc (gdbarch, m68k_unwind_pc);
+
+ /* Hook in the DWARF CFI frame unwinder. */
+ frame_unwind_append_sniffer (gdbarch, dwarf2_frame_sniffer);
+
frame_base_set_default (gdbarch, &m68k_frame_base);
/* Hook in ABI-specific overrides, if they have been registered. */