locate_var_value only if it will be needed.
+2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
+
+ * eval.c (evaluate_subexp_for_address): Provide frame address to
+ locate_var_value only if it will be needed.
+
2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
* linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
return
value_zero (type, not_lval);
}
- else
+ else if (symbol_read_needs_frame (var))
return
locate_var_value
(var,
block_innermost_frame (exp->elts[pc + 1].block));
+ else
+ return locate_var_value (var, NULL);
case OP_SCOPE:
tem = longest_to_int (exp->elts[pc + 2].longconst);