aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-frame.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-17 16:52:34 +0000
committerTom Tromey <tromey@redhat.com>2013-05-17 16:52:34 +0000
commit6cbc7c3d3433bf5c6288cbad2ba224919ff4922c (patch)
tree68108b33524d7d973da57e7b71d24326a285f697 /gdb/python/py-frame.c
parenta48b32c06849c3e91e92cb5261e135a55cd584c4 (diff)
downloadgdb-6cbc7c3d3433bf5c6288cbad2ba224919ff4922c.zip
gdb-6cbc7c3d3433bf5c6288cbad2ba224919ff4922c.tar.gz
gdb-6cbc7c3d3433bf5c6288cbad2ba224919ff4922c.tar.bz2
* 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.
Diffstat (limited to 'gdb/python/py-frame.c')
-rw-r--r--gdb/python/py-frame.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/python/py-frame.c b/gdb/python/py-frame.c
index e2eb9c5..9342f45 100644
--- a/gdb/python/py-frame.c
+++ b/gdb/python/py-frame.c
@@ -304,11 +304,7 @@ frame_info_to_frame_object (struct frame_info *frame)
frame_obj = PyObject_New (frame_object, &frame_object_type);
if (frame_obj == NULL)
- {
- PyErr_SetString (PyExc_MemoryError,
- _("Could not allocate frame object."));
- return NULL;
- }
+ return NULL;
TRY_CATCH (except, RETURN_MASK_ALL)
{