]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
DW_CFA_def_cfa_expression: don't push the CFA on the stack before
authorJulian Seward <jseward@acm.org>
Thu, 30 Apr 2015 11:45:13 +0000 (11:45 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 30 Apr 2015 11:45:13 +0000 (11:45 +0000)
evaluation starts.  For DW_CFA_val_expression and DW_CFA_expression
doing so is correct, but not for DW_CFA_def_cfa_expression.

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

coregrind/m_debuginfo/readdwarf.c

index a038a52dbbcf011b79466ccff4dc04288800eb5c..4a0f75019c11770fbab7eca47e9952efdde3bee0 100644 (file)
@@ -3311,7 +3311,7 @@ static Int run_CF_instruction ( /*MOD*/UnwindContext* ctx,
             VG_(printf)("  DW_CFA_def_cfa_expression (");
          /* Convert the expression into a dag rooted at ctx->exprs index j,
             or fail. */
-         j = dwarfexpr_to_dag ( ctx, expr, len, True/*push CFA at start*/, 
+         j = dwarfexpr_to_dag ( ctx, expr, len, False/*!push CFA at start*/, 
                                 di->ddump_frames);
          if (di->ddump_frames)
             VG_(printf)(")\n");