gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 2 Sep 2010 15:42:03 +0000 (15:42 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 2 Sep 2010 15:42:03 +0000 (15:42 +0000)
commit58b61394cfd1f96444c1debd9ba9e0ea69d439f2
treee01572a0149a77b00fc73c0b70b9b5edb2c60d82
parent3f3540e14f998638c7a71179c24e48b4f59d4a97
gdb/
* cli-logging.c: Include gdb_assert.h.
(set_logging_overwrite): New function.
(logging_redirect): New comment.
(logging_no_redirect_file, set_logging_redirect)
(pop_output_files) <logging_no_redirect_file>: New.
(handle_redirections) <!logging_redirect>: New variable
no_redirect_file.  Remove file autoclose for tee_file_new.  No longer
discard cleanup for the close of former OUTPUT.  Set
LOGGING_NO_REDIRECT_FILE.
(handle_redirections) <logging_redirect>: gdb_assert
LOGGING_NO_REDIRECT_FILE.
(show_logging_command) <logging_redirect handling>: Adjust messages
for SAVED_FILENAME not NULL.
(_initialize_cli_logging): Install set_logging_overwrite and
set_logging_redirect.
gdb/ChangeLog
gdb/cli/cli-logging.c