From: Julian Seward Date: Wed, 11 Feb 2015 00:49:45 +0000 (+0000) Subject: arm32-linux: GET_STARTREGS has always been wrong on this target, X-Git-Tag: svn/VALGRIND_3_11_0~664 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1fe042b6eb3e47e669b252f0c9788768817486e6;p=thirdparty%2Fvalgrind.git arm32-linux: GET_STARTREGS has always been wrong on this target, confusing SP and LR and resulting in no backtraces during internal assertion failures etc on this platform. Fixes #343219. Noticed by dimitry@google.com. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14928 --- diff --git a/coregrind/m_libcassert.c b/coregrind/m_libcassert.c index d8fe923163..38a5a5f021 100644 --- a/coregrind/m_libcassert.c +++ b/coregrind/m_libcassert.c @@ -134,8 +134,8 @@ : /* trash */ "memory" \ ); \ (srP)->r_pc = block[0] - 8; \ - (srP)->r_sp = block[1]; \ - (srP)->misc.ARM.r14 = block[2]; \ + (srP)->misc.ARM.r14 = block[1]; \ + (srP)->r_sp = block[2]; \ (srP)->misc.ARM.r12 = block[3]; \ (srP)->misc.ARM.r11 = block[4]; \ (srP)->misc.ARM.r7 = block[5]; \