mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-24 10:46:24 +08:00
PR python/11391:
* python/py-value.c (valpy_nonzero): Don't throw error for other Value types.
This commit is contained in:
@ -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. */
|
||||
|
Reference in New Issue
Block a user