aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-09-08 15:26:08 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-09-08 15:26:08 +0000
commit8afd712c6f6c36b80754178aae94d74aa48ffcd5 (patch)
tree6aa7a9f983fca3aa6f1a69b888da0ab5314e2c20 /gdb/valops.c
parentb99b5f66e1d6f80624e8a28b8ebbf9235d50041e (diff)
downloadgdb-8afd712c6f6c36b80754178aae94d74aa48ffcd5.zip
gdb-8afd712c6f6c36b80754178aae94d74aa48ffcd5.tar.gz
gdb-8afd712c6f6c36b80754178aae94d74aa48ffcd5.tar.bz2
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.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 25e0fc3..32d71cd 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 *