PR python/11391:
* python/py-value.c (valpy_nonzero): Don't throw error for other Value types.
This commit is contained in:
parent
d839c8a4e8
commit
96f73ba54f
2 changed files with 8 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2010-08-23 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
PR python/11391:
|
||||||
|
* python/py-value.c (valpy_nonzero): Don't throw error for other
|
||||||
|
Value types.
|
||||||
|
|
||||||
2010-08-23 Tom Tromey <tromey@redhat.com>
|
2010-08-23 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
PR python/10676:
|
PR python/10676:
|
||||||
|
|
|
@ -712,11 +712,8 @@ valpy_nonzero (PyObject *self)
|
||||||
TYPE_LENGTH (type),
|
TYPE_LENGTH (type),
|
||||||
gdbarch_byte_order (get_type_arch (type)));
|
gdbarch_byte_order (get_type_arch (type)));
|
||||||
else
|
else
|
||||||
{
|
/* All other values are True. */
|
||||||
PyErr_SetString (PyExc_TypeError, _("Attempted truth testing on invalid "
|
return 1;
|
||||||
"gdb.Value type."));
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Implements ~ for value objects. */
|
/* Implements ~ for value objects. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue