This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: all_cleanups fixlet
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 19 Apr 2012 14:17:59 -0600
- Subject: FYI: all_cleanups fixlet
I'm checking this in.
This fixes the build following the ALL_CLEANUPS removal.
Tom
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.
Index: exceptions.c
===================================================================
RCS file: /cvs/src/src/gdb/exceptions.c,v
retrieving revision 1.50
diff -u -r1.50 exceptions.c
--- exceptions.c 4 Jan 2012 08:17:01 -0000 1.50
+++ exceptions.c 19 Apr 2012 20:16:45 -0000
@@ -224,7 +224,7 @@
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: main.c
===================================================================
RCS file: /cvs/src/src/gdb/main.c,v
retrieving revision 1.108
diff -u -r1.108 main.c
--- main.c 17 Apr 2012 15:56:21 -0000 1.108
+++ main.c 19 Apr 2012 20:16:45 -0000
@@ -231,7 +231,7 @@
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: top.c
===================================================================
RCS file: /cvs/src/src/gdb/top.c,v
retrieving revision 1.214
diff -u -r1.214 top.c
--- top.c 1 Mar 2012 19:30:20 -0000 1.214
+++ top.c 19 Apr 2012 20:16:46 -0000
@@ -1297,8 +1297,8 @@
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;
}