mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 21:34:46 +08:00
2009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
* python/python-value.c (valpy_getitem): Remove incorrect assert.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||||
|
|
||||||
|
* python/python-value.c (valpy_getitem): Remove incorrect assert.
|
||||||
|
|
||||||
2009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
|
2009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||||
|
|
||||||
* python/python-value.c (valpy_getitem): Don't return from TRY_CATCH.
|
* python/python-value.c (valpy_getitem): Don't return from TRY_CATCH.
|
||||||
|
@ -294,17 +294,10 @@ valpy_getitem (PyObject *self, PyObject *key)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res_val == NULL)
|
xfree (field);
|
||||||
{
|
|
||||||
gdb_assert (field == NULL);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (field)
|
|
||||||
xfree (field);
|
|
||||||
GDB_PY_HANDLE_EXCEPTION (except);
|
GDB_PY_HANDLE_EXCEPTION (except);
|
||||||
|
|
||||||
return value_to_value_object (res_val);
|
return res_val ? value_to_value_object (res_val) : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Reference in New Issue
Block a user