This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: View registers from stack frames
- From: Fabian Cenedese <Cenedese at indel dot ch>
- To: <gdb at sources dot redhat dot com>
- Date: Fri, 08 Oct 2004 10:54:34 +0200
- Subject: Re: View registers from stack frames
- References: <5.2.0.9.1.20041007134711.01d12d90@NT_SERVER><5.2.0.9.1.20041007134711.01d12d90@NT_SERVER>
>> In frame 0 pc and lr are correct (different), but in the other frames
>> they always have the same value whereas lr should have the
>> value of the pc of the next frame, right?
>
>Recent versions of GDB show the same value for lr and pc for the later
>frames. I think this is okay.
>
>Kevin
I have only tested the --target=powerpc-eabi version so I don't know about
other processors. Is this true that gdb is supposed to show pc and lr with
the same values for stack frames >0? Isn't the purpose of the lr to point
to the previous stack frame (and so be different from the actual pc)?
And if the actual behaviour is correct then why is it different for frame 0?
Thanks
bye Fabi