mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-28 22:21:26 +08:00
* python/python-value.c (valpy_richcompare): Don't return from
inside a TRY_CATCH.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2009-08-24 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* python/python-value.c (valpy_richcompare): Don't return from
|
||||||
|
inside a TRY_CATCH.
|
||||||
|
|
||||||
2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||||
|
|
||||||
* CONTRIBUTE: Bump documented Autoconf version.
|
* CONTRIBUTE: Bump documented Autoconf version.
|
||||||
|
@ -693,7 +693,10 @@ valpy_richcompare (PyObject *self, PyObject *other, int op)
|
|||||||
{
|
{
|
||||||
value_other = convert_value_from_python (other);
|
value_other = convert_value_from_python (other);
|
||||||
if (value_other == NULL)
|
if (value_other == NULL)
|
||||||
return NULL;
|
{
|
||||||
|
result = -1;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
switch (op) {
|
switch (op) {
|
||||||
case Py_LT:
|
case Py_LT:
|
||||||
@ -720,11 +723,16 @@ valpy_richcompare (PyObject *self, PyObject *other, int op)
|
|||||||
/* Can't happen. */
|
/* Can't happen. */
|
||||||
PyErr_SetString (PyExc_NotImplementedError,
|
PyErr_SetString (PyExc_NotImplementedError,
|
||||||
"Invalid operation on gdb.Value.");
|
"Invalid operation on gdb.Value.");
|
||||||
return NULL;
|
result = -1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
GDB_PY_HANDLE_EXCEPTION (except);
|
GDB_PY_HANDLE_EXCEPTION (except);
|
||||||
|
|
||||||
|
/* In this case, the Python exception has already been set. */
|
||||||
|
if (result < 0)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
if (result == 1)
|
if (result == 1)
|
||||||
Py_RETURN_TRUE;
|
Py_RETURN_TRUE;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user