diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2016-12-02 17:12:37 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2016-12-02 17:12:37 -0500 |
commit | bef721e278d9ba3178e679eda38ac86ef2dc0d5d (patch) | |
tree | 51e9142e61cac94c8f34ebaab19ef5855a365eaf /gdb/mi/mi-out.c | |
parent | 107c2d628b924de1854d6d254d60e97e1887ce4a (diff) | |
download | gdb-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/mi/mi-out.c')
-rw-r--r-- | gdb/mi/mi-out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c index 6e69d7c..19fcf87 100644 --- a/gdb/mi/mi-out.c +++ b/gdb/mi/mi-out.c @@ -393,7 +393,7 @@ mi_out_data_dtor (struct ui_out *ui_out) struct ui_out * mi_out_new (int mi_version) { - int flags = 0; + ui_out_flags flags = 0; mi_out_data *data = new mi_out_data (); struct ui_file *stream = mem_fileopen (); |