From 6328eb3805da75d26e17c13c7be09123d2ce9dc1 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 19 Apr 2012 20:18:26 +0000 Subject: * top.c (quit_target): Use all_cleanups. * main.c (captured_command_loop): Use all_cleanups. * exceptions.c (throw_exception): Use all_cleanups. --- gdb/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/main.c') diff --git a/gdb/main.c b/gdb/main.c index fe41551..3148d72 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -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 -- cgit v1.1