]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Pass first_ip_delta to VG_(record_depth_1_ExeContext) as the function
authorFlorian Krohm <florian@eich-krohm.de>
Mon, 23 Jul 2012 15:40:41 +0000 (15:40 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Mon, 23 Jul 2012 15:40:41 +0000 (15:40 +0000)
cannot figure it out by itself.

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

coregrind/m_execontext.c
coregrind/m_signals.c
include/pub_tool_execontext.h

index ec015131766a1ac5c1cdb24df889fd000dcec6b6..ebacc272e732332b393cb3dda2f75dddee51e715 100644 (file)
@@ -428,8 +428,9 @@ ExeContext* VG_(record_ExeContext)( ThreadId tid, Word first_ip_delta ) {
                                       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*/ );
 }
 
index 44774beb2d7b53171581ed945d002841307b74b8..700e1c90f82b94dd9c9f9f074c0448f71af956ef 100644 (file)
@@ -1661,7 +1661,8 @@ static void default_action(const vki_siginfo_t *info, ThreadId tid)
          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 );
       }
index 13df96306c56d2a15db862319c78ed230aeb0a2a..fdbf2c0cd1d897da9eb66aed13f8edbbc3283498 100644 (file)
@@ -67,7 +67,7 @@ ExeContext* VG_(record_ExeContext) ( ThreadId tid, Word first_ip_delta );
 // 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