This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Use the CFI unwinder on m68k
- From: Andreas Schwab <schwab at suse dot de>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 25 Sep 2003 11:10:50 +0200
- Subject: Use the CFI unwinder on m68k
This enables the DWARF CFI unwinder on m68k. Regtested on m68k-linux and
checked in.
Andreas.
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.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.445
diff -u -p -a -r1.445 Makefile.in
--- Makefile.in 17 Sep 2003 21:34:29 -0000 1.445
+++ Makefile.in 25 Sep 2003 08:53:25 -0000
@@ -1993,8 +1993,8 @@ m68knbsd-nat.o: m68knbsd-nat.c $(defs_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) \
Index: m68k-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/m68k-tdep.c,v
retrieving revision 1.74
diff -u -p -a -r1.74 m68k-tdep.c
--- m68k-tdep.c 14 Sep 2003 16:32:13 -0000 1.74
+++ m68k-tdep.c 25 Sep 2003 08:53:25 -0000
@@ -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 i
/* 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. */
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."