diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-01-10 11:30:47 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-01-10 11:32:04 -0500 |
commit | 7becfd03bad526c02216eeb5ec2bebae694b1af1 (patch) | |
tree | 1cf43c4bbc218d31611124c6c56583a43086ca14 /gdb/ui-out.h | |
parent | 98461510d3a8cefa6603980294bfc647cddcab97 (diff) | |
download | gdb-7becfd03bad526c02216eeb5ec2bebae694b1af1.zip gdb-7becfd03bad526c02216eeb5ec2bebae694b1af1.tar.gz gdb-7becfd03bad526c02216eeb5ec2bebae694b1af1.tar.bz2 |
Change return type of ui_out redirect to void
All implementations of redirect/do_redirect in the ui_out subsystem
always return 0 (success). We can therefore clean it up and make them
return void.
gdb/ChangeLog:
* cli-out.c (cli_ui_out::do_redirect): Change return type to
void.
* cli-out.h (cli_ui_out::do_redirect): Likewise.
* mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
* mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
* ui-out.c (ui_out::redirect): Likewise.
* ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
* cli/cli-logging.c (set_logging_redirect): Update call site of
ui_out::redirect.
(handle_redirections): Likewise.
* scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
* top.c (execute_command_to_string): Likewise.
* utils.c (do_ui_out_redirect_pop): Likewise.
Diffstat (limited to 'gdb/ui-out.h')
-rw-r--r-- | gdb/ui-out.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ui-out.h b/gdb/ui-out.h index cd43cd0..b8bea97 100644 --- a/gdb/ui-out.h +++ b/gdb/ui-out.h @@ -121,7 +121,7 @@ class ui_out void flush (); /* Redirect the output of a ui_out object temporarily. */ - int redirect (ui_file *outstream); + void redirect (ui_file *outstream); ui_out_flags test_flags (ui_out_flags mask); @@ -163,7 +163,7 @@ class ui_out ATTRIBUTE_PRINTF (2,0) = 0; virtual void do_wrap_hint (const char *identstring) = 0; virtual void do_flush () = 0; - virtual int do_redirect (struct ui_file * outstream) = 0; + virtual void do_redirect (struct ui_file *outstream) = 0; /* Set as not MI-like by default. It is overridden in subclasses if necessary. */ |