Skip to content

Commit bf11884

Browse files
author
philippe
committed
unwind amd64 trace: improve also the fp chain unwind trace
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15301 a5019735-40e9-0310-863c-91ae7b9d1cf9
1 parent c1c982c commit bf11884

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coregrind/m_stacktrace.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,8 @@ UInt VG_(get_StackTrace_wrk) ( ThreadId tid_if_known,
601601
if (fps) fps[i] = uregs.xbp;
602602
ips[i++] = uregs.xip - 1; /* -1: refer to calling insn, not the RA */
603603
if (debug)
604-
VG_(printf)(" ipsF[%d]=%#08lx\n", i-1, ips[i-1]);
604+
VG_(printf)(" ipsF[%d]=%#08lx rbp %#08lx rsp %#08lx\n",
605+
i-1, ips[i-1], uregs.xbp, uregs.xsp);
605606
uregs.xip = uregs.xip - 1; /* as per comment at the head of this loop */
606607
if (UNLIKELY(cmrf > 0)) {RECURSIVE_MERGE(cmrf,ips,i);};
607608
continue;

0 commit comments

Comments
 (0)