Ouss4 commented on PR #6129:
URL: https://github.com/apache/incubator-nuttx/pull/6129#issuecomment-1106461354

   >.  but the A0 in the dump_stack is indistinguishable from the general local 
variables.How to distinguish A0 and local variables in stack?
   
   Do you mean when the registers are spilled?  In that case A0 along side A1, 
A2 and A3, will be in the base save area.  This is located below the stack 
frame and can be accessed with negative offsets from SP, `l32i a0, sp, -16` for 
instance for A0.  I am not sure if I understood the question correctly, though.
   
   @xiaoxiang781216 the code should be similar to this: 
https://github.com/apache/incubator-nuttx/blob/master/tools/esp32/backtrace.gdbscript#L56-L67


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to