Enhance slightly the x86 debug trace unwind code

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14028
This commit is contained in:
Philippe Waroquiers 2014-06-14 10:04:51 +00:00
parent 5caf0bf724
commit 8ab2c85c16

View File

@ -262,8 +262,10 @@ UInt VG_(get_StackTrace_wrk) ( ThreadId tid_if_known,
UWord hash = uregs.xip % N_FP_CF_VERIF;
Addr xip_verif = uregs.xip ^ fp_CF_verif_cache [hash];
if (debug)
VG_(printf)(" uregs.xip 0x%08lx xip_verif[0x%08lx]\n",
uregs.xip, xip_verif);
VG_(printf)(" uregs.xip 0x%08lx xip_verif[0x%08lx]"
" xbp 0x%08lx xsp 0x%08lx\n",
uregs.xip, xip_verif,
uregs.xbp, uregs.xsp);
// If xip is in cache, then xip_verif will be <= CFUNWIND.
// Otherwise, if not in cache, xip_verif will be > CFUNWIND.