Use new %p format suffixes in gdb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index dd196d7e4f15faf02ff54154098286ca6368d7ca..980aa60571fb3be95f9fb011613a2c4f12c4be5e 100644 (file)
@@ -1,3 +1,72 @@
+2019-10-01  Pedro Alves  <palves@redhat.com>
+           Tom Tromey  <tom@tromey.com>
+
+       * symtab.c (print_symbol_info): Use %ps.
+       (print_msymbol_info): Use %ps.
+       * symfile.c (symbol_file_add_with_addrs): Use %ps.
+       * printcmd.c (print_variable_and_value): Use %ps.
+       * macrocmd.c (show_pp_source_pos): Use %ps.
+       * infrun.c (print_exited_reason): Use ui_out::message.
+       * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
+       (describe_other_breakpoints): Use ui_out::message and new
+       formats.
+       (say_where): Use new formats.
+       (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
+       and new formats.
+
+2019-10-01  Pedro Alves  <palves@redhat.com>
+           Tom Tromey  <tom@tromey.com>
+
+       * unittests/format_pieces-selftests.c: Add gdb_format parameter.
+       (test_gdb_formats): New function.
+       (run_tests): Call it.
+       (test_format_specifier): Update.
+       * utils.h (fputs_filtered): Update comment.
+       (vfprintf_styled, vfprintf_styled_no_gdbfmt)
+       (fputs_styled_unfiltered): Declare.
+       * utils.c (fputs_styled_unfiltered): New function.
+       (vfprintf_maybe_filtered): Add gdbfmt parameter.
+       (vfprintf_filtered): Update.
+       (vfprintf_unfiltered, vprintf_filtered): Update.
+       (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
+       * ui-out.h (enum ui_out_flag) <unfiltered_output,
+       disallow_ui_out_field>: New constants.
+       (enum class field_kind): New.
+       (struct base_field_s, struct signed_field_s): New.
+       (signed_field): New function.
+       (struct string_field_s): New.
+       (string_field): New function.
+       (struct styled_string_s): New.
+       (styled_string): New function.
+       (class ui_out) <message>: Add comment.
+       <vmessage, call_do_message>: New methods.
+       <do_message>: Add style parameter.
+       * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
+       methods.
+       (ui_out::message): Rewrite.
+       * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
+       parameter.
+       * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
+       * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
+       gdb_extensions parameter.
+       (class format_piece): Add parameter to constructor.
+       (n_int_args): New field.
+       * gdbsupport/format.c (format_pieces::format_pieces): Add
+       gdb_extensions parameter.  Handle '*'.
+       * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
+       * cli-out.c (cli_ui_out::do_message): Add style parameter.  Call
+       vfprintf_styled_no_gdbfmt.
+       (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
+       (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
+       unfiltered output.
+       * ui-style.h (struct ui_file_style) <ptr>: New method.
+
+2019-10-01  Tom Tromey  <tom@tromey.com>
+
+       * unittests/format_pieces-selftests.c: Update.  Add final format.
+       * gdbsupport/format.c (format_pieces::format_pieces): Don't add
+       empty literal pieces.
+
 2019-10-01  Tom Tromey  <tom@tromey.com>
 
        * ui-out.h (enum class ui_out_style_kind): Remove.
This page took 0.036799 seconds and 4 git commands to generate.