diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-09-08 15:26:07 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-09-08 15:26:07 +0000 |
commit | 81554f3fd59ad04ac0b3fa3295a7e35ac11fe6f4 (patch) | |
tree | cb7ff355547ab36c3cc40b8f313ff04602ee8169 /gdb/valops.c | |
parent | 3d0a5ee6551a1f2036a574f7802c1abc47eada41 (diff) | |
download | gdb-81554f3fd59ad04ac0b3fa3295a7e35ac11fe6f4.tar.gz |
gdb/
* findvar.c (read_var_value): Never return NULL, throw an error
instead. Update the function comment. State symbol name in the error
messages.
* python/py-frame.c (frapy_read_var): Remove handling of NULL from
read_var_value.
* stack.c (print_frame_args): Likewise.
* valops.c (value_of_variable): Likewise.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index 25e0fc3c25f..32d71cdf86f 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1488,7 +1488,6 @@ value_repeat (struct value *arg1, int count) struct value * value_of_variable (struct symbol *var, struct block *b) { - struct value *val; struct frame_info *frame; if (!symbol_read_needs_frame (var)) @@ -1509,11 +1508,7 @@ value_of_variable (struct symbol *var, struct block *b) } } - val = read_var_value (var, frame); - if (!val) - error (_("Address of symbol \"%s\" is unknown."), SYMBOL_PRINT_NAME (var)); - - return val; + return read_var_value (var, frame); } struct value * |