diff options
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r-- | gdb/findvar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c index 5fc3685..94140d6 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -738,7 +738,7 @@ locate_var_value (struct symbol *var, struct frame_info *frame) if (lazy_value == 0) error ("Address of \"%s\" is unknown.", SYMBOL_PRINT_NAME (var)); - if (VALUE_LAZY (lazy_value) + if (value_lazy (lazy_value) || TYPE_CODE (type) == TYPE_CODE_FUNC) { struct value *val; |