gdb/arm: Fix obvious typo in b0b23e06c3a
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Tue, 22 Nov 2022 17:06:33 +0000 (18:06 +0100)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Tue, 22 Nov 2022 18:17:27 +0000 (19:17 +0100)
As part of the rebase of the patch, I managed to loose the local
changes I had for the comments from Tomas in
https://sourceware.org/pipermail/gdb-patches/2022-November/193413.html
This patch corrects the obvious two typos.

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

index f748df83e569e7cbace91e7b7d13ed46a95ed51a..a839f9574405f39a3fbc8099cee591a5b451878c 100644 (file)
@@ -401,9 +401,9 @@ arm_cache_init (struct arm_prologue_cache *cache, frame_info_ptr frame)
   else if (tdep->is_m)
     {
       cache->msp_s
-       = get_frame_register_unsigned (frame, tdep->m_profile_msp_s_regnum);
+       = get_frame_register_unsigned (frame, tdep->m_profile_msp_regnum);
       cache->psp_s
-       = get_frame_register_unsigned (frame, tdep->m_profile_psp_s_regnum);
+       = get_frame_register_unsigned (frame, tdep->m_profile_psp_regnum);
 
       /* Identify what sp is alias for (msp or psp).  */
       if (cache->msp_s == cache->sp)