cannot figure it out by itself.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12775
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*/ );
}
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 );
}
// 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