OSDN Git Service

* cli/cli-script.c (do_fclose_cleanup): Remove.
authortromey <tromey>
Tue, 28 Oct 2008 15:22:11 +0000 (15:22 +0000)
committertromey <tromey>
Tue, 28 Oct 2008 15:22:11 +0000 (15:22 +0000)
commit0fd9d03ae5fa1a8dbb7a36d75dc0c1fe0b59e2c7
tree7d7c3abdf73ce54c46f55554e5910872330e8d64
parentf5f2b5491c209c40153c492c036ee6aa449602ea
* cli/cli-script.c (do_fclose_cleanup): Remove.
(script_from_file): Use make_cleanup_fclose.
* xml-tdesc.c (do_cleanup_fclose): Remove.
(fetch_xml_from_file): Use make_cleanup_fclose.
* tracepoint.c (tracepoint_save_command): Use
make_cleanup_fclose.  Always free pathname.
* source.c (print_source_lines_base): Use make_cleanup_fclose.
* remote.c (fclose_cleanup): Remove.
(remote_file_put): Use make_cleanup_fclose.
(remote_file_get): Likewise.
* linux-nat.c (linux_nat_find_memory_regions): Use
make_cleanup_fclose.
(linux_nat_info_proc_cmd): Likewise.
(linux_proc_pending_signals): Likewise.
* fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose.
Free file name.
* cli/cli-dump.c (do_fclose_cleanup): Remove.
(make_cleanup_fclose): Remove.
* defs.h (make_cleanup_fclose): Declare.
* utils.c (do_fclose_cleanup): New function.
(make_cleanup_fclose): Likewise.
gdb/ChangeLog
gdb/cli/cli-dump.c
gdb/cli/cli-script.c
gdb/defs.h
gdb/fbsd-nat.c
gdb/linux-nat.c
gdb/remote.c
gdb/source.c
gdb/tracepoint.c
gdb/utils.c
gdb/xml-tdesc.c