diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-09-11 16:00:27 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-09-11 16:00:27 +0000 |
commit | 8d4d924b76392dfd191e5bc0e54381befb9af0af (patch) | |
tree | 145c81b97f6ffe3485a2641514e10ec4eab38b68 /gdb/defs.h | |
parent | 84f49b315b57025e0400e2b5d66b49bef3e16e23 (diff) | |
download | gdb-8d4d924b76392dfd191e5bc0e54381befb9af0af.zip gdb-8d4d924b76392dfd191e5bc0e54381befb9af0af.tar.gz gdb-8d4d924b76392dfd191e5bc0e54381befb9af0af.tar.bz2 |
gdb/
Redirect also uiout and stdtarg{,err} in execute_command_to_string.
* cli-logging.c (struct saved_output_files) <targerr>: New.
(set_logging_redirect, pop_output_files, handle_redirections):
Redirect also gdb_stdtargerr.
* defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
declarations.
* event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
also gdb_stdtargerr.
* top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
* tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
* utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
New functions.
gdb/testsuite/
* gdb.python/python.exp (set height 0, collect help from uiout)
(verify help to uiout): New tests.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -337,6 +337,10 @@ extern struct cleanup *make_cleanup_freeargv (char **); struct ui_file; extern struct cleanup *make_cleanup_ui_file_delete (struct ui_file *); +struct ui_out; +extern struct cleanup * + make_cleanup_ui_out_redirect_pop (struct ui_out *uiout); + struct section_addr_info; extern struct cleanup *(make_cleanup_free_section_addr_info (struct section_addr_info *)); |