fix py-prettyprint.c
authorTom Tromey <tromey@redhat.com>
Thu, 30 May 2013 17:17:25 +0000 (17:17 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 30 May 2013 17:17:25 +0000 (17:17 +0000)
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/ChangeLog
gdb/python/py-prettyprint.c

index d5a5452ce2ac10ccd821de588a845c815dbd1c35..08f247c1fb94be49da07b47e8f93f92ce8aee11f 100644 (file)
@@ -1,3 +1,8 @@
+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
index 8fa2f425f786738ffff9c4ffbbb2041621648816..47e9826276fc5ac492ec0286537c31aa5d820435 100644 (file)
@@ -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))
        {