This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: avr and frame unwinding
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: "Theodore A. Roth" <troth at openavr dot org>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 05 Jun 2003 22:00:53 -0400
- Subject: Re: avr and frame unwinding
- References: <Pine.LNX.4.53.0306051719070.29024@knuth.amplepower.com>
Can you try the exact same operation with a GDB that doesn't have the
changes? That way it should be possible to compare the two traces
side-by-side and see where things are going wrong.
A guess is that it is getting the unwound PC value wrong. For the d10v
I had to make two tweaks:
- abort the prologue scanner when it reached PC if that is before the
end of the prologue
This stopped the prologue getting the unwound PC's location wrong. It
may not have yet executed the save PC instruction.
- track the register that the PC is in before it is saved
The code needs to be able to unwind the PC value in the prologue before
it has been saved on the stack.
Andrew