diff options
Diffstat (limited to 'gdb/python/py-value.c')
-rw-r--r-- | gdb/python/py-value.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index d547ed1..75ee0de 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -712,11 +712,8 @@ valpy_nonzero (PyObject *self) TYPE_LENGTH (type), gdbarch_byte_order (get_type_arch (type))); else - { - PyErr_SetString (PyExc_TypeError, _("Attempted truth testing on invalid " - "gdb.Value type.")); - return 0; - } + /* All other values are True. */ + return 1; } /* Implements ~ for value objects. */ |