From: Julian Seward Date: Sun, 2 Apr 2006 15:53:59 +0000 (+0000) Subject: Fix ppc64-linux breakage - get the function entry address, not the X-Git-Tag: svn/VALGRIND_3_2_0~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74657e1694d940763dbf306b349c4f9e1c825133;p=thirdparty%2Fvalgrind.git Fix ppc64-linux breakage - get the function entry address, not the descriptor address. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5814 --- diff --git a/callgrind/main.c b/callgrind/main.c index bdd406f8d1..7b5dc96550 100644 --- a/callgrind/main.c +++ b/callgrind/main.c @@ -564,7 +564,9 @@ IRBB* CLG_(instrument)( VgCallbackClosure* closure, // helper call to setup_bbcc, with pointer to basic block info struct as argument arg1 = mkIRExpr_HWord( (HWord)bb ); argv = mkIRExprVec_1(arg1); - di = unsafeIRDirty_0_N( 1, "setup_bbcc", & CLG_(setup_bbcc), argv); + di = unsafeIRDirty_0_N( 1, "setup_bbcc", + VG_(fnptr_to_fnentry)( & CLG_(setup_bbcc) ), + argv); addStmtToIRBB( bbOut, IRStmt_Dirty(di) ); instrCount = 0;