This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 20/40] fix py-prettyprint.c
- From: Tom Tromey <tromey at redhat dot com>
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 09 May 2013 12:51:42 -0600
- Subject: [PATCH 20/40] fix py-prettyprint.c
- References: <cover dot 1368124285 dot git dot tromey at redhat dot com>
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.
---
gdb/python/py-prettyprint.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c
index b50e757..bdb1ac5 100644
--- a/gdb/python/py-prettyprint.c
+++ b/gdb/python/py-prettyprint.c
@@ -629,8 +629,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))
{
--
1.8.1.4