This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: scan_prologue/next, misunderstanding
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Florent DEFAY <spira dot inhabitant at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 19 May 2009 06:33:31 -0700
- Subject: Re: scan_prologue/next, misunderstanding
- References: <8502af3c0905190536m326f1de9n6d3da92eb659bd42@mail.gmail.com>
> I got inspiration from avr-tdep.c. I still have problems with 'next'.
> I set a 'printf' in the function skip_prologue and I can tell it is
> never used.
Just a first guess:
I haven't looked at the code itself, but there are usually more than one
unwinders; for instance, there is a dwarf unwinder that reads the frame
info data from the dwarf data and use that exclusively to do the unwinding.
This might explain why the AVR unwinder based on prologue analysis doesn't
get called.
--
Joel