]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Apply first_ip_delta also when only one frame is requested
authorFlorian Krohm <florian@eich-krohm.de>
Thu, 26 Jul 2012 02:14:28 +0000 (02:14 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Thu, 26 Jul 2012 02:14:28 +0000 (02:14 +0000)
for the back-trace.

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

coregrind/m_execontext.c

index ebacc272e732332b393cb3dda2f75dddee51e715..634675febb58b4ce99d9905f1cac550e1b04daf8 100644 (file)
@@ -309,7 +309,7 @@ static ExeContext* record_ExeContext_wrk ( ThreadId tid, Word first_ip_delta,
 
    if (first_ip_only) {
       n_ips = 1;
-      ips[0] = VG_(get_IP)(tid);
+      ips[0] = VG_(get_IP)(tid) + first_ip_delta;
    } else {
       n_ips = VG_(get_StackTrace)( tid, ips, VG_(clo_backtrace_size),
                                    NULL/*array to dump SP values in*/,