some cleanup checker fixes
authorTom Tromey <tromey@redhat.com>
Thu, 30 May 2013 16:24:36 +0000 (16:24 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 30 May 2013 16:24:36 +0000 (16:24 +0000)
commit5b3fca71ae2013ecb997f9d71c3fc7dfdf69936d
tree18f8aa52e4b42f2ea624240679e698f6aef8d181
parentaf83e3f886c6e098f997d6f03dcf5e807a14a4f2
some cleanup checker fixes

Fix some bugs pointed out by the cleanup checker.  This one just fixes
some simple CLI reports, where CLI commands know that their caller
will do cleanups.  This an older style with few instances, so it is
simpler to fix them up than to teach the checker about it.

* cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
* cli/cli-dump.c (restore_binary_file): Call do_cleanups.
* interps.c (interpreter_exec_cmd): Call do_cleanups.
* source.c (show_substitute_path_command): Call do_cleanups.
(unset_substitute_path_command, set_substitute_path_command):
Likewise.
* symfile.c (load_command): Call do_cleanups.
gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/cli/cli-dump.c
gdb/interps.c
gdb/source.c
gdb/symfile.c