This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH]: Use dwarf2 unwinder on sparc32/linux
- From: "David S. Miller" <davem at davemloft dot net>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 05 Apr 2006 13:26:32 -0700 (PDT)
- Subject: [PATCH]: Use dwarf2 unwinder on sparc32/linux
I'm not enabling it on sparc64/linux yet because it causes
some problems, probably related to stack biasing, which I
need to investigate.
2006-04-05 David S. Miller <davem@sunset.davemloft.net>
* sparc-linux-tdep.c (sparc32_linux_init_abi): Append
dwarf2 frame sniffer.
* Makefile.in (sparc-linux-tdep.o): Update dependencies.
--- sparc-linux-tdep.c.~1~ 2006-04-05 12:18:50.000000000 -0700
+++ sparc-linux-tdep.c 2006-04-05 13:02:35.000000000 -0700
@@ -20,6 +20,7 @@
Boston, MA 02110-1301, USA. */
#include "defs.h"
+#include "dwarf2-frame.h"
#include "floatformat.h"
#include "frame.h"
#include "frame-unwind.h"
@@ -150,6 +151,9 @@ sparc32_linux_init_abi (struct gdbarch_i
/* Enable TLS support. */
set_gdbarch_fetch_tls_load_module_address (gdbarch,
svr4_fetch_objfile_link_map);
+
+ /* Hook in the DWARF CFI frame unwinder. */
+ frame_unwind_append_sniffer (gdbarch, dwarf2_frame_sniffer);
}
/* Provide a prototype to silence -Wmissing-prototypes. */
--- Makefile.in.~1~ 2006-04-05 11:34:52.000000000 -0700
+++ Makefile.in 2006-04-05 13:23:11.000000000 -0700
@@ -2641,10 +2641,10 @@ sparc64-tdep.o: sparc64-tdep.c $(defs_h)
sparc-linux-nat.o: sparc-linux-nat.c $(defs_h) $(regcache_h) $(gregset_h) \
$(sparc_tdep_h) $(sparc_nat_h) $(inferior_h) $(target_h) \
$(linux_nat_h)
-sparc-linux-tdep.o: sparc-linux-tdep.c $(defs_h) $(floatformat_h) $(frame_h) \
- $(frame_unwind_h) $(gdbarch_h) $(gdbcore_h) $(osabi_h) $(regcache_h) \
- $(solib_svr4_h) $(symtab_h) $(trad_frame_h) $(tramp_frame_h) \
- $(sparc_tdep_h)
+sparc-linux-tdep.o: sparc-linux-tdep.c $(defs_h) $(dwarf2_frame_h) \
+ $(floatformat_h) $(frame_h) $(frame_unwind_h) $(gdbarch_h) \
+ $(gdbcore_h) $(osabi_h) $(regcache_h) $(solib_svr4_h) $(symtab_h) \
+ $(trad_frame_h) $(tramp_frame_h) $(sparc_tdep_h)
sparc-nat.o: sparc-nat.c $(defs_h) $(inferior_h) $(regcache_h) $(target_h) \
$(gdb_assert_h) $(gdb_string_h) $(gdb_wait_h) $(sparc_tdep_h) \
$(sparc_nat_h) $(inf_ptrace_h)