]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/ChangeLog
gdb: Fix sizeof for dynamic types other than arrays
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
index e6972c29505ab845dc192e80d854f83dd40b8db0..6d5b24c1e11fbba04514e462d5f3295a32a9c86b 100644 (file)
@@ -1,3 +1,103 @@
+2018-07-30  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * eval.c (evaluate_subexp_for_sizeof): Check for array type before
+       checking array bounds are defined.
+
+2018-07-30  Tom Tromey  <tom@tromey.com>
+
+       * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
+       irreflexivity violation.
+
+2018-07-30  Tom Tromey  <tom@tromey.com>
+
+       * cli/cli-decode.c (lookup_cmd): Remove lint code.
+       * value.c (unpack_long): Remove lint code.
+       * valops.c (value_ind): Remove lint code.
+       * valarith.c (value_x_binop, value_x_unop, value_equal)
+       (value_pos): Remove lint code.
+
+2018-07-28  Tom de Vries  <tdevries@suse.de>
+
+       * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
+       with undefined upper bound as <optimized out>.
+
+2018-07-27  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * gcore.in: Rename variable "name" to "prefix".  Expand
+       "usage" text.
+
+2018-07-14  Jon Turney  <jon.turney@dronecode.org.uk>
+
+       * windows-nat.c (windows_nat_target::create_inferior): Update to
+       call close() in global namespace.
+
+2018-07-26  Tom Tromey  <tom@tromey.com>
+
+       * dwarf-index-write.c (add_address_entry): Don't add objfile
+       offsets.
+       * dbxread.c (find_stab_function): Rename from
+       find_stab_function_addr.  Return a bound_minimal_symbol.
+       (read_dbx_symtab): Use raw_text_low, raw_text_high.
+       Don't add objfile offsets.
+       (end_psymtab): Use raw_text_low, raw_text_high,
+       MSYMBOL_VALUE_RAW_ADDRESS.
+       (read_ofile_symtab): Update.
+       (process_one_symbol): Update.
+       * dwarf2read.c (create_addrmap_from_index): Don't add objfile
+       offsets.
+       (dw2_relocate): Remove.
+       (dw2_find_pc_sect_symtab): Bias PC by the text offset before
+       searching addrmap.
+       (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
+       Update.
+       (process_psymtab_comp_unit_reader, add_partial_symbol)
+       (add_partial_subprogram, dwarf2_ranges_read): Update.
+       (load_partial_dies): Update.
+       (add_address_entry): Don't add objfile offsets.
+       (dwarf2_build_include_psymtabs): Update.
+       (create_addrmap_from_aranges): Don't add objfile offsets.
+       (dw2_find_pc_sect_compunit_symtab): Update.
+       * mdebugread.c (parse_symbol): Don't add objfile offsets.
+       (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
+       Update.
+       (parse_partial_symbols): Don't add objfile offsets.  Use
+       raw_text_low, raw_text_high.  Update.
+       (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
+       * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
+       or call 'relocate' quick function.  Clear psymbol_map.
+       * psympriv.h (struct partial_symbol) <address>: Add section
+       offset.
+       <set_unrelocated_address>: Rename from set_address.
+       <raw_text_low, raw_text_high>: New methods.
+       <text_low, text_high>: Add objfile parameter.
+       (add_psymbol_to_bcache): Add 'section' parameter.  Call
+       set_unrelocated_address.
+       * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
+       (find_pc_psymbol): Update.
+       (fixup_psymbol_section, relocate_psymtabs): Remove.
+       (dump_psymtab, psym_functions): Update.
+       (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
+       parameter.
+       (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
+       (start_psymtab_common): Update.
+       * symfile-debug.c (debug_qf_relocate): Remove.
+       (debug_sym_quick_functions): Update.
+       * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
+       * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
+       Update.
+
+2018-07-26  Tom Tromey  <tromey@redhat.com>
+
+       * dbxread.c (end_psymtab): Use text_high_valid and
+       text_low_valid.
+       * mdebugread.c (parse_partial_symbols): Use text_low_valid.
+       (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
+       * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
+       Update comment.
+       <text_low_valid, text_high_valid>: New fields.
+       <set_text_low, set_text_high>: Update.
+       * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
+
 2018-07-26  Tom Tromey  <tom@tromey.com>
 
        * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):