[pushed] gdb/arm: Fix obvious typo in b0b23e06c3a

Message ID 20221122181935.3482797-1-torbjorn.svensson@foss.st.com
State Committed
Commit f3f7ecc942f3844559142b933aa40b5ef75e3d5e
Headers
Series [pushed] gdb/arm: Fix obvious typo in b0b23e06c3a |

Commit Message

Torbjorn SVENSSON Nov. 22, 2022, 6:19 p.m. UTC
  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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index f748df83e56..a839f957440 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -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)