DWARF-5: .debug_names index producer
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 4d42cf92347eba843a4f9ecf07b80a867b68905c..0f26785f16ca5b44d944eacafa3d6154f62b20c9 100644 (file)
@@ -1,3 +1,153 @@
+2017-12-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Pedro Alves  <palves@redhat.com>
+
+       * contrib/gdb-add-index.sh (index): Rename to ...
+       (index4): ... here.
+       (index5, debugstr, debugstrmerge, debugstrerr): New variables.
+       Support also .debug_names and .debug_str.
+       * dwarf2read.c: Include cmath, set, list.
+       (INDEX_SUFFIX): Rename to ...
+       (INDEX4_SUFFIX): ... here.
+       (INDEX5_SUFFIX, DEBUG_STR_SUFFIX): New.
+       (file_write(FILE *, const void *, size_t)): New.
+       (file_write(FILE *, const std::vector<Elem, Alloc> &)): New.
+       (data_buf::append_unsigned_leb128, data_buf::empty): New.
+       (data_buf::file_write): Use ::file_write.
+       (data_buf::c_str, dwarf5_djb_hash, debug_names)
+       (check_dwarf64_offsets): New.
+       (psyms_seen_size, write_gdbindex): New from
+       write_psymtabs_to_index code.
+       (dwarf5_gdb_augmentation, write_debug_names, assert_file_size)
+       (enum dw_index_kind): New.
+       (write_psymtabs_to_index): New parameter index_kind.  Support
+       filename_str and out_file_str.  Move code to write_gdbindex,
+       possibly call write_debug_names.
+       (save_gdb_index_command): New parameter -dwarf-5.
+       (_initialize_dwarf2_read): Document the new parameter -dwarf-5.
+
+2017-12-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Pedro Alves  <palves@redhat.com>
+
+       * contrib/cc-with-tweaks.sh: Change interpreter to bash, incl. initial
+       comment.
+       (GDB_ADD_INDEX): New variable.
+       <$want_index>: Call $GDB_ADD_INDEX.
+
+2017-12-08  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * dtrace-probe.c (dtrace_process_dof_probe): Do not declare a new
+       "expression_up" inside the TRY block.
+
+2017-12-08  Yao Qi  <yao.qi@linaro.org>
+
+       * breakpoint.c (update_watchpoint): Call
+       address_significant.
+
+2017-12-08  Yao Qi  <yao.qi@linaro.org>
+
+       * breakpoint.c (adjust_breakpoint_address): Call
+       address_significant.
+
+2017-12-08  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-tdep.c (aarch64_gdbarch_init): Install gdbarch
+       significant_addr_bit.
+       * gdbarch.sh (significant_addr_bit): New.
+       * gdbarch.c, gdbarch.h: Re-generated.
+       * target.c (memory_xfer_partial): Call address_significant.
+       * utils.c (address_significant): New function.
+       * utils.h (address_significant): Declare.
+
+2017-12-08  Tom Tromey  <tom@tromey.com>
+
+       * printcmd.c (ui_printf): Update.  Use std::vector.
+       * common/format.h (struct format_piece): Add constructor.
+       <string>: Now const.
+       (class format_pieces): New class.
+       (parse_format_string, free_format_pieces)
+       (free_format_pieces_cleanup): Remove.
+       * common/format.c (format_pieces::format_pieces): Rename from
+       parse_format_string.  Update.
+       (free_format_pieces, free_format_pieces_cleanup): Remove.
+       * breakpoint.c (parse_cmd_to_aexpr): Update.  Use std::vector.
+       * ax-gdb.h (gen_printf): Remove argument.
+       * ax-gdb.c (gen_printf): Remove "frags" argument.
+       (maint_agent_printf_command): Update.  Use std::vector.
+
+2017-12-08  Yao Qi  <yao.qi@linaro.org>
+
+       PR breakpionts/22567
+       * linespec.c (minsym_found): Set sal.section.
+
+2017-12-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * configure.tgt (s390*-*-linux*): Add symfile-mem.o.
+
+2017-12-07  Keith Seitz  <keiths@redhat.com>
+
+       PR breakpoints/22569
+       * location.c (string_to_explicit_location): When terminating
+       parsing early, break out of enclosing loop instead of returning.
+
+2017-12-07  Keith Seitz  <keiths@redhat.com>
+
+       * NEWS (New commands): Mention set/show print type nested-type-limit.
+       * c-typeprint.c (c_type_print_base): Print out nested types.
+       * dwarf2read.c (struct typedef_field_list): Rename to ...
+       (struct decl_field_list): ... this.  Change all uses.
+       (struct field_info) <nested_types_list, nested_types_list_count>:
+       New fields.
+       (add_partial_symbol): Look for nested type definitions in C++, too.
+       (dwarf2_add_typedef): Rename to ...
+       (dwarf2_add_type_defn): ... this.
+       (type_can_define_types): New function.
+       Update assertion to use type_can_define_types.
+       Permit NULL for a field's name.
+       (process_structure_scope): Handle child DIEs of types that can
+       define types.
+       Copy the list of nested types into the type struct.
+       * gdbtypes.h (struct typedef_field): Rename to ...
+       (struct decl_field): ... this.  Change all uses.
+       [is_protected, is_private]: New fields.
+       (struct cplus_struct_type) <nested_types, nested_types_count>: New
+       fields.
+       (TYPE_NESTED_TYPES_ARRAY, TYPE_NESTED_TYPES_FIELD)
+       (TYPE_NESTED_TYPES_FIELD_NAME, TYPE_NESTED_TYPES_FIELD_TYPE)
+       (TYPE_NESTED_TYPES_COUNT, TYPE_NESTED_TYPES_FIELD_PROTECTED)
+       (TYPE_NESTED_TYPES_FIELD_PRIVATE): New macros.
+       * typeprint.c (type_print_raw_options, default_ptype_flags): Add
+       default value for print_nested_type_limit.
+       (print_nested_type_limit): New static variable.
+       (set_print_type_nested_types, show_print_type_nested_types): New
+       functions.
+       (_initialize_typeprint): Register new commands for set/show
+       `print-nested-type-limit'.
+       * typeprint.h (struct type_print_options) [print_nested_type_limit]:
+       New field.
+
+2017-12-07  Tom Tromey  <tom@tromey.com>
+
+       PR breakpoints/22511:
+       * breakpoint.c (commands_command_1): Don't throw an exception when
+       no commands have been read.
+
+2017-12-07  Adam Stylinski  <adam.stylinski@etegent.com>
+
+       PR c++/21222
+       * target-descriptions.c (print_c_tdesc::visit_pre): Change type of
+       range-for variable.
+
+2017-12-07  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * common/selftest.h (struct selftest): Add virtual destructor.
+
+2017-12-07  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * python/py-breakpoint.c (bppy_init): Use string_to_event_location
+       over basic location code. Implement explicit location keywords.
+       (bppy_init_validate_args): New function.
+       * NEWS: Document Python explicit breakpoint locations.
+
 2017-12-07  Joel Brobecker  <brobecker@adacore.com>
 
        * MAINTAINERS: Restore target entries for m68hc11-elf,
This page took 0.028719 seconds and 4 git commands to generate.