Implement pahole-like 'ptype /o' option
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 1d381135e77d111cc5124832b6533993cf786449..2200f63dedced113ce3bffad29d04dee6ad76859 100644 (file)
@@ -1,3 +1,226 @@
+2017-12-15  Sergio Durigan Junior  <sergiodj@redhat.com>
+           Pedro Alves  <palves@redhat.com>
+
+       PR cli/16224
+       * NEWS (Changes since GDB 8.0): Mention new '/o' flag.
+       * c-typeprint.c (OFFSET_SPC_LEN): New define.
+       (c_type_print_varspec_prefix): New argument 'struct
+       print_offset_data *'.
+       (c_type_print_base_1): New function and prototype.
+       (c_print_type_1): New function, with code from 'c_print_type'.
+       (c_print_type): Use 'c_print_type_1'.
+       (c_type_print_varspec_prefix): New argument 'struct
+       print_offset_data *'.  Use it.  Call 'c_type_print_base_1'
+       instead of 'c_print_type_base'.
+       (print_spaces_filtered_with_print_options): New function.
+       (output_access_specifier): Take new argument FLAGS.  Modify
+       function to call 'print_spaces_filtered_with_print_options'.
+       (c_print_type_vtable_offset_marker): New function.
+       (c_print_type_union_field_offset): New function.
+       (c_print_type_struct_field_offset): New function.
+       (c_print_type_no_offsets): New function.
+       (c_type_print_base_struct_union): New argument 'struct
+       print_offset_data *'.  Print offsets and sizes for
+       struct/union/class fields.
+       * typeprint.c (const struct type_print_options
+       type_print_raw_options): Initialize 'print_offsets'.
+       (static struct type_print_options default_ptype_flags):
+       Likewise.
+       (struct print_offset_data print_offset_default_data): New
+       variable.
+       (whatis_exp): Handle '/o' option.
+       (_initialize_typeprint): Add '/o' flag to ptype's help.
+       * typeprint.h (struct print_offset_data): New struct.
+       (struct type_print_options) <print_offsets>: New field.
+
+2017-12-15  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * c-typeprint.c (need_access_label_p): New function.
+       (c_type_print_base_struct_union): New function.
+       (c_type_print_base): Move code to handle
+       TYPE_CODE_{STRUCT,UNION} to the functions mentioned above.
+
+2017-12-15  Richard Henderson  <rth@redhat.com>
+           Uros Bizjak  <ubizjak@gmail.com>
+
+       PR gdb/19061
+       * alpha-tdep.c (alpha_software_single_step): Call
+       alpha_deal_with_atomic_sequence here.
+       (set_gdbarch_software_single_step): Set to
+       alpha_software_single_step.
+       * nat/linux-ptrace.h [__alpha__]: Define GDB_ARCH_IS_TRAP_BRKPT
+       and GDB_ARCH_IS_TRAP_HWBKPT.
+
+2017-12-15  Yao Qi  <yao.qi@linaro.org>
+
+       * unittests/memory-map-selftests.c: Wrap test with HAVE_LIBEXPAT.
+
+2017-12-15  Xavier Roirand  <roirand@adacore.com>
+
+       * ada-lang.c (ada_value_primitive_field): Handle field search
+       in case of homonyms.
+       (find_struct_field): Ditto.
+       (ada_search_struct_field): Ditto.
+       (ada_value_struct_elt): Ditto.
+       (ada_lookup_struct_elt_type): Ditto.
+
+2017-12-14  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * python/py-breakpoint.c (bppy_init): Use 'O' format specifier
+       for "qualified" and use PyObject_IsTrue.
+
+2017-12-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf2read.c (dw2_debug_names_iterator::next): Support
+       DW_IDX_type_unit.
+       (debug_names::dwarf5_offset_size, unit_kind): New.
+       (debug_names::insert): Add parameter kind.
+       (debug_names::build): Support DW_IDX_type_unit.
+       (debug_names::recursively_write_psymbols): Update
+       (debug_names::write_psymbols caller.
+       (debug_names::write_one_signatured_type_data)
+       (debug_names::write_one_signatured_type): New.
+       (debug_names::index_key, debug_names::symbol_value)
+       (debug_names::write_psymbols): Add kind.
+       (debug_names::write_one_signatured_type): New.
+       (write_debug_names): Move dwarf5_offset_size to debug_names.
+       Use debug_names::write_one_signatured_type for type units.
+
+2017-12-14  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_value_equal): Add handling of typedef types
+       when comparing array objects.
+
+2017-12-14  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-tasks.c (read_atcb): Properly set task_info->ptid
+       when !target_has_execution as well.
+       (task_command): Remove error when !target_has_execution.
+
+2017-12-13  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * location.h (string_to_event_location): Add match_type
+       parameter.
+       * location.c (string_to_event_location): Likewise.
+       * python/py-breakpoint.c (bppy_init): Handle qualified
+       parameter.
+
+2017-12-13  Pedro Alves  <palves@redhat.com>
+
+       * completer.c (completion_tracker::maybe_add_completion): New
+       'text' and 'word' parameters.  Use make_completion_match_str.
+       (completion_tracker::add_completion): New 'text' and 'word'
+       parameters.  Pass down.
+       (completion_tracker::recompute_lowest_common_denominator): Change
+       parameter type to gdb::unique_xmalloc_ptr rval ref.  Adjust.
+       * completer.h (completion_tracker::add_completion): New 'text' and
+       'word' parameters.
+       (completion_tracker::recompute_lowest_common_denominator): Change
+       parameter type to gdb::unique_xmalloc_ptr rval ref.
+       (completion_tracker::recompute_lowest_common_denominator): Change
+       parameter type to gdb::unique_xmalloc_ptr rval ref.
+       * symtab.c (completion_list_add_name): Pass down 'text' and 'word'
+       as well.
+
+2017-12-13  Pedro Alves  <palves@redhat.com>
+
+       * cli/cli-decode.c (complete_on_cmdlist, complete_on_enum): Use
+       make_completion_match_str.
+       * completer.c: Use gdb::unique_xmalloc_ptr and
+       make_completion_match_str.
+       (make_completion_match_str_1): New.
+       (make_completion_match_str(const char *, const char *,
+       const char *)): New.
+       (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
+       const char *, const char *)): New.
+       * completer.h (make_completion_match_str(const char *,
+       const char *, const char *)): New.
+       (make_completion_match_str(gdb::unique_xmalloc_ptr<char> &&,
+       const char *, const char *)): New.
+       * interps.c (interpreter_completer): Use make_completion_match_str.
+       * symtab.c (completion_list_add_name, add_filename_to_list): Use
+       make_completion_match_str.
+
+2017-12-13  Stafford Horne  <shorne@gmail.com>
+
+       * or1k-tdep.c (or1k_analyse_inst): Use _() wrapper for message
+       strings.
+       (or1k_unwind_pc): Use paddress() instead of %p.
+       (or1k_unwind_sp): Likewise.
+       (or1k_frame_cache): Use host_address_to_string()/paddress()
+       instead of %p and use _() wrapper for message strings.
+
+2017-12-13  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * contrib/ari/gdb_ari.sh: Fix typo in help.
+
+2017-12-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * event-top.c (handle_line_of_input): Set server_command.
+
+2017-12-12  Stafford Horne  <shorne@gmail.com>
+           Stefan Wallentowitz  <stefan@wallentowitz.de>
+           Stefan Kristiansson  <stefan.kristiansson@saunalahti.fi>
+           Franck Jullien  <franck.jullien@gmail.com>
+           Jeremy Bennett  <jeremy.bennett@embecosm.com>
+
+       * configure.tgt: Add targets for or1k and or1knd.
+       * or1k-tdep.c: New file.
+       * or1k-tdep.h: New file.
+       * features/Makefile: Add or1k.xml to build.
+       * features/or1k.xml: New file.
+       * features/or1k-core.xml: New file.
+       * features/or1k.c: Generated.
+
+2017-12-12  Alan Modra  <amodra@gmail.com>
+
+       PR tdep/22576
+       * ppc64-tdep.c (ppc64_plt_entry_point): Rewrite to take TOC-relative
+       PLT offset, and retrieve r2 from stack when executing in reverse.
+       (ppc64_standard_linkage1_target): Drop pc param.  Calculate offset
+       rather than PLT address.
+       (ppc64_standard_linkage2_target): Likewise.
+       (ppc64_standard_linkage3_target): Likewise.
+       (ppc64_standard_linkage4_target): Likewise.
+       (ppc64_skip_trampoline_code_1): Adjust to suit.
+
+2017-12-11  Simon Marchi  <simon.marchi@ericsson.com>
+
+       PR gdb/22556
+       * remote.c (remote_thread_name): Return NULL if name is empty.
+       (remote_threads_extra_info): Return NULL if extra info is empty.
+
+2017-12-11  Pedro Alves  <palves@redhat.com>
+
+       * defs.h (elf_sym_fns_lazy_psyms, elf_sym_fns_gdb_index)
+       (elf_sym_fns_debug_names): Move to elfread.c.
+       * dwarf2read.c (dwarf2_initialize_objfile): Return a boolean
+       instead of a sym_fns and add 'index_kind' output parameter.  Fill
+       the latter in with the index variant kind if using an index.
+       (enum dw_index_kind): Moved to symfile.h.
+       * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names)
+       (elf_sym_fns_lazy_psyms): Move from defs.h.
+       (elf_symfile_read): Adjust to new dwarf2_initialize_objfile
+       interface.
+       * symfile.h (enum class dw_index_kind): New, moved from
+       dwarf2read.c.
+       (dwarf2_initialize_objfile): Change prototype.
+
+2017-12-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * target-float.c (mpfr_float_ops::from_target): Use mpfr_set_ui
+       instead of mpfr_set_si to convert mantissa bits.
+
+2017-12-11  Xavier Roirand <roirand@adacore.com>
+           Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_tag_value_at_base_address): Change the way
+       tagged type base address is computed.
+       (enum ada_primitive_types) <ada_primitive_type_storage_offset>:
+       New enumerate.
+       (ada_language_arch_info): Set the ada_primitive_type_storage_offset
+       element of lai->primitive_type_vector.
+
 2017-12-08  Pedro Alves  <palves@redhat.com>
 
        * dwarf2read.c (mock_mapped_index): Reimplement as an extension of
This page took 0.029186 seconds and 4 git commands to generate.