Use new %p format suffixes in gdb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index b36f196025ce0c2599ed9cd58a760e06a7e2a776..980aa60571fb3be95f9fb011613a2c4f12c4be5e 100644 (file)
@@ -1,3 +1,185 @@
+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.
+       (class ui_out) <field_string, field_stsream, do_field_string>:
+       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) <do_field_string>: 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) <do_field_string>: 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) <do_field_string>: 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.
+
+2019-10-01  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
+       conversion of gdb_datadir.
+       (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
+       remove not needed c_str ().
+
+2019-09-30  Ali Tamur <tamur@google.com>
+
+       * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
+       (dwarf2_string_attr): Likewise.
+
+2019-09-30  Ali Tamur <tamur@google.com>
+
+       * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
+       (process_full_type_unit): Likewise.
+       (dump_die_shallow): Likewise.
+       (cu_debug_loc_section): Likewise.
+
+2019-09-28  Christian Biesinger  <cbiesinger@google.com>
+
+       * minsyms.c (compare_minimal_symbols): Rename to...
+       (minimal_symbol_is_less_than): ...this, and adjust to STL
+       conventions (return bool, take arguments as references)
+       (minimal_symbol_reader::install): Call std::sort instead
+       of qsort.
+
+2019-09-29  Christian Biesinger  <cbiesinger@google.com>
+
+       * minsyms.h (msymbol_hash): Document that this is a case-insensitive
+       hash and why.
+       * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
+       msymbol_hash, msymbol_demangled_hash>: Improve comments.
+
+2019-09-30  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
+       * psympriv.h (add_psymbol_to_list): Move comment here and update
+       it.
+
+2019-09-29  Tom de Vries  <tdevries@suse.de>
+
+       * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
+       Use $tmpdir/$(basename "$output_file").dwz instead of
+       "${output_file}.dwz".
+
+2019-09-28  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       PR gdb/25045
+       * hppa-linux-nat.c: Include gdbarch.h.
+
+2019-09-26  Christian Biesinger  <cbiesinger@google.com>
+
+       * blockframe.c (find_pc_partial_function): Change return type to bool.
+       * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
+       * minsyms.c (in_gnu_ifunc_stub): Likewise.
+       (stub_gnu_ifunc_resolve_name): Likewise.
+       * symtab.c (compare_filenames_for_search): Likewise.
+       (compare_glob_filenames_for_search): Likewise.
+       (matching_obj_sections): Likewise.
+       (symbol_matches_domain): Likewise.
+       (find_line_symtab): Change out param EXACT_MATCH to bool *.
+       (find_line_pc): Change return type to bool.
+       (find_line_pc_range): Likewise.
+       (producer_is_realview): Likewise.
+       * symtab.h (symbol_matches_domain): Likewise.
+       (find_pc_partial_function): Likewise.
+       (find_pc_line_pc_range): Likewise.
+       (in_gnu_ifunc_stub): Likewise.
+       (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
+       (find_line_pc): Likewise.
+       (find_line_pc_range): Likewise.
+       (matching_obj_sections): Likewise.
+       (find_line_symtab): Change out parameter to bool.
+       (producer_is_realview): Change return type to bool.
+       (compare_filenames_for_search): Likewise.
+       (compare_glob_filenames_for_search): Likewise.
+
 2019-09-26  Tom Tromey  <tom@tromey.com>
 
        * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
This page took 0.050195 seconds and 4 git commands to generate.