* eval.c (evaluate_subexp_for_address): Provide frame address to
locate_var_value only if it will be needed.
This commit is contained in:
parent
f2a9c676b7
commit
ceef53c1cb
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -2150,11 +2150,13 @@ evaluate_subexp_for_address (struct expression *exp, int *pos,
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue