gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 24 Jan 2012 20:56:33 +0000 (20:56 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 24 Jan 2012 20:56:33 +0000 (20:56 +0000)
commit86eb7e951a825be0c81726558621161edf6858e9
treebfdd8d38414ca26bb3fd4eec5126d74ef98a968d
parent30b91c90791df291e824964776a8c9c89d66d4bc
gdb/
Code cleanup.
* cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
Update the function comment for it.
(source_script_with_search): Call make_cleanup_fclose for STREAM.
* cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
for STREAM.
gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/cli/cli-script.c