aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-04-07 03:42:55 +0000
committerDoug Evans <dje@google.com>2010-04-07 03:42:55 +0000
commit96e398662d34c0e443e76800974d81cfb3ead3f4 (patch)
treed39b5683fd218ee3b4e1a5ffab988e0f3bc8f92e /gdb/cli
parent6f8bcf84a1bc7412dfee32328b370b6c4599a103 (diff)
downloadfsf-binutils-gdb-96e398662d34c0e443e76800974d81cfb3ead3f4.zip
fsf-binutils-gdb-96e398662d34c0e443e76800974d81cfb3ead3f4.tar.gz
fsf-binutils-gdb-96e398662d34c0e443e76800974d81cfb3ead3f4.tar.bz2
* cli/cli-cmds.c (source_command): Run cleanups.
testsuite/ * gdb.base/source-test.gdb: New file. * gdb.base/source.exp: Test source -v.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-cmds.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index bc79258..ae0be7a 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -599,6 +599,8 @@ source_command (char *args, int from_tty)
}
source_script (file, from_tty);
+
+ do_cleanups (old_cleanups);
}