* python/py-inferior.c (infpy_read_memory): Don't call
PyErr_SetString if PyObject_New fails. * python/py-frame.c (frame_info_to_frame_object): Don't call PyErr_SetString if PyObject_New fails.
This commit is contained in:
parent
a48b32c068
commit
6cbc7c3d34
3 changed files with 8 additions and 7 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2013-05-17 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* python/py-inferior.c (infpy_read_memory): Don't call
|
||||||
|
PyErr_SetString if PyObject_New fails.
|
||||||
|
* python/py-frame.c (frame_info_to_frame_object): Don't call
|
||||||
|
PyErr_SetString if PyObject_New fails.
|
||||||
|
|
||||||
2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
|
2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
|
||||||
|
|
||||||
* acinclude.m4: Add check for dlopen in libdl.
|
* acinclude.m4: Add check for dlopen in libdl.
|
||||||
|
|
|
@ -304,11 +304,7 @@ frame_info_to_frame_object (struct frame_info *frame)
|
||||||
|
|
||||||
frame_obj = PyObject_New (frame_object, &frame_object_type);
|
frame_obj = PyObject_New (frame_object, &frame_object_type);
|
||||||
if (frame_obj == NULL)
|
if (frame_obj == NULL)
|
||||||
{
|
return NULL;
|
||||||
PyErr_SetString (PyExc_MemoryError,
|
|
||||||
_("Could not allocate frame object."));
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
TRY_CATCH (except, RETURN_MASK_ALL)
|
TRY_CATCH (except, RETURN_MASK_ALL)
|
||||||
{
|
{
|
||||||
|
|
|
@ -445,8 +445,6 @@ infpy_read_memory (PyObject *self, PyObject *args, PyObject *kw)
|
||||||
if (membuf_obj == NULL)
|
if (membuf_obj == NULL)
|
||||||
{
|
{
|
||||||
xfree (buffer);
|
xfree (buffer);
|
||||||
PyErr_SetString (PyExc_MemoryError,
|
|
||||||
_("Could not allocate memory buffer object."));
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue