]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/libunwind-frame.c
2007-06-18 Markus Deuling <deuling@de.ibm.com>
[thirdparty/binutils-gdb.git] / gdb / libunwind-frame.c
index ebf7eb21521859a3a789b3c4a88e78dafda0c660..4324c3e4456cf441b24f196c087c10c97bbdc631 100644 (file)
@@ -179,7 +179,7 @@ libunwind_frame_cache (struct frame_info *next_frame, void **this_cache)
     }
 
   /* To get base address, get sp from previous frame.  */
-  uw_sp_regnum = descr->gdb2uw (SP_REGNUM);
+  uw_sp_regnum = descr->gdb2uw (gdbarch_sp_regnum (current_gdbarch));
   ret = unw_get_reg_p (&cache->cursor, uw_sp_regnum, &fp);
   if (ret < 0)
     {