]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Patch 1 in a series of cleanup patches from Will Schmidt
authorCarl Love <cel@us.ibm.com>
Wed, 6 May 2015 19:18:28 +0000 (19:18 +0000)
committerCarl Love <cel@us.ibm.com>
Wed, 6 May 2015 19:18:28 +0000 (19:18 +0000)
Update ifdefs around the bogus-LR-value-handling code to allow ppc64le to
behave as ppc64 (BE) does.

This fixes the overlap test case, where the stack unwinding code was
otherwise coming up with bad instruction pointers.

This patch fixes Vagrind bugzilla 347322.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15183

coregrind/m_stacktrace.c

index c0d4c1185cb8fb4c75f065d1134df3a872a8a986..b2d188629f27bb38f36e891358a7d0af67a4f1b8 100644 (file)
@@ -708,7 +708,7 @@ UInt VG_(get_StackTrace_wrk) ( ThreadId tid_if_known,
    redirs_used      = 0;
 #  endif
 
-#  if defined(VG_PLAT_USES_PPCTOC)
+#  if defined(VG_PLAT_USES_PPCTOC) || defined (VGP_ppc64le_linux)
    /* Deal with bogus LR values caused by function
       interception/wrapping on ppc-TOC platforms; see comment on
       similar code a few lines further down. */