2009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>

* python/python-value.c (valpy_getitem): Remove incorrect assert.
This commit is contained in:
Paul Pluzhnikov 2009-07-07 21:03:00 +00:00
parent 570e2b1a04
commit 06878dd230
2 changed files with 6 additions and 9 deletions

View File

@ -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>
* python/python-value.c (valpy_getitem): Don't return from TRY_CATCH.

View File

@ -294,17 +294,10 @@ valpy_getitem (PyObject *self, PyObject *key)
}
}
if (res_val == NULL)
{
gdb_assert (field == NULL);
return NULL;
}
if (field)
xfree (field);
xfree (field);
GDB_PY_HANDLE_EXCEPTION (except);
return value_to_value_object (res_val);
return res_val ? value_to_value_object (res_val) : NULL;
}
static int