summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-30 17:17:24 +0000
committerTom Tromey <tromey@redhat.com>2013-05-30 17:17:24 +0000
commitdb1d5ba6b2833a2b4fdd360032e5090e9e575bff (patch)
treea12fcfc31c3801a1d23bf59a140ca932adb82a95
parent69342dcbbf2ae3793102b3e1450d337910a30e97 (diff)
downloadgdb-db1d5ba6b2833a2b4fdd360032e5090e9e575bff.tar.gz
fix py-prettyprint.c
print_children, in py-prettyprint.c, could call do_cleanups twice on the same cleanup. * python/py-prettyprint.c (print_children): Remove extra do_cleanups call.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/python/py-prettyprint.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d5a5452ce2a..08f247c1fb9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2013-05-30 Tom Tromey <tromey@redhat.com>
+ * python/py-prettyprint.c (print_children): Remove extra
+ do_cleanups call.
+
+2013-05-30 Tom Tromey <tromey@redhat.com>
+
* python/py-frame.c (frapy_read_var): Call do_cleanups along
all return paths.
diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c
index 8fa2f425f78..47e9826276f 100644
--- a/gdb/python/py-prettyprint.c
+++ b/gdb/python/py-prettyprint.c
@@ -630,8 +630,6 @@ print_children (PyObject *printer, const char *hint,
local_opts.addressprint = 0;
val_print_string (type, encoding, addr, (int) length, stream,
&local_opts);
-
- do_cleanups (inner_cleanup);
}
else if (gdbpy_is_string (py_v))
{