From: Tom Tromey Date: Thu, 30 May 2013 17:17:25 +0000 (+0000) Subject: fix py-prettyprint.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54f72dcc36781bdb55aa8347635577219c9230a0;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d5a5452ce2a..08f247c1fb9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-05-30 Tom Tromey + + * python/py-prettyprint.c (print_children): Remove extra + do_cleanups call. + 2013-05-30 Tom Tromey * python/py-frame.c (frapy_read_var): Call do_cleanups along 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)) {