]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips: fix build failure introduced with "Bug 79362 - Debug info ..."
authorPetar Jovanovic <mips32r2@gmail.com>
Fri, 12 Jan 2018 17:15:36 +0000 (18:15 +0100)
committerPetar Jovanovic <mips32r2@gmail.com>
Fri, 12 Jan 2018 17:20:36 +0000 (18:20 +0100)
Previous commit (cceed053ce876560b9a7512125dd93c7fa059778) broke the build
for MIPS architecture.
Update the code in VG_(get_StackTrace_wrk) to reflect the changes made in
the previous commit.

coregrind/m_stacktrace.c

index a0f9a9bda4cf5b830a574146b812977780fbca77..949512e778194ca11426896abe1e8fb80bb23069 100644 (file)
@@ -1393,7 +1393,8 @@ UInt VG_(get_StackTrace_wrk) ( ThreadId tid_if_known,
       int seen_sp_adjust = 0;
       long frame_offset = 0;
       PtrdiffT offset;
-      if (VG_(get_inst_offset_in_function)(uregs.pc, &offset)) {
+      const DiEpoch cur_ep = VG_(current_DiEpoch)();
+      if (VG_(get_inst_offset_in_function)(cur_ep, uregs.pc, &offset)) {
          Addr start_pc = uregs.pc - offset;
          Addr limit_pc = uregs.pc;
          Addr cur_pc;