aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
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/python
parentb99b5f66e1d6f80624e8a28b8ebbf9235d50041e (diff)
downloadfsf-binutils-gdb-8afd712c6f6c36b80754178aae94d74aa48ffcd5.zip
fsf-binutils-gdb-8afd712c6f6c36b80754178aae94d74aa48ffcd5.tar.gz
fsf-binutils-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/python')
-rw-r--r--gdb/python/py-frame.c8
1 files changed, 0 insertions, 8 deletions
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);
}