From 8afd712c6f6c36b80754178aae94d74aa48ffcd5 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 8 Sep 2011 15:26:08 +0000 Subject: 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. --- gdb/python/py-frame.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'gdb/python/py-frame.c') diff --git a/gdb/python/py-frame.c b/gdb/python/py-frame.c index 7efd13f..9143367 100644 --- a/gdb/python/py-frame.c +++ b/gdb/python/py-frame.c @@ -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); } -- cgit v1.1