Share windows_thread_info between gdb and gdbserver
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 174ac70096759010677a9487ba72954810a6332c..c2e6d60fd6fe0ef3b6683430ab4562149a699fa6 100644 (file)
@@ -1,3 +1,268 @@
+2020-04-08  Tom Tromey  <tromey@adacore.com>
+
+       * windows-nat.c (struct windows_thread_info): Remove.
+       * nat/windows-nat.h: New file.
+
+2020-04-08  Tom Tromey  <tromey@adacore.com>
+
+       * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
+       (thread_rec, windows_add_thread, windows_delete_thread)
+       (windows_continue): Update.
+
+2020-04-08  Tom Tromey  <tromey@adacore.com>
+
+       * windows-nat.c (struct windows_thread_info): Remove typedef.
+       (thread_head): Remove.
+       (thread_list): New global.
+       (thread_rec, windows_add_thread, windows_init_thread_list)
+       (windows_delete_thread, windows_continue): Update.
+
+2020-04-08  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * windows-tdep.h (windows_init_abi): Add comment.
+       (cygwin_init_abi): New declaration.
+       * windows-tdep.c: Split signal enumeration in two, one for
+       Windows and one for Cygwin.
+       (windows_gdb_signal_to_target): Only deal with signal of the
+       Windows OS ABI.
+       (cygwin_gdb_signal_to_target): New function.
+       (windows_init_abi): Rename to windows_init_abi_common, don't set
+       gdb_signal_to_target gdbarch method.  Add new new function with
+       this name.
+       (cygwin_init_abi): New function.
+       * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
+       comment.  Don't call windows_init_abi.
+       (amd64_windows_init_abi): Add comment, call windows_init_abi.
+       (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
+       * i386-windows-tdep.c (i386_windows_init_abi): Rename to
+       i386_windows_init_abi_common, don't call windows_init_abi.  Add
+       a new function of this name.
+       (i386_cygwin_init_abi): New function.
+       (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
+       OS ABI Cygwin.
+
+2020-04-08  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
+       parameter.c.
+       (dwarf2_read_gdb_index): Update.
+
+2020-04-07  Kamil Rytarowski  <n54@gmx.com>
+
+       * nbsd-tdep.c: Include "objfiles.h".
+       (nbsd_skip_solib_resolver): New.
+       (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
+
+2020-04-07  Nitika Achra  <Nitika.Achra@amd.com>
+
+       * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
+       addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
+       with DW_LLE_base_addressx are being emitted in DWARFv5.
+       Add the newly added kind DW_LOC_OFFSET_PAIR also.
+       The length of location description is an unsigned ULEB integer in DWARFv5 instead of
+       unsigned integer.
+
+2020-04-07  Nitika Achra  <Nitika.Achra@amd.com>
+
+       * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
+       (dwarf2_find_location_expression): Call the function decode_debug_loclists_
+       addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
+       with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
+       Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
+       (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
+       DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
+
+
+2020-04-07  Nitika Achra  <Nitika.Achra@amd.com>
+
+       * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
+       (read_loclist_index): New function definition.
+       (lookup_loclist_base): New function definition.
+       (read_loclist_header): New function definition.
+       (dwarf2_cu): Add loclist_base and loclist_header field.
+       (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
+       (read_full_die_1): Read the value of DW_AT_loclists_base.
+       (read_attribute_reprocess): Handle DW_FORM_loclistx.
+       (read_attribute_value): Handle DW_FORM_loclistx.
+       (skip_one_die): Handle DW_FORM_loclistx.
+       (loclist_header): New structure declaration.
+       * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
+
+2020-04-07  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
+       constructor.  Remove `addr` parameter from other constructor and
+       add `per_cu` parameter.
+       * dwarf2/read.c (create_partial_symtab): Update.
+
+2020-04-07  Tom de Vries  <tdevries@suse.de>
+
+       PR symtab/25796
+       * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
+       (partial_die_info::fixup): Inherit has_const_value.
+
+2020-04-07  Tom de Vries  <tdevries@suse.de>
+
+       * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
+       symbols without address.
+
+2020-04-06  Kamil Rytarowski  <n54@gmx.com>
+
+       * nbsd-nat.h (struct thread_info): Add forward declaration.
+       (nbsd_nat_target::thread_alive): Add.
+       (nbsd_nat_target::thread_name): Likewise.
+       (nbsd_nat_target::update_thread_list): Likewise.
+       (update_thread_list::post_attach): Likewise.
+       (post_attach::pid_to_str): Likewise.
+       * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
+       (nbsd_thread_lister): Add.
+       (nbsd_nat_target::thread_alive): Likewise.
+       (nbsd_nat_target::thread_name): Likewise.
+       (nbsd_add_threads): Likewise.
+       (update_thread_list::post_attach): Likewise.
+       (nbsd_nat_target::update_thread_list): Likewise.
+       (post_attach::pid_to_str): Likewise.
+
+2020-04-06  Tom Tromey  <tromey@adacore.com>
+
+       * ada-valprint.c (print_variant_part): Extract the variant field.
+       (print_field_values): Use the field as the outer value when
+       recursing.
+
+2020-04-06  Tom Tromey  <tromey@adacore.com>
+
+       * sh-nbsd-tdep.c: Include nbsd-tdep.h.
+       * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
+       * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
+       * arm-nbsd-tdep.c: Include nbsd-tdep.h.
+       * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
+
+2020-04-06  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
+       TYPE_CODE_ERROR.
+
+2020-04-06  Kamil Rytarowski  <n54@gmx.com>
+
+       * nbsd-tdep.c: Include "gdbarch.h".
+       Define enum with NetBSD signal numbers.
+       (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
+       * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
+       * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
+       * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
+       * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
+       * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
+       * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
+       * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
+       * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
+       * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
+       * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
+       * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
+
+2020-04-03  Hannes Domani  <ssbssa@yahoo.de>
+
+       PR gdb/25325
+       * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
+
+2020-04-03  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
+       Read constant block.
+
+2020-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * gdb_bfd.h: Include gdbsupport/byte-vector.h.
+       (gdb_bfd_get_full_section_contents): New declaration.
+       * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
+       * windows-tdep.c (is_linked_with_cygwin_dll): Use
+       gdb_bfd_get_full_section_contents.
+
+2020-04-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * exec.c (build_section_table): Replace internal_error with
+       gdb_assert.
+       (section_table_xfer_memory_partial): Likewise.
+       * mdebugread.c (parse_partial_symbols): Likewise.
+       * psymtab.c (lookup_partial_symbol): Likewise.
+       * utils.c (wrap_here): Likewise.
+
+2020-04-02  Tom Tromey  <tromey@adacore.com>
+
+       * f-lang.c (build_fortran_types): Use arch_type to initialize
+       builtin_complex_s32 in the TYPE_CODE_ERROR case.
+
+2020-04-02  Tom Tromey  <tromey@adacore.com>
+
+       * dwarf2/read.c (partial_die_info::read): Do not create a vector
+       of attributes.
+
+2020-04-02  Andrew Burgess  <andrew.burgess@embecosm.com>
+           Bernd Edlinger <bernd.edlinger@hotmail.de>
+           Tom Tromey  <tromey@adacore.com>
+
+       * buildsym.c (buildsym_compunit::record_line): Remove
+       deduplication code.
+
+2020-04-02  Tom de Vries  <tdevries@suse.de>
+
+       PR ada/24671
+       * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
+
+2020-04-02  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf2/read.c (dwarf2_gdb_index_functions,
+       dwarf2_debug_names_functions): Init lookup_global_symbol_language with
+       NULL.
+       * psymtab.c (psym_lookup_global_symbol_language): New function.
+       (psym_functions): Init psym_lookup_global_symbol_language with
+       psym_lookup_global_symbol_language.
+       * symfile-debug.c (debug_sym_quick_functions): Init
+       lookup_global_symbol_language with NULL.
+       * symfile.c (set_initial_language): Remove fixme comment.
+       * symfile.h (struct quick_symbol_functions): Add
+       lookup_global_symbol_language.
+       * symtab.c (find_quick_global_symbol_language): New function.
+       (find_main_name): Use find_quick_global_symbol_language.
+
+2020-04-01  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
+
+2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * buildsym.c (record_line): Fix undefined behavior and preserve
+       lines at eof.
+
+2020-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       * buildsym.c (record_line): Fix the resizing condition.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       * value.h (value_literal_complex): Add comment.
+       * valops.c (value_literal_complex): Refer to value.h.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
+       (scalar_type): New rule, from typebase.
+       (typebase): Use scalar_type.  Recognize complex types.
+       (field_name): Handle FLOAT_KEYWORD.
+       (ident_tokens): Add _Complex and __complex__.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       PR exp/25299:
+       * valarith.c (promotion_type, complex_binop): New functions.
+       (scalar_binop): Handle complex numbers.  Use promotion_type.
+       (value_pos, value_neg, value_complement): Handle complex numbers.
+
+2020-04-01  Tom Tromey  <tom@tromey.com>
+
+       * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
+       (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
+       (parse_number): Handle complex numbers.
+
 2020-04-01  Tom Tromey  <tom@tromey.com>
 
        * c-valprint.c (c_decorations): Change complex suffix to "i".
This page took 0.025089 seconds and 4 git commands to generate.