Fix breakpoints on file reloads for PIE binaries
[external/binutils.git] / gdb / ChangeLog
index ca6b7d0..f101a27 100644 (file)
@@ -1,3 +1,537 @@
+2019-08-04  Alan Hayward  <alan.hayward@arm.com>
+
+       * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
+
+2019-05-29  Tom Tromey  <tromey@adacore.com>
+
+       PR c++/20020:
+       * cp-valprint.c (cp_print_value_fields): Call
+       cp_print_static_field inside "try".
+
+2019-06-10  Tom de Vries  <tdevries@suse.de>
+
+       PR symtab/24545
+       * symtab.c (struct demangled_name_entry): Add language field.
+       (symbol_set_names):  Revert "[gdb/symtab] Fix language of duplicate
+       static minimal symbol".  Set and use language field.
+
+2019-04-10  Kevin Buettner  <kevinb@redhat.com>
+
+       PR gdb/24592
+       * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
+       function.
+       (fill_gregset): Call amd64_linux_collect_native_gregset instead
+       of amd64_collect_native_gregset.
+       (amd64_linux_nat_target::store_registers): Likewise.
+
+2019-05-11  Joel Brobecker  <brobecker@adacore.com>
+
+       * version.in: Set GDB version number to 8.3.0.DATE-git.
+
+2019-05-11  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 8.3 released.
+
+2019-05-11  Joel Brobecker  <brobecker@adacore.com>
+
+       * version.in: Set GDB version number to 8.3.
+
+2019-05-08  Tom Tromey  <tromey@adacore.com>
+
+       * utils.c (fputs_maybe_filtered): Reset style after paging, even
+       when no wrap column is set.
+
+2019-05-04  Tom Tromey  <tom@tromey.com>
+
+       * psymtab.c (psymbol_name_matches, match_partial_symbol)
+       (lookup_partial_symbol, print_partial_symbols)
+       (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
+       (psymbol_compare): Update.
+       (add_psymbol_to_bcache): Clear the entire psymbol.
+       (maintenance_check_psymtabs): Update.
+       * psympriv.h (struct partial_symbol): Don't derive from
+       general_symbol_info.
+       <obj_section, unrelocated_address, address,
+       set_unrelocated_address>: Update.
+       <ginfo>: New member.
+       * dwarf-index-write.c (write_psymbols, debug_names::insert)
+       (debug_names::write_psymbols): Update.
+
+2019-05-03  Eli Zaretskii  <eliz@gnu.org>
+
+       * windows-nat.c [_WIN32_WINNT]: Define _WIN32_WINNT to Windows XP
+       level, so that various Windows header files expose the necessary
+       declarations and definitions.
+
+       * symfile.c (find_separate_debug_file): Remove colon from the
+       drive spec of DOS/Windows file names of the target, so that the
+       file name produced from DEBUGDIR and the target's directory will
+       be valid on DOS/Windows systems.
+
+2019-04-30  Joel Brobecker  <brobecker@adacore.com>
+
+       * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
+       Use current_event.dwThreadId instead of main_thread_id.
+
+2019-04-30  Tom Tromey  <tromey@adacore.com>
+
+       PR c++/24470:
+       * dwarf2read.c (process_structure_scope): Handle case where type
+       has template parameters but no symbol was created.
+
+2019-04-19  Sergei Trofimovich <siarheit@google.com>
+
+       * configure.ac: add --enable-source-highlight switch.
+       * configure: Regenerate.
+       * top.c (print_gdb_version): plumb --enable-source-highlight
+       status to "show configuration".
+
+2019-04-19  Ilya Yu. Malakhov  <malakhov@mcst.ru>
+
+       PR symtab/24423:
+       * source.c (print_source_lines_base): Advance "iter" when a
+       control character is seen.
+
+2019-04-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * inferior.h (struct infcall_suspend_state_deleter):
+       Catch exception in destructor to avoid crash.
+
+2019-04-12  Eli Zaretskii  <eliz@gnu.org>
+
+       * utils.c (prompt_for_continue): Don't restore the styling at the
+       end, as applied_style has the wrong value.  This fixes styling in
+       long lists of file names that are interrupted by the "Continue?"
+       prompt.
+
+2019-03-26  Joel Brobecker  <brobecker@adacore.com>
+
+       * version.in: Set GDB version number to 8.2.91.DATE-git.
+
+2019-03-26  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 8.2.91 released.
+
+2019-03-26  Joel Brobecker  <brobecker@adacore.com>
+
+       * version.in: Set GDB version number to 8.2.91.
+
+2019-03-20  Tom Tromey  <tromey@adacore.com>
+
+       PR gdb/24391
+       * infrun.c (handle_inferior_event): Rename from
+       handle_inferior_event_1.  Create a scoped_value_mark.
+       (handle_inferior_event): Remove.
+
+2019-03-25  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * source-cache.c (source_cache::get_source_lines): Re-read
+       fullname after calling open_source_file.
+
+2019-03-18  Pedro Alves  <palves@redhat.com>
+           Eli Zaretskii <eliz@gnu.org>
+
+       * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
+       m_line and m_start_of_line.
+
+2019-03-18  Eli Zaretskii  <eliz@gnu.org>
+
+       * tui/tui-io.c (gdb_wgetch): Don't echo CR.
+       (tui_getc): When gdb_wgetch returns a CR, behave the same as when
+       it returns a newline.  This fixes a regression in TU mode, whereby
+       the next line is output on the same screen line as the user input.
+
+2019-03-18  Pedro Alves  <palves@redhat.com>
+
+       * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
+       New globals.
+       (apply_style): New, factored out from ...
+       (apply_ansi_escape): ... this.  Handle reverse video mode.
+       (tui_set_reverse_mode): New function.
+       * tui/tui-io.h (tui_set_reverse_mode): New declaration.
+       * tui/tui-winsource.c (tui_show_source_line): Use
+       tui_set_reverse_mode instead of setting A_STANDOUT.
+       * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
+       New setter methods.
+
+2019-03-18  Hannes Domani  <ssbssa@yahoo.de>
+
+       * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
+       Handle tabs.
+
+2019-03-17  Eli Zaretskii  <eliz@gnu.org>
+
+       * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
+       tui_refill_source_window instead of tui_refresh_win, to update the
+       current execution line.  This fixes redisplay of the current line
+       when stepping through the code with "next" or "step".
+
+2019-03-16  Eli Zaretskii  <eliz@gnu.org>
+
+       * source-cache.c (source_cache::get_source_lines): Call
+       find_source_lines to initialize s->nlines.  This fixes vertical
+       scrolling of TUI source window when the DOWN arrow is pressed.
+
+2019-03-16  Eli Zaretskii  <eliz@gnu.org>
+
+       * tui/tui-winsource.c (tui_show_source_line): Revert "Use
+       wclrtoeol in tui_show_source_line".  This reverts changes made in
+       commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
+
+2019-03-12  John Baldwin  <jhb@FreeBSD.org>
+
+       * NEWS: Combine separate "New targets" sections for 8.3.
+
+2019-03-14  Eli Zaretskii  <eliz@gnu.org>
+
+       The MS-Windows port of ncurses fails to switch to a color pair if
+       one or both of the colors are the implicit default colors.  This
+       change records the default colors when TUI is initialized, and
+       then specifies them explicitly when a color pair uses the default
+       colors.  This allows color styling in TUI mode on MS-Windows.
+
+       * tui/tui-io.c [__MINGW32__]: Include windows.h.  Declare
+       ncurses_norm_attr.
+       (tui_initialize_io) [__MINGW32__]: Record the default terminal
+       colors in ncurses_norm_attr.
+       (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
+       "none", replace it with the default color recorded in
+       ncurses_norm_attr.
+
+2019-03-14  Tom Tromey  <tromey@adacore.com>
+
+       * source-cache.h (class source_cache) <get_source_lines>: Return
+       std::string.
+       * source-cache.c (source_cache::extract_lines): Handle case where
+       first_pos==npos.  Return std::string.
+       (source_cache::get_source_lines): Update.
+
+2019-03-14  Tom Tromey  <tromey@adacore.com>
+
+       * NEWS: Add item for "style sources" commands.
+       * source-cache.c (source_cache::get_source_lines): Check
+       source_styling.
+       * cli/cli-style.c (source_styling): New global.
+       (_initialize_cli_style): Add "style sources" commands.
+       (show_style_sources): New function.
+       * cli/cli-style.h (source_styling): Declare.
+
+2019-03-14  Pedro Alves  <palves@redhat.com>
+           Tom Tromey  <tromey@adacore.com>
+
+       * tui/tui-winsource.h (tui_refill_source_window): Declare.
+       * tui/tui-winsource.c (tui_refill_source_window): New function,
+       from...
+       (tui_horizontal_source_scroll): ... here.  Move some logic.
+       * cli/cli-style.c (set_style_enabled): Notify new observable.
+       * tui/tui-hooks.c (tui_redisplay_source): New function.
+       (tui_attach_detach_observers): Attach or detach
+       tui_redisplay_source.
+       * observable.h (source_styling_changed): New observable.
+       * observable.c: Define source_styling_changed observable.
+
+2019-03-12  Eli Zaretskii  <eliz@gnu.org>
+
+       PR/24325
+       * source-cache.c: #undef open and close, to avoid unresolved
+       externals during linking.
+
+2019-03-08  Eli Zaretskii  <eliz@gnu.org>
+
+       Support styling on native MS-Windows console
+
+       PR/24315
+       * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
+       on MS-Windows if $TERM is not defined.
+
+       * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
+
+       * posix-hdep.c (gdb_console_fputs):
+       * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
+       functions.
+       * ui-file.h (gdb_console_fputs): Add prototype.
+
+       * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
+       back to fputs only if the former returns zero.
+
+2019-03-07  Brian Vandenberg  <phantall@gmail.com>
+           Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       PR gdb/8527
+       * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
+       set_sigint_trap, clear_sigint_trap.
+
+2019-03-02  Eli Zaretskii  <eliz@gnu.org>
+
+       * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
+       for-loop range, to avoid compiler warnings.
+
+       * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
+       avoid compiler warnings about unused variables.
+
+2019-03-02  Eli Zaretskii  <eliz@gnu.org>
+
+       * NEWS: Mention end of support for native debugging on MS-Windows
+       before XP.
+
+2019-03-02  Eli Zaretskii  <eliz@gnu.org>
+
+       PR gdb/24292
+       * common/netstuff.c:
+       * gdbserver/gdbreplay.c
+       * gdbserver/remote-utils.c:
+       * ser-tcp.c:
+       * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
+       Include ws2tcpip.h instead of wsiapi.h and winsock2.h.  Redefine
+       _WIN32_WINNT to 0x0501 if defined to a smaller value, as
+       'getaddrinfo' and 'freeaddrinfo' were not available before
+       Windows XP, and mingw.org's MinGW headers by default define
+       _WIN32_WINNT to 0x500.
+
+2019-02-27  Kevin Buettner  <kevinb@redhat.com>
+    
+       * NEWS: Note minimum Python version.
+
+2019-02-27  Joel Brobecker  <brobecker@adacore.com>
+
+       * version.in: Set GDB version number to 8.2.90.DATE-git.
+
+2019-02-27  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 8.2.90 released.
+
+2019-02-27  Joel Brobecker  <brobecker@adacore.com>
+
+       * version.in: Set GDB version number to 8.2.90.
+
+2019-02-27  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Change "Changes since GDB 8.2" into "Changes in GDB 8.3".
+
+2019-02-27  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
+       * version.in: Bump version to 8.2.90.DATE-git.
+
+2019-02-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * aix-thread.c (ptid_cmp): Remove unused variable.
+       (get_signaled_thread): Likewise.
+       (store_regs_user_thread): Likewise.
+       (store_regs_kernel_thread): Likewise.
+       (fetch_regs_kernel_thread): Remove shadowed variable.
+
+2019-02-26  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * features/riscv/32bit-cpu.xml: Add register numbers.
+       * features/riscv/32bit-fpu.c: Regenerate.
+       * features/riscv/32bit-fpu.xml: Add register numbers.
+       * features/riscv/64bit-cpu.xml: Add register numbers.
+       * features/riscv/64bit-fpu.c: Regenerate.
+       * features/riscv/64bit-fpu.xml: Add register numbers.
+
+2019-02-26  Kevin Buettner  <kevinb@redhat.com>
+
+       * NEWS: Mention two argument form of gdb.Value constructor.
+       * python/py-value.c (convert_buffer_and_type_to_value): New
+       function.
+       (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
+       Add support for handling an optional second argument.  Call
+       convert_buffer_and_type_to_value as appropriate.
+       * python/python-internal.h (Py_buffer_deleter): New struct.
+       (Py_buffer_up): New typedef.
+
+2019-02-25  John Baldwin  <jhb@FreeBSD.org>
+
+       * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
+       instead of releasing ownership.
+
+2019-02-25  Jordan Rupprecht  <rupprecht@google.com>
+
+       * dwarf2read.c (open_and_init_dwp_file): Call
+       elf_numsections instead of bfd_count_sections to initialize
+       dwp_file->num_sections.
+
+2019-02-25  Tom Tromey  <tromey@adacore.com>
+
+       * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
+
+2019-02-23  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * gcore.in: Add '--readnever' option when invoking GDB.
+
+2019-02-22  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * MAINTAINERS: Update my email address.
+
+2019-02-22  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * build-id.c (build_id_to_debug_bfd_1): New function.
+       (build_id_to_debug_bfd): Look for separate debug file in
+       sysroot.
+
+2019-02-22  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdbarch.sh: Update the copyright year range that is placed into
+       generated files.
+
+2019-02-22  Keith Seitz  <keiths@redhat.com>
+
+       PR symtab/23853
+       * linespec.c (create_sals_line_offset): Search for the default
+       symtab's filename instead of its fullname.
+
+2019-02-21  Alan Hayward  <alan.hayward@arm.com>
+
+       * NEWS: Update style defaults.
+
+2019-02-21  Alan Hayward  <alan.hayward@arm.com>
+
+       * main.c (captured_main_1): Disable styling in batch mode.
+
+2019-02-20  Tom Tromey  <tom@tromey.com>
+
+       * symtab.c (symtab_symbol_info): Fix typos.
+
+2019-02-20  Tom Tromey  <tromey@adacore.com>
+
+       * findcmd.c (_initialize_mem_search): Use upper case for
+       metasyntactic variables.
+
+2019-02-20  Alan Hayward  <alan.hayward@arm.com>
+
+       * aarch64-tdep.c (aarch64_add_reggroups): New function.
+       (aarch64_gdbarch_init): Call aarch64_add_reggroups.
+
+2019-02-19  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * top.h (source_file_name): Change to std::string.
+       * top.c (source_file_name): Likewise.
+       (command_line_input): Adjust.
+       * cli/cli-script.c (script_from_file): Adjust.
+
+2019-02-19  Tom Tromey  <tromey@adacore.com>
+
+       * ravenscar-thread.c
+       (ravenscar_thread_target::update_thread_list): Don't call
+       ada_build_task_list.
+       * ada-lang.h (ada_build_task_list): Don't declare.
+       * ada-tasks.c (struct ada_tasks_inferior_data)
+       <task_list_valid_p>: Now bool.
+       (read_known_tasks, ada_task_list_changed)
+       (ada_tasks_invalidate_inferior_data): Update.
+       (read_known_tasks_array): Return bool.
+       (read_known_tasks_list): Likewise.
+       (read_known_tasks): Return void.
+       (ada_build_task_list): Now static.
+
+2019-02-18  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
+       and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
+
+2019-02-18  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
+       variant for ada_tasks_pspace_data_handle and
+       ada_tasks_inferior_data_handle.
+       (ada_tasks_pspace_data_cleanup): New function.
+       (ada_tasks_inferior_data_cleanup): New function.
+
+2019-02-17  Tom Tromey  <tom@tromey.com>
+
+       * macrotab.h (macro_source_fullname): Return a std::string.
+       * macrotab.c (macro_include, check_for_redefinition)
+       (macro_undef, macro_lookup_definition, foreach_macro)
+       (foreach_macro_in_scope): Update.
+       (macro_source_fullname): Return a std::string.
+       * macrocmd.c (show_pp_source_pos): Update.
+
+2019-02-17  Tom Tromey  <tom@tromey.com>
+
+       * macrocmd.c (show_pp_source_pos): Style the file names.
+
+2019-02-17  Tom Tromey  <tom@tromey.com>
+
+       PR tui/24197:
+       * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
+
+2019-02-17  Tom Tromey  <tom@tromey.com>
+
+       * ada-lang.c (user_select_syms): Use filtered printing.
+       * utils.c (wrap_style): New global.
+       (desired_style): Remove.
+       (emit_style_escape): Add stream parameter.
+       (set_output_style, reset_terminal_style, prompt_for_continue):
+       Update.
+       (flush_wrap_buffer): Only flush gdb_stdout.
+       (wrap_here): Set wrap_style.
+       (fputs_maybe_filtered): Clear the wrap buffer on exception.  Don't
+       treat escape sequences as a character.  Change when wrap buffer is
+       flushed.
+       (fputs_styled): Do not set the output style when the default is
+       requested.
+       * ui-style.h (struct ui_file_style) <is_default>: New method.
+       * source.c (print_source_lines_base): Emit escape sequences in one
+       piece.
+
+2019-02-17  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
+       integers and enumeration types.
+
+2019-02-17  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
+       instead of lookup_symbol_in_language
+       (do_exact_match): New function.
+       (ada_get_symbol_name_matcher): Return do_exact_match when
+       doing a verbatim match.
+
+2019-02-15  Tom Tromey  <tromey@adacore.com>
+
+       * ravenscar-thread.c (ravenscar_thread_target::resume)
+       (ravenscar_thread_target::wait): Special case wildcard requests.
+
+2019-02-15  Tom Tromey  <tromey@adacore.com>
+
+       * ravenscar-thread.c (base_ptid): Remove.
+       (struct ravenscar_thread_target) <close>: New method.
+       <m_base_ptid>: New member.
+       <update_inferior_ptid, active_task, task_is_currently_active,
+       runtime_initialized>: Declare methods.
+       <ravenscar_thread_target>: Add constructor.
+       (ravenscar_thread_target::task_is_currently_active)
+       (ravenscar_thread_target::update_inferior_ptid)
+       (ravenscar_runtime_initialized): Rename.  Now methods.
+       (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
+       (ravenscar_thread_target::update_thread_list): Update.
+       (ravenscar_thread_target::active_task): Now method.
+       (ravenscar_thread_target::store_registers)
+       (ravenscar_thread_target::prepare_to_store)
+       (ravenscar_thread_target::prepare_to_store)
+       (ravenscar_thread_target::mourn_inferior): Update.
+       (ravenscar_inferior_created): Use "new" to create target.
+       (ravenscar_thread_target::get_ada_task_ptid): Update.
+       (_initialize_ravenscar): Don't initialize base_ptid.
+       (ravenscar_ops): Remove global.
+
+2019-02-15  Tom Tromey  <tromey@adacore.com>
+
+       * target.h (push_target): Declare new overload.
+       * target.c (push_target): New overload, taking an rvalue reference.
+       * remote.c (remote_target::open_1): Use push_target overload.
+       * corelow.c (core_target_open): Use push_target overload.
+
+2019-02-15  Tom Tromey  <tromey@adacore.com>
+
+       * ravenscar-thread.c (is_ravenscar_task)
+       (ravenscar_task_is_currently_active): Return bool.
+       (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
+       (_initialize_ravenscar): Remove "(void)".
+       (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
+       Return bool.
+
 2019-02-15  Tom Tromey  <tromey@adacore.com>
 
        * ravenscar-thread.c (ravenscar_runtime_initializer)