Use new %p format suffixes in gdb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index ba434dd30033413e1da88e85f14ef21cc815a4cb..980aa60571fb3be95f9fb011613a2c4f12c4be5e 100644 (file)
@@ -1,3 +1,381 @@
+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.
+       (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
+       * gdb_usleep.h: Remove.
+       * gdb_usleep.c: Remove.
+       * utils.c: Don't include gdb_usleep.h.
+
+2019-09-26  Tom Tromey  <tromey@adacore.com>
+
+       * python/py-type.c (type_to_type_object): Call check_typedef
+       for stub types.
+
+2019-09-26  Tom Tromey  <tom@tromey.com>
+
+       * utils.h (initialize_utils): Don't declare.
+       * top.c (gdb_init): Don't call initialize_utils.
+       * utils.c (initialize_utils): Remove.  Move contents...
+       (_initialize_utils): ... here.
+
+2019-09-25  Tom Tromey  <tom@tromey.com>
+
+       * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
+       * utils.h (make_hex_string): Don't declare.
+       * utils.c (make_hex_string): Remove.
+
+2019-09-24  Tom de Vries  <tdevries@suse.de>
+
+       PR gdb/23815
+       * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
+       Initialize xstateregs before ptrace PTRACE_GETREGSET call.
+
+2019-09-23  Dimitar Dimitrov  <dimitar@dinux.eu>
+
+       * NEWS: Mention new simulator port for PRU.
+
+2019-09-23  Christian Biesinger  <cbiesinger@google.com>
+
+       * ada-exp.y (write_object_remaining): Update.
+       * ada-lang.c (ada_decode): Return a std::string instead of a char*
+       and eliminate the static buffer.
+       (ada_decode_symbol): Update.
+       (ada_la_decode): Update.
+       (ada_sniff_from_mangled_name): Update.
+       (is_valid_name_for_wild_match): Update.
+       (ada_lookup_name_info::matches): Update and simplify.
+       (name_matches_regex): Update.
+       (ada_add_global_exceptions): Update.
+       * ada-lang.h (ada_decode): Update signature.
+       * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
+       * dwarf-index-write.c (debug_names::insert): Update.
+
+2019-09-21  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
+       formatting.
+
+2019-09-21  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
+       Change "nonzero" to "true" in documentation.
+
+2019-09-20  Christian Biesinger  <cbiesinger@google.com>
+
+       * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
+       (_initialize_darwin_solib): Don't set
+       darwin_so_ops.lookup_lib_global_symbol.
+       * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
+       set_gdbarch_iterate_over_objfiles_in_search_order.
+       (elf_lookup_lib_symbol): Rename to...
+       (svr4_iterate_over_objfiles_in_search_order): this, and update
+       to iterate semantics.
+       (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
+       * solib.c (solib_global_lookup): Remove.
+       * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
+       (solib_global_lookup): Remove.
+       * symtab.c (lookup_global_or_static_symbol): Remove call to
+       solib_global_lookup.
+
+2019-09-20  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Move entries about default MI version now being
+       version 3, and about the GDB/MI fix for multi-location
+       breakpoints to the "since GDB 8.3" section.
+
+2019-09-20  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 8.3.1 released.
+
+2019-09-20  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * NEWS: Mention that Cell/B.E. debugging support was removed.
+       * MAINTAINERS: Remove spu target.
+
+       * config/djgpp/fnchange.lst: Remove entries for removed files.
+
+       * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
+       spu-multiarch.o, and spu-tdep.o.
+       (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
+       (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
+       spu-multiarch.c, and spu-tdep.c.
+       * spu-linux-nat.c: Remove file.
+       * spu-multiarch.c: Remove file.
+       * spu-tdep.c: Remove file.
+       * spu-tdep.h: Remove file.
+       * solib-spu.c: Remove file.
+       * solib-spu.h: Remove file.
+
+       * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
+       * configure.nat (spu-linux): Remove.
+       * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
+       solib-multiarch.o from gdb_target_obs.
+       (spu*-*-*): Remove.
+
+       * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
+       feature flag.
+       (ppc_linux_no_features): Update.
+       * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
+       Cell/B.E. support.
+       * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
+       (tdesc_powerpc_cell64l): Likewise.
+       * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
+       * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
+       Cell/B.E. support.
+       * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
+       Do not include "features/rs6000/powerpc-cell32l.c" or
+       "features/rs6000/powerpc-cell64l.c".
+       (ppc_linux_spu_section): Remove.
+       (ppc_linux_core_read_description): Remove Cell/B.E. support.
+       (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
+       spe_context_cache_ptid, spe_context_cache_ptid): Remove.
+       (ppc_linux_spe_context_lookup): Remove.
+       (ppc_linux_spe_context_inferior_created): Remove.
+       (ppc_linux_spe_context_solib_loaded): Remove.
+       (ppc_linux_spe_context_solib_unloaded): Remove.
+       (ppc_linux_spe_context): Remove.
+       (struct ppu2spu_cache): Remove.
+       (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
+       (struct ppu2spu_data): Remove.
+       (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
+       ppu2spu_unwind): Remove.
+       (ppc_linux_init_abi): Remove Cell/B.E. support.
+       * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
+
+       * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
+       (rs6000/powerpc-cell64l-expedite): Likewise
+       (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
+       (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
+       rs6000/powerpc-cell64l.xml.
+       * features/rs6000/powerpc-cell32l.xml: Remove.
+       * features/rs6000/powerpc-cell64l.xml: Likewise.
+       * features/rs6000/powerpc-cell32l.c: Remove generated file.
+       * features/rs6000/powerpc-cell64l.c: Likewise.
+       * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
+       * regformats/rs6000/powerpc-cell64l.dat: Likewise.
+       * regformats/reg-spu.dat: Remove.
+
+       * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
+       * corelow.c (struct spuid_list): Remove.
+       (add_to_spuid_list): Remove.
+       (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
+       * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
+       (remote_protocol_features): Remove associated entries.
+       (_initialize_remote): No longer initialize them.
+       (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
+       * linux-nat.c (SPUFS_MAGIC): Remove.
+       (linux_proc_xfer_spu): Remove.
+       (spu_enumerate_spu_ids): Remove.
+       (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
+       * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
+       (linux_make_corefile_notes): No longer call it.
+
+       * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
+       (cooked_write_test): Likewise.
+
+2019-09-20  Tom Tromey  <tom@tromey.com>
+
+       * NEWS: Mention case-sensitivity of TUI commands.
+       * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
+       (tui_set_win_height_command, parse_scrolling_args): Likewise.
+       * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
+
+2019-09-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-source.c (tui_source_window::set_contents): Use
+       make_unique_xstrdup.
+       * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
+       make_unique_xstrdup.
+
+2019-09-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-data.c: Remove separator comments.
+       * tui/tui-layout.c: Remove separator comments.
+       * tui/tui-win.c: Remove separator comments.
+       * tui/tui-wingeneral.c: Remove separator comments.
+
 2019-09-20  Tom Tromey  <tom@tromey.com>
 
        * tui/tui.h (strcat_to_buf): Don't declare.
This page took 0.031197 seconds and 4 git commands to generate.