|
From: <sv...@va...> - 2012-07-23 15:40:47
|
florian 2012-07-23 16:40:41 +0100 (Mon, 23 Jul 2012)
New Revision: 12775
Log:
Pass first_ip_delta to VG_(record_depth_1_ExeContext) as the function
cannot figure it out by itself.
Modified files:
trunk/coregrind/m_execontext.c
trunk/coregrind/m_signals.c
trunk/include/pub_tool_execontext.h
Modified: trunk/coregrind/m_execontext.c (+3 -2)
===================================================================
--- trunk/coregrind/m_execontext.c 2012-07-23 16:05:22 +01:00 (rev 12774)
+++ trunk/coregrind/m_execontext.c 2012-07-23 16:40:41 +01:00 (rev 12775)
@@ -428,8 +428,9 @@
False/*!first_ip_only*/ );
}
-ExeContext* VG_(record_depth_1_ExeContext)( ThreadId tid ) {
- return record_ExeContext_wrk( tid, 0/*first_ip_delta*/,
+ExeContext* VG_(record_depth_1_ExeContext)( ThreadId tid, Word first_ip_delta )
+{
+ return record_ExeContext_wrk( tid, first_ip_delta,
True/*first_ip_only*/ );
}
Modified: trunk/coregrind/m_signals.c (+2 -1)
===================================================================
--- trunk/coregrind/m_signals.c 2012-07-23 16:05:22 +01:00 (rev 12774)
+++ trunk/coregrind/m_signals.c 2012-07-23 16:40:41 +01:00 (rev 12775)
@@ -1661,7 +1661,8 @@
ExeContext* ec = VG_(am_is_valid_for_client)
(VG_(get_SP)(tid), sizeof(Addr), VKI_PROT_READ)
? VG_(record_ExeContext)( tid, 0/*first_ip_delta*/ )
- : VG_(record_depth_1_ExeContext)( tid );
+ : VG_(record_depth_1_ExeContext)( tid,
+ 0/*first_ip_delta*/ );
vg_assert(ec);
VG_(pp_ExeContext)( ec );
}
Modified: trunk/include/pub_tool_execontext.h (+1 -1)
===================================================================
--- trunk/include/pub_tool_execontext.h 2012-07-23 16:05:22 +01:00 (rev 12774)
+++ trunk/include/pub_tool_execontext.h 2012-07-23 16:40:41 +01:00 (rev 12775)
@@ -67,7 +67,7 @@
// might cause a segfault. In this case we can at least safely
// produce a one-element stack trace, which is better than nothing.
extern
-ExeContext* VG_(record_depth_1_ExeContext)( ThreadId tid );
+ExeContext* VG_(record_depth_1_ExeContext)(ThreadId tid, Word first_ip_delta);
// Apply a function to every element in the ExeContext. The parameter 'n'
// gives the index of the passed ip. Doesn't go below main() unless
|