Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfa] Use dwarf2 unwinding on ARM
@ 2005-03-25 21:11 Daniel Jacobowitz
  2005-03-29 15:47 ` Richard Earnshaw
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2005-03-25 21:11 UTC (permalink / raw)
  To: gdb-patches; +Cc: Richard Earnshaw

Hi Richard,

We talked last year about turning on dwarf2-based unwinding for ARM.  The
problem was that older versions of GCC would emit incorrect unwind
information for Thumb functions, but that's been fixed for a while
now; I think it's time to throw the switch in GDB.

Committed to csl-arm-20050325-branch.  OK for HEAD?

-- 
Daniel Jacobowitz
CodeSourcery, LLC

2005-03-25  Daniel Jacobowitz  <dan@codesourcery.com>

	* Makefile.in (arm-tdep.o): Update dependencies.
	* arm-tdep.c: Include "objfiles.h" and "dwarf2-frame.h".
	(arm_gdbarch_init): Register dwarf2_frame_sniffer.

Index: gdb/Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.707
diff -u -p -r1.707 Makefile.in
--- gdb/Makefile.in	18 Mar 2005 21:03:38 -0000	1.707
+++ gdb/Makefile.in	25 Mar 2005 21:08:03 -0000
@@ -1744,7 +1744,8 @@ arm-tdep.o: arm-tdep.c $(defs_h) $(frame
 	$(doublest_h) $(value_h) $(arch_utils_h) $(osabi_h) \
 	$(frame_unwind_h) $(frame_base_h) $(trad_frame_h) $(arm_tdep_h) \
 	$(gdb_sim_arm_h) $(elf_bfd_h) $(coff_internal_h) $(elf_arm_h) \
-	$(gdb_assert_h) $(bfd_in2_h) $(libcoff_h)
+	$(gdb_assert_h) $(bfd_in2_h) $(libcoff_h) $(objfiles_h) \
+	$(dwarf2_frame_h)
 auxv.o: auxv.c $(defs_h) $(target_h) $(gdbtypes_h) $(command_h) \
 	$(inferior_h) $(valprint_h) $(gdb_assert_h) $(auxv_h) \
 	$(elf_common_h)
Index: gdb/arm-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arm-tdep.c,v
retrieving revision 1.194
diff -u -p -r1.194 arm-tdep.c
--- gdb/arm-tdep.c	3 Mar 2005 15:14:09 -0000	1.194
+++ gdb/arm-tdep.c	25 Mar 2005 21:08:04 -0000
@@ -37,6 +37,8 @@
 #include "frame-unwind.h"
 #include "frame-base.h"
 #include "trad-frame.h"
+#include "objfiles.h"
+#include "dwarf2-frame.h"
 
 #include "arm-tdep.h"
 #include "gdb/sim-arm.h"
@@ -2789,6 +2791,7 @@ arm_gdbarch_init (struct gdbarch_info in
   /* Add some default predicates.  */
   frame_unwind_append_sniffer (gdbarch, arm_stub_unwind_sniffer);
   frame_unwind_append_sniffer (gdbarch, arm_sigtramp_unwind_sniffer);
+  frame_unwind_append_sniffer (gdbarch, dwarf2_frame_sniffer);
   frame_unwind_append_sniffer (gdbarch, arm_prologue_unwind_sniffer);
 
   /* Now we have tuned the configuration, set a few final things,


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [rfa] Use dwarf2 unwinding on ARM
  2005-03-25 21:11 [rfa] Use dwarf2 unwinding on ARM Daniel Jacobowitz
@ 2005-03-29 15:47 ` Richard Earnshaw
  2005-03-29 16:56   ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Earnshaw @ 2005-03-29 15:47 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb-patches

On Fri, 2005-03-25 at 21:12, Daniel Jacobowitz wrote:
> Hi Richard,
> 
> We talked last year about turning on dwarf2-based unwinding for ARM.  The
> problem was that older versions of GCC would emit incorrect unwind
> information for Thumb functions, but that's been fixed for a while
> now; I think it's time to throw the switch in GDB.
> 
> Committed to csl-arm-20050325-branch.  OK for HEAD?

I'd forgotten that we hadn't.  Yes, this is ok for head too.

R.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [rfa] Use dwarf2 unwinding on ARM
  2005-03-29 15:47 ` Richard Earnshaw
@ 2005-03-29 16:56   ` Daniel Jacobowitz
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2005-03-29 16:56 UTC (permalink / raw)
  To: gdb-patches

On Tue, Mar 29, 2005 at 04:46:19PM +0100, Richard Earnshaw wrote:
> On Fri, 2005-03-25 at 21:12, Daniel Jacobowitz wrote:
> > Hi Richard,
> > 
> > We talked last year about turning on dwarf2-based unwinding for ARM.  The
> > problem was that older versions of GCC would emit incorrect unwind
> > information for Thumb functions, but that's been fixed for a while
> > now; I think it's time to throw the switch in GDB.
> > 
> > Committed to csl-arm-20050325-branch.  OK for HEAD?
> 
> I'd forgotten that we hadn't.  Yes, this is ok for head too.

Thanks, committed.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-29 16:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-25 21:11 [rfa] Use dwarf2 unwinding on ARM Daniel Jacobowitz
2005-03-29 15:47 ` Richard Earnshaw
2005-03-29 16:56   ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox