]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
unwind amd64 trace: improve also the fp chain unwind trace
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 31 May 2015 15:26:51 +0000 (15:26 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 31 May 2015 15:26:51 +0000 (15:26 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15301

coregrind/m_stacktrace.c

index 5c7fbe0714a1916bb4c8e393c09a9e1327cfb8ae..d720eb3ecdc37bbbb0289ea87f2c0548fe5ff6f0 100644 (file)
@@ -601,7 +601,8 @@ UInt VG_(get_StackTrace_wrk) ( ThreadId tid_if_known,
          if (fps) fps[i] = uregs.xbp;
          ips[i++] = uregs.xip - 1; /* -1: refer to calling insn, not the RA */
          if (debug)
-            VG_(printf)("     ipsF[%d]=%#08lx\n", i-1, ips[i-1]);
+            VG_(printf)("     ipsF[%d]=%#08lx rbp %#08lx rsp %#08lx\n",
+                        i-1, ips[i-1], uregs.xbp, uregs.xsp);
          uregs.xip = uregs.xip - 1; /* as per comment at the head of this loop */
          if (UNLIKELY(cmrf > 0)) {RECURSIVE_MERGE(cmrf,ips,i);};
          continue;