This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: ARM frame fp is not always FP_REGNUM
Alexandre Oliva wrote:
>
> On Jul 4, 2000, Andrew Cagney <ac131313@cygnus.com> wrote:
>
> > FP_REGNUM refers to GDB's internal frame-handle / frame-pointer /
> > frame-base variable.
>
> On ARM, it's register 11, which is a real register. But SP_REGNUM is
> register 13. Then, when framereg == 13 in EXTRA_FRAME_INFO, `info
> regs' will display the value of r13 for r11, and the actual value of
> r11 cannot be obtained.
Yes it can. If you say "print $fp" you will get the value
of register 11. I know this is confusing -- nay, broken.
We've talked for a long time about what to do about it.