From: Petar Jovanovic Date: Fri, 12 Jan 2018 17:15:36 +0000 (+0100) Subject: mips: fix build failure introduced with "Bug 79362 - Debug info ..." X-Git-Tag: VALGRIND_3_14_0~182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91cb209442587e0792c609b6befe60f499009200;p=thirdparty%2Fvalgrind.git mips: fix build failure introduced with "Bug 79362 - Debug info ..." 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. --- diff --git a/coregrind/m_stacktrace.c b/coregrind/m_stacktrace.c index a0f9a9bda4..949512e778 100644 --- a/coregrind/m_stacktrace.c +++ b/coregrind/m_stacktrace.c @@ -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;