This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: [PATCH] xtensa: fix access to the last pseudo register


Max Filippov wrote:
[...]
> I'm removing that aliasing to expose the last pseudoregister.
> After that patch fp pseudo register still exists and it is a read only
> alias
> for a1. I don't think that's right, because normally frame pointer is a7
> or
> a15, depending on ABI, but that's definitely a separate question.

If the compiler allocated a frame pointer for the function, it is
a7 or a15 according to ABI, correct.  If no separate pointer is
allocated (usually when no variable stack allocation such as alloca
or similar is used in the function), I believe a1 is effectively
both the stack pointer and the frame pointer.

-Marc

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