binutils-gdb/gdb/features/arm/arm-secext.xml
Christophe Lyon ae7e2f45aa gdb/arm: Add support for multiple stack pointers on Cortex-M
Armv8-M architecture with Security extension features four stack pointers
to handle Secure and Non-secure modes.

This patch adds support to switch between them as needed during
unwinding, and replaces all updates of cache->prev_sp with calls to
arm_cache_set_prev_sp.

Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
Signed-off-by: Christophe Lyon <christophe.lyon@foss.st.com>
Signed-off-by: Christophe Lyon <christophe.lyon@arm.com>
2022-04-27 15:18:18 +01:00

16 lines
639 B
XML

<?xml version="1.0"?>
<!-- Copyright (C) 2022 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. -->
<!DOCTYPE feature SYSTEM "gdb-target.dtd">
<feature name="org.gnu.gdb.arm.secext">
<!-- We have 4 stack pointers with the security extension. -->
<reg name="msp_ns" bitsize="32" type="data_ptr"/>
<reg name="psp_ns" bitsize="32" type="data_ptr"/>
<reg name="msp_s" bitsize="32" type="data_ptr"/>
<reg name="psp_s" bitsize="32" type="data_ptr"/>
</feature>