This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: m68k bootstrapping broken


Richard Zidlicky <rz@linux-m68k.org> writes:

> On Thu, Jan 15, 2004 at 12:53:15AM +0100, Bernardo Innocenti wrote:
>
>> I'll retest.  What specific gdb version were you using again?
>> I'm mostly using gdb 5.3 targeted at m68k-elf (well, actually
>> it's m68k-bdm-elf).  I gave 6.0 a shot but I had several problems.
>
> anything from 4.17 to 6.0 does not give correct backtrace for
> c programs with fomit-frame-pointer. 

No released version of gdb supports dwarf2 frame unwinding on m68k yet.
If you want to try out you need to apply this patch to gdb 6.0:

--- m68k-tdep.c.~1.69.4.2.~	2003-07-10 10:50:02.000000000 +0200
+++ m68k-tdep.c	2003-09-23 10:10:48.000000000 +0200
@@ -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"
@@ -1151,6 +1152,11 @@ 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);
+  set_gdbarch_dwarf2_build_frame_info (gdbarch, dwarf2_build_frame_info);
+
   frame_base_set_default (gdbarch, &m68k_frame_base);
 
   /* Hook in ABI-specific overrides, if they have been registered.  */

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]