* top.c (quit_target): Use all_cleanups.
authorTom Tromey <tromey@redhat.com>
Thu, 19 Apr 2012 20:18:26 +0000 (20:18 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 19 Apr 2012 20:18:26 +0000 (20:18 +0000)
* main.c (captured_command_loop): Use all_cleanups.
* exceptions.c (throw_exception): Use all_cleanups.

gdb/ChangeLog
gdb/exceptions.c
gdb/main.c
gdb/top.c

index 73ae3b4d3df5d31d156138ff09437903d489c5e3..521940c8b71b0131ac302cdc3af8ef576f786141 100644 (file)
@@ -1,3 +1,9 @@
+2012-04-19  Tom Tromey  <tromey@redhat.com>
+
+       * top.c (quit_target): Use all_cleanups.
+       * main.c (captured_command_loop): Use all_cleanups.
+       * exceptions.c (throw_exception): Use all_cleanups.
+
 2012-04-19  Pedro Alves  <palves@redhat.com>
 
        * Makefile.in (GNULIB_BUILDDIR): New.
index 0dcad71d20b78d954ea4e9c47a0bdba3c12b0e34..7db9df9eb805662f3c342bac53d0de56f5984f3a 100644 (file)
@@ -224,7 +224,7 @@ throw_exception (struct gdb_exception exception)
   quit_flag = 0;
   immediate_quit = 0;
 
-  do_cleanups (ALL_CLEANUPS);
+  do_cleanups (all_cleanups ());
 
   /* Jump to the containing catch_errors() call, communicating REASON
      to that call via setjmp's return value.  Note that REASON can't
index fe41551d947df052f29743b38f6478c2102eb364..3148d72da293a2b9542bab2bd2ce8d4bd140260d 100644 (file)
@@ -231,7 +231,7 @@ captured_command_loop (void *data)
      are not that well behaved.  do_cleanups should either be replaced
      with a do_cleanups call (to cover the problem) or an assertion
      check to detect bad FUNCs code.  */
-  do_cleanups (ALL_CLEANUPS);
+  do_cleanups (all_cleanups ());
   /* If the command_loop returned, normally (rather than threw an
      error) we try to quit.  If the quit is aborted, catch_errors()
      which called this catch the signal and restart the command
index 55e4504009ae6ff7cae7661c83a9a48ca1fa78d5..a138480e5e43d10a4e3df463601dab087fe40f6d 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1297,8 +1297,8 @@ quit_target (void *arg)
   if (write_history_p && history_filename)
     write_history (history_filename);
 
-  do_final_cleanups (ALL_CLEANUPS);    /* Do any final cleanups before
-                                         exiting.  */
+  do_final_cleanups (all_cleanups ());    /* Do any final cleanups before
+                                            exiting.  */
   return 0;
 }