Hi,
I am using ARM v7-A (Cortex A15 MP) and i want to observe the stack context, as i understand it, there are some offset values inside of ARM Core Registers (between LP, SP and PC), and the offset values are different from program to program (task to task). My main purpose is find the PC, LP adresses by using SP address for each program (task/process).
How can i find these offset values?
Is there any struct about stacks and stack variables?
Assume you use an arm eabi gnu compiler, add
-fno-omit-frame-pointer
The\option makes sure a consistent frame layout can be obtained. From that your program can walk up the stack and get all the caller addresses.
Some useful information can be found here
https://azeria-labs.com/functions-and-the-stack-part-7/