aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli-out.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2016-12-02 17:12:37 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2016-12-02 17:12:37 -0500
commitbef721e278d9ba3178e679eda38ac86ef2dc0d5d (patch)
tree51e9142e61cac94c8f34ebaab19ef5855a365eaf /gdb/cli-out.c
parent107c2d628b924de1854d6d254d60e97e1887ce4a (diff)
downloadgdb-bef721e278d9ba3178e679eda38ac86ef2dc0d5d.zip
gdb-bef721e278d9ba3178e679eda38ac86ef2dc0d5d.tar.gz
gdb-bef721e278d9ba3178e679eda38ac86ef2dc0d5d.tar.bz2
Introduce enum_flag type for ui_out flags
This patch changes the ui_out flags to be an enum flag. gdb/ChangeLog: * ui-out.h: Include "common/enum-flags.h". (enum ui_flags): Rename to ... (enum ui_out_flag): ... this. (ui_out_flags): Define enum flag type. (ui_out_test_flags): Change type of parameter to ui_out_flags. (ui_out_new): Likewise. * ui-out.c (ui_out_test_flags): Likewise. (ui_out_new): Likewise. * cli-out.c (cli_out_new): Update variable type. * mi/mi-out.c (mi_out_new): Likewise. * tui/tui-out.c (tui_out_new): Likewise.
Diffstat (limited to 'gdb/cli-out.c')
-rw-r--r--gdb/cli-out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli-out.c b/gdb/cli-out.c
index ac19e38..f5b5072 100644
--- a/gdb/cli-out.c
+++ b/gdb/cli-out.c
@@ -388,7 +388,7 @@ cli_out_data_ctor (cli_out_data *self, struct ui_file *stream)
struct ui_out *
cli_out_new (struct ui_file *stream)
{
- int flags = ui_source_list;
+ ui_out_flags flags = ui_source_list;
cli_out_data *data = new cli_out_data ();
cli_out_data_ctor (data, stream);