mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-15 03:48:11 +08:00
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.
This commit is contained in:
@ -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 *
|
||||
|
Reference in New Issue
Block a user