how to get system register tpidr_el0 in gdb for the aarch64

58 Views Asked by At

I want to debug the TLS variable (Thread Local Storage variable) in the gdb. For the X86, I can the the TCB by command print $fs_base.

For the aarch64, the corresponding register is tpidr_el0. But I can find the command to get the value of this register.

info registers info registers all

1

There are 1 best solutions below

1
li junlong On

After updating gdb to ver 14, I can get TCB by print $tpidr