]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
arm: fix build failure introduced with "Bug 79362 - Debug info ...".
authorJulian Seward <jseward@acm.org>
Mon, 29 Jan 2018 11:58:33 +0000 (12:58 +0100)
committerJulian Seward <jseward@acm.org>
Mon, 29 Jan 2018 11:58:33 +0000 (12:58 +0100)
coregrind/m_stacktrace.c

index 949512e778194ca11426896abe1e8fb80bb23069..24f1409ddb819ea8258bf57b5c31c6c49e66ffe0 100644 (file)
@@ -915,10 +915,11 @@ static Bool in_same_fn ( Addr a1, Addr a2 )
    const HChar *buf_a1, *buf_a2;
    /* The following conditional looks grossly inefficient and
       surely could be majorly improved, with not much effort. */
-   if (VG_(get_fnname_raw) (a1, &buf_a1)) {
+   const DiEpoch cur_ep = VG_(current_DiEpoch)();
+   if (VG_(get_fnname_raw) (cur_ep, a1, &buf_a1)) {
       HChar buf_a1_copy[VG_(strlen)(buf_a1) + 1];
       VG_(strcpy)(buf_a1_copy, buf_a1);
-      if (VG_(get_fnname_raw) (a2, &buf_a2))
+      if (VG_(get_fnname_raw) (cur_ep, a2, &buf_a2))
          if (VG_(strcmp)(buf_a1_copy, buf_a2))
             return True;
    }