gdb/arm: Introduce arm_cache_init
authorChristophe Lyon <christophe.lyon@arm.com>
Fri, 1 Apr 2022 09:22:12 +0000 (10:22 +0100)
committerChristophe Lyon <christophe.lyon@arm.com>
Wed, 27 Apr 2022 14:18:18 +0000 (15:18 +0100)
commit0824193fd31467b6ff39132d0d72aaa9c01cc9aa
treebceb91118543082cb157b8d265499be8c43a8119
parent9074667a8583b33ff1b9590232c15e67f2d1d607
gdb/arm: Introduce arm_cache_init

This patch is a preparation for the rest of the series and adds two
arm_cache_init helper functions. It updates every place that updates
cache->saved_regs to call the helper instead.

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>
gdb/arm-tdep.c