From: Florian Krohm Date: Thu, 26 Jul 2012 02:14:28 +0000 (+0000) Subject: Apply first_ip_delta also when only one frame is requested X-Git-Tag: svn/VALGRIND_3_8_0~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=203ba59aaa75ce745239038dd3e0971096bc4585;p=thirdparty%2Fvalgrind.git Apply first_ip_delta also when only one frame is requested for the back-trace. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12786 --- diff --git a/coregrind/m_execontext.c b/coregrind/m_execontext.c index ebacc272e7..634675febb 100644 --- a/coregrind/m_execontext.c +++ b/coregrind/m_execontext.c @@ -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*/,