This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debug using gdb debugger, how to get the exception level?

I'm debugging the ARM Cortex A53 on the QEMU emulator using gdb debugger, any idea on how to get what exception level I'm running on (EL3/2/1/0) ?

Parents
  • Hi Vstehle,

    I'm able to dump out the cpsr register, but I don't have the decoded register value like yours in the square bracket, referring to the document you shared, I don't find any bit specifying the Exception Level, only the NZVC APSR, etc...

    Here is my cpsr at EL3 (i guess) 

    And here is my cpsr at EL0 (i guess, because it is now running the baremetal application)

Reply
  • Hi Vstehle,

    I'm able to dump out the cpsr register, but I don't have the decoded register value like yours in the square bracket, referring to the document you shared, I don't find any bit specifying the Exception Level, only the NZVC APSR, etc...

    Here is my cpsr at EL3 (i guess) 

    And here is my cpsr at EL0 (i guess, because it is now running the baremetal application)

Children