2009-07-07 Paul Pluzhnikov <ppluzhnikov@google.com>
* python/python-value.c (valpy_getitem): Remove incorrect assert.
This commit is contained in:
parent
570e2b1a04
commit
06878dd230
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user