From e43b10e10eba9d9493a0ad40176b2aea9cfb62ab Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 5 Jun 2019 16:21:24 -0600 Subject: Remove the ui_out_style_kind enum This removes the ui_out_style_kind enum, in favor of simply using ui_file_style references. This simplifies the code somewhat. gdb/ChangeLog 2019-10-01 Tom Tromey * ui-out.h (enum class ui_out_style_kind): Remove. (class ui_out) : Change type of "style". * ui-out.c (ui_out::field_core_addr, ui_out::field_stream) (ui_out::field_string): Update. * tui/tui-out.h (class tui_ui_out) : Change type of "style". * tui/tui-out.c (tui_ui_out::do_field_string): Update. * tracepoint.c (print_one_static_tracepoint_marker): Update. * stack.c (print_frame_arg, print_frame_info, print_frame): Update. * source.c (print_source_lines_base): Update. * solib.c (info_sharedlibrary_command): Update. * skip.c (info_skip_command): Update. * record-btrace.c (btrace_call_history_src_line) (btrace_call_history): Update. * python/py-framefilter.c (py_print_frame): Update. * mi/mi-out.h (class mi_ui_out) : Change type of "style". * mi/mi-out.c (mi_ui_out::do_table_header) (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned) (mi_ui_out::do_field_string): Update. * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Update. * cli-out.h (class cli_ui_out) : Change type of "style". * cli-out.c (cli_ui_out::do_table_header) (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned) (cli_ui_out::do_field_skip, cli_ui_out::do_field_string) (cli_ui_out::do_field_fmt): Update. * breakpoint.c (print_breakpoint_location): Update. (update_static_tracepoint): Update. --- gdb/tui/tui-out.c | 2 +- gdb/tui/tui-out.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/tui') diff --git a/gdb/tui/tui-out.c b/gdb/tui/tui-out.c index 50865ba..d415e7b 100644 --- a/gdb/tui/tui-out.c +++ b/gdb/tui/tui-out.c @@ -52,7 +52,7 @@ tui_ui_out::do_field_signed (int fldno, int width, ui_align alignment, void tui_ui_out::do_field_string (int fldno, int width, ui_align align, const char *fldname, const char *string, - ui_out_style_kind style) + const ui_file_style &style) { if (suppress_output ()) return; diff --git a/gdb/tui/tui-out.h b/gdb/tui/tui-out.h index 083094b..9df9e93 100644 --- a/gdb/tui/tui-out.h +++ b/gdb/tui/tui-out.h @@ -35,7 +35,7 @@ protected: void do_field_signed (int fldno, int width, ui_align align, const char *fldname, LONGEST value) override; void do_field_string (int fldno, int width, ui_align align, const char *fldname, - const char *string, ui_out_style_kind style) override; + const char *string, const ui_file_style &style) override; void do_field_fmt (int fldno, int width, ui_align align, const char *fldname, const char *format, va_list args) override ATTRIBUTE_PRINTF (6,0); -- cgit v1.1