summaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-04-19 20:18:22 +0000
committerTom Tromey <tromey@redhat.com>2012-04-19 20:18:22 +0000
commitc908ddeedc25bde779377e3c44dea7bf742048cd (patch)
treec20cd6e3bb4a5294e02bf64bbf12116a810163c4 /gdb/main.c
parent69ad9956a662a535d1aca72dd8825e52fa7918ad (diff)
downloadgdb-c908ddeedc25bde779377e3c44dea7bf742048cd.tar.gz
* top.c (quit_target): Use all_cleanups.
* main.c (captured_command_loop): Use all_cleanups. * exceptions.c (throw_exception): Use all_cleanups.
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/main.c b/gdb/main.c
index fe41551d947..3148d72da29 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