gdb/arm: Simplify logic for updating addresses
authorYvan Roux <yvan.roux@foss.st.com>
Thu, 9 Jun 2022 14:34:53 +0000 (16:34 +0200)
committerYvan Roux <yvan.roux@foss.st.com>
Thu, 9 Jun 2022 14:39:27 +0000 (16:39 +0200)
commit1ef3351b7b11e3d3bcdccdbc1bf2690ce35a70ba
tree7854f1cdd85112b6c547bcd499a58558e54d7fa5
parent8db775b211bb01d06197bf6dabb6b32b5428d5e2
gdb/arm: Simplify logic for updating addresses

Small performance improvement by fetching previous SP value only
once before the loop and reuse it to avoid fetching at every
iteration.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
Signed-off-by: Yvan Roux <yvan.roux@foss.st.com>
gdb/arm-tdep.c