|
From: <sv...@va...> - 2012-07-26 02:17:55
|
florian 2012-07-26 03:14:28 +0100 (Thu, 26 Jul 2012)
New Revision: 12786
Log:
Apply first_ip_delta also when only one frame is requested
for the back-trace.
Modified files:
trunk/coregrind/m_execontext.c
Modified: trunk/coregrind/m_execontext.c (+1 -1)
===================================================================
--- trunk/coregrind/m_execontext.c 2012-07-26 03:03:16 +01:00 (rev 12785)
+++ trunk/coregrind/m_execontext.c 2012-07-26 03:14:28 +01:00 (rev 12786)
@@ -309,7 +309,7 @@
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*/,
|