mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-24 18:57:01 +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:
@ -467,14 +467,6 @@ frapy_read_var (PyObject *self, PyObject *args)
|
||||
}
|
||||
GDB_PY_HANDLE_EXCEPTION (except);
|
||||
|
||||
if (!val)
|
||||
{
|
||||
PyErr_Format (PyExc_ValueError,
|
||||
_("Variable cannot be found for symbol '%s'."),
|
||||
SYMBOL_NATURAL_NAME (var));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return value_to_value_object (val);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user