diff options
author | Thiago Jung Bauermann <thiago.bauermann@linaro.org> | 2025-06-16 21:10:37 -0300 |
---|---|---|
committer | Thiago Jung Bauermann <thiago.bauermann@linaro.org> | 2025-08-29 18:35:58 -0300 |
commit | 96e9e6150f1ce39954dd1639515f83609c095096 (patch) | |
tree | a98383a54917ea746380cd9b47d3e796d1cfa4b4 /zlib | |
parent | 7353e5f9d72468e484b083ccd2b4840ed2b7f125 (diff) | |
download | binutils-96e9e6150f1ce39954dd1639515f83609c095096.zip binutils-96e9e6150f1ce39954dd1639515f83609c095096.tar.gz binutils-96e9e6150f1ce39954dd1639515f83609c095096.tar.bz2 |
GDB: aarch64-linux: Support unwinding the GCSPR
The GCSPR is almost always updated implicitly by the hardware, so the
compiler doesn't generate DWARF unwind information for it. Therefore add
an unwinding function that calculates the value of the GCSPR in the
previous frame based on its value in this frame. Some sanity checking is
done by confirming that the calculated value is within a Guarded Control
Stack memory area.
This function is the same as amd64_linux_dwarf2_prev_ssp, written by
Christina Schimpe to unwind Intel's SSP register.
The gdb.arch/aarch64-gcs-return.exp testcase is lightly adapted from
gdb.arch/amd64-shadow-stack-cmds.exp.
Reviewed-By: Christina Schimpe <christina.schimpe@intel.com>
Approved-By: Luis Machado <luis.machado@arm.com>
Diffstat (limited to 'zlib')
0 files changed, 0 insertions, 0 deletions