]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/ChangeLog
gdb/: Require a C++ compiler
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
index 005c3e976f301e3d618323e7a9b9c693018b0f11..9d46948c5c666ff7f3af94e3b189959ab95cd162 100644 (file)
@@ -1,3 +1,470 @@
+2016-09-05  Pedro Alves  <palves@redhat.com>
+
+       * NEWS: Mention that a C++ compiler is now required.
+       * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
+       (COMPILE.pre, CC_LD): Use CXX directly.
+       (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
+       * acinclude.m4: Don't include build-with-cxx.m4.
+       * build-with-cxx.m4: Delete file.
+       * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
+       * warning.m4: Assume $enable_build_with_cxx is yes.
+       * configure: Regenerate.
+
+2016-09-05  Pedro Alves  <palves@redhat.com>
+
+       PR backtrace/19927
+       * frame.c (get_frame_id): Compute the frame id if not computed
+       yet.
+       (unwind_to_current_frame): Delete.
+       (get_current_frame): Use get_prev_frame_always_1 to get the
+       current frame and assert that that always succeeds.
+       (get_prev_frame_if_no_cycle): Skip cycle detection if returning
+       the current frame.
+
+2016-09-02  Tom Tromey  <tom@tromey.com>
+
+       PR gdb/11616:
+       * dwarf2read.c (decode_locdesc): Handle DW_OP_form_tls_address.
+       * dwarf2loc.c (dwarf2_compile_expr_to_ax): Handle
+       DW_OP_form_tls_address.
+       (locexpr_describe_location_piece): Likewise.
+       * dwarf2expr.h (struct dwarf_expr_context_funcs): Update comment.
+       * dwarf2expr.c (execute_stack_op): Handle DW_OP_form_tls_address.
+       (ctx_no_get_tls_address): Mention DW_OP_form_tls_address.
+       * compile/compile-loc2c.c (struct insn_info): Update comment.
+       (compute_stack_depth_worker): Handle DW_OP_form_tls_address.
+
+2016-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * target.c (target_wait): Mention that the function's prototype
+       can be found at target/target.h.
+       * target.h (target_wait): Move prototype from here...
+       * target/target.h (target_wait): ... to here.
+
+2016-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * fork-child.c (startup_inferior): Replace calls to target_resume
+       by target_continue{,_no_signal}, depending on the case.
+       * linux-nat.c (cleanup_target_stop): Call
+       target_continue_no_signal instead of target_resume.
+       * procfs.c (procfs_wait): Likewise.
+       * target.c (target_continue): New function.
+       * target/target.h (target_continue): New prototype.
+
+2016-08-31  Yao Qi  <yao.qi@linaro.org>
+
+       * record-full.c (record_full_insert_breakpoint): Fix typo.
+
+2016-08-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * thread.c (tp_array_compar): Insert missing parentheses.
+
+2016-08-25  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Replace
+       designated initializer list by plain initializer list, for C++
+       compliance.
+
+2016-08-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       * aarch64-linux-nat.c (ps_get_thread_area): Remove const from
+       struct ps_prochandle.
+       * amd64-linux-nat.c (ps_get_thread_area): Likewise.
+       * arm-linux-nat.c (ps_get_thread_area): Likewise.
+       * gdb_proc_service.h (ps_get_thread_area): Likewise.
+       * i386-linux-nat.c (ps_get_thread_area): Likewise.
+       * m68klinux-nat.c (ps_get_thread_area): Likewise.
+       * mips-linux-nat.c (ps_get_thread_area): Likewise.
+       * nat/aarch64-linux.c (aarch64_ps_get_thread_area): Likewise.
+       * nat/aarch64-linux.h (aarch64_ps_get_thread_area): Likewise.
+       * xtensa-linux-nat.c (ps_get_thread_area): Likewise.
+
+2016-08-24  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * infcmd.c (set_inferior_io_terminal): Set inferior terminal to
+       NULL if terminal_name is an empty string.
+       (_initialize_infcmd): Make the argument of "set inferior-tty"
+       optional, mention it in the help doc.
+
+2016-08-24  Carl Love  <cel@us.ibm.com>
+
+       * rs6000-tdep.c (rs6000_gdbarch_init): Remove call
+       set_gdbarch_deprecated_fp_regnum() architecture
+       initialization function.
+
+2016-08-23  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * stack.c (parse_frame_specification): Fix typo in comment.
+
+2016-08-23  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/20494
+       * inflow.c (our_terminal_info, initial_gdb_ttystate): Update
+       comments.
+       (enum gdb_has_a_terminal_flag_enum, gdb_has_a_terminal_flag):
+       Delete.
+       (set_initial_gdb_ttystate): Record our_terminal_info here too,
+       instead of ...
+       (gdb_has_a_terminal): ... here.  Reimplement in terms of
+       initial_gdb_ttystate.  Make static.
+       * terminal.h (gdb_has_a_terminal): Delete declaration.
+       (set_initial_gdb_ttystate): Add comment.
+       * top.c (show_interactive_mode): Use input_interactive_p instead
+       of gdb_has_a_terminal.
+
+2016-08-22  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/20505
+       * linux-tdep.c (linux_vsyscall_range_raw): For core inferiors,
+       find the vDSO's start address with AT_SYSINFO_EHDR too, and
+       determine the vDSO's size by finding the PT_LOAD segment that
+       matches AT_SYSINFO_EHDR.
+
+2016-08-19  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-tdep.c (aarch64_analyze_prologue): Handle register
+       based STP instruction.
+
+2016-08-19  Yao Qi  <yao.qi@linaro.org>
+
+       * completer.c (linespec_location_completer): Make file_to_match
+       null-terminated.
+
+2016-08-19  Pedro Alves  <palves@redhat.com>
+
+       * amd64-tdep.c (amd64_relocate_instruction) <callq>: Handle return
+       addresses over 0x7fffffff.
+
+2016-08-18  Carl Love  <cel@us.ibm.com>
+
+       * MAINTANERS Write After Approval): Add "Carl Love".
+
+2016-08-18  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
+
+       * rs6000-tdep.c (ppc_process_record_op31): Handle HTM instructions.
+
+2016-08-17  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * inferior.c (remove_inferior_command): Fix error message.
+
+2016-08-17  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * inferior.c (exit_inferior_1): Remove comment.
+
+2016-08-15  Matthew Wahab  <matthew.wahab@arm.com>
+
+       PR gdb/20457
+       * gdb_proc_service.h: Add an include of gregset.h
+        [!HAVE_PROC_SERVICE_H]: Remove the include of gregset.h.
+
+2016-08-15  Yao Qi  <yao.qi@linaro.org>
+
+       * location.c (explicit_location_lex_one): Compare the return
+       value of strncmp with zero.  Don't check (*inp)[9].  Increment
+       *inp by 8.
+
+2016-08-11  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/20413
+       * nat/linux-ptrace.c: Include <sys/procfs.h> instead of
+       "gregset.h".
+
+2016-08-10  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/19187
+       * record-full.c (record_full_remove_breakpoint): Don't remove the
+       breakpoint from the record_full_breakpoints VEC if we're detaching
+       the breakpoint from a fork child.
+
+2016-08-10  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/19187
+       * break-catch-sig.c (signal_catchpoint_remove_location): Adjust
+       interface.
+       * break-catch-syscall.c (remove_catch_syscall):
+       * breakpoint.c (enum remove_bp_reason): Moved to breakpoint.h.
+       (remove_breakpoint_1): Pass 'reason' down.
+       (remove_catch_fork, remove_catch_vfork, remove_catch_solib)
+       (remove_catch_exec, remove_watchpoint, remove_masked_watchpoint)
+       (base_breakpoint_remove_location, bkpt_remove_location)
+       (bkpt_probe_remove_location, bkpt_probe_remove_location): Adjust
+       interface.
+       * breakpoint.h (enum remove_bp_reason): Moved here from
+       breakpoint.c.
+       (struct breakpoint_ops) <remove_location>: Add 'reason' parameter.
+       * corelow.c (core_remove_breakpoint): New function.
+       (init_core_ops): Install it as to_remove_breakpoint method.
+       * exec.c (exec_remove_breakpoint): New function.
+       (init_exec_ops): Install it as to_remove_breakpoint method.
+       * mem-break.c (memory_remove_breakpoint): Adjust interface.
+       * record-btrace.c (record_btrace_remove_breakpoint): Adjust
+       interface.
+       * record-full.c (record_full_remove_breakpoint)
+       (record_full_core_remove_breakpoint): Adjust interface.
+       * remote.c (remote_remove_breakpoint): Adjust interface.
+       * target-debug.h (target_debug_print_enum_remove_bp_reason): New
+       macro.
+       * target-delegates.c: Regenerate.
+       * target.c (target_remove_breakpoint): Add 'reason' parameter.
+       * target.h (struct target_ops) <to_remove_breakpoint>: Add
+       'reason' parameter.
+       (target_remove_breakpoint, memory_remove_breakpoint): Add 'reason'
+       parameter.
+
+2016-08-10  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/19187
+       * breakpoint.c (insertion_state_t): Delete.
+       (enum remove_bp_reason): New.
+       (detach_breakpoints, remove_breakpoint_1, remove_breakpoint):
+       Adjust to use enum remove_bp_reason instead of insertion_state_t.
+
+2016-08-10  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/19187
+       * breakpoint.c (remove_breakpoint): Remove 'is' parameter and
+       always pass mark_uninserted to remove_breakpoint_1.
+       (insert_breakpoint_locations, remove_breakpoints)
+       (remove_breakpoints_pid, update_global_location_list): Update
+       callers.
+
+2016-08-10  Руслан Ижбулатов  <lrn1986@gmail.com>
+           Pedro Alves  <palves@redhat.com>
+
+       * windows-nat.c (MS_VC_EXCEPTION): New define.
+       (handle_exception_result): New enum.
+       (windows_delete_thread): Free the thread's name.
+       (handle_exception): Handle MS_VC_EXCEPTION.
+       (get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
+       (windows_thread_name): New function.
+       (windows_target): Install it as to_thread_name method.
+       * NEWS: Mention the thread naming support on MS-Windows.
+
+2016-08-10  Pedro Alves  <palves@redhat.com>
+
+       * common/signals-state-save-restore.c
+       (save_original_signals_state, restore_original_signals_state):
+       Wrap perror_with_name arguments with '()'.
+
+2016-08-09  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/20418
+       * event-top.c (ui_register_input_event_handler)
+       (ui_unregister_input_event_handler): New functions.
+       (async_enable_stdin): Register input in the event loop.
+       (async_disable_stdin): Unregister input from the event loop.
+       (gdb_setup_readline): Register input in the event loop.
+       * infrun.c (check_curr_ui_sync_execution_done): Register input in
+       the event loop.
+       * target.c (target_terminal_inferior): Don't unregister input from
+       the event loop.
+       (target_terminal_ours): Don't register input in the event loop.
+       * target.h (target_terminal_inferior)
+       (target_terminal_ours_for_output, target_terminal_ours): Update
+       comments.
+       * top.h (ui_register_input_event_handler)
+       (ui_unregister_input_event_handler): New declarations.
+       * utils.c (ui_unregister_input_event_handler_cleanup)
+       (prepare_to_handle_input): New functions.
+       (defaulted_query, prompt_for_continue): Use
+       prepare_to_handle_input.
+
+2016-08-09  Pedro Alves  <palves@redhat.com>
+
+       PR mi/20431
+       * mi/mi-main.c (mi_execute_command): Enable input and set prompt
+       state to PROMPT_NEEDED.
+
+2016-08-09  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/18653
+       * Makefile.in (SFILES): Add
+       common/signals-state-save-restore.c.
+       (HFILES_NO_SRCDIR): Add common/signals-state-save-restore.h.
+       (COMMON_OBS): Add signals-state-save-restore.o.
+       (signals-state-save-restore.o): New rule.
+       * configure: Regenerate.
+       * fork-child.c: Include "signals-state-save-restore.h".
+       (fork_inferior): Call restore_original_signals_state.
+       * main.c: Include "signals-state-save-restore.h".
+       (captured_main): Call save_original_signals_state.
+       * common/common.m4: Add sigaction to AC_CHECK_FUNCS checks.
+       * common/signals-state-save-restore.c: New file.
+       * common/signals-state-save-restore.h: New file.
+
+2016-08-09  Pedro Alves  <palves@redhat.com>
+
+       * value.c (unpack_value_bitfield): Skip unpacking if the parent
+       has no contents buffer to begin with.
+
+2016-08-08  Pedro Alves  <palves@redhat.com>
+
+       * features/i386/amd64-avx-mpx-linux.c: Regenerate.
+       * features/i386/amd64-avx-mpx.c: Regenerate.
+       * features/i386/i386-avx-mpx-linux.c: Regenerate.
+       * features/i386/i386-avx-mpx.c: Regenerate.
+
+2016-08-05  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * event-top.h (cli_command_loop): Remove.
+
+2016-08-05  Pedro Alves  <palves@redhat.com>
+
+       PR remote/20398
+       * remote-fileio.c (remote_fileio_quit_handler): Check the quit
+       flag before calling quit.
+
+2016-08-05  Pedro Alves  <palves@redhat.com>
+
+       * NEWS: Mention that GDB and GDBserver build with a C++ compiler
+       by default.
+
+2016-08-05  Pedro Alves  <palves@redhat.com>
+
+       * build-with-cxx.m4: Change help string to be in terms of
+       --disable-build-with-cxx.
+       * configure: Regenerate.
+
+2016-08-04  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (tdesc_arm_with_vfpv3): Remove the
+       declaration.
+       (aarch64_linux_read_description): Remove code on getting
+       auxv and select target description on it.  Select target
+       description by the result of NT_ARM_VFP ptrace request.
+
+2016-08-03  Tom Tromey  <tom@tromey.com>
+
+       PR python/18565:
+       * python/py-frame.c (frapy_function): Use find_frame_funname.
+
+2016-08-03  Tom Tromey  <tom@tromey.com>
+
+       * stack.c (find_frame_funname): Avoid any possible leak in case
+       cp_remove_params can throw.
+
+2016-08-03  Tom Tromey  <tom@tromey.com>
+
+       * NEWS: Mention new Python breakpoint events.
+
+2016-08-02  Tom Tromey  <tom@tromey.com>
+
+       * MAINTAINERS (Core): Add self as Rust maintainer.
+
+2016-08-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Create a new section for the next release branch.
+       Rename the section of the current branch, now that it has
+       been cut.
+
+2016-08-01  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 7.12 branch created (41bfcd638a4e0e48b96ce4de2845372dea481322):
+       * version.in: Bump version to 7.12.50.DATE-git.
+
+2016-07-27  Alan Modra  <amodra@gmail.com>
+
+       * amd64-darwin-tdep.c: Don't include libbfd.h.
+       * i386-darwin-tdep.c: Likewise.
+       * rs6000-nat.c: Likewise.
+       * rs6000-tdep.c: Likewise.
+
+2016-07-26  Tom Tromey  <tom@tromey.com>
+
+       * symtab.c (register_symbol_computed_impl): Update.
+       PR python/20190:
+       * value.h (symbol_read_needs): Declare.
+       (symbol_read_needs_frame): Add comment.
+       * symtab.h (struct symbol_computed_ops) <read_variable>: Update
+       comment.
+       <get_symbol_read_needs>: Rename.  Change return type.
+       * findvar.c (symbol_read_needs): New function.
+       (symbol_read_needs_frame): Rewrite.
+       (default_read_var_value): Use symbol_read_needs.
+       * dwarf2loc.c (struct symbol_needs_baton): Rename.
+       <needs>: Renamed from needs_frame.  Changed type.
+       (needs_frame_read_addr_from_reg, symbol_needs_get_reg_value)
+       (symbol_needs_read_mem, symbol_needs_frame_base)
+       (symbol_needs_frame_cfa, symbol_needs_tls_address)
+       (symbol_needs_dwarf_call): Rename.
+       (needs_dwarf_reg_entry_value): Update.
+       (symbol_needs_ctx_funcs, dwarf2_loc_desc_get_symbol_read_needs):
+       Rename and update.
+       (locexpr_get_symbol_read_needs, loclist_symbol_needs): Likewise.
+       (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
+       * defs.h (enum symbol_needs_kind): New.
+
+2016-07-26  Pedro Alves  <palves@redhat.com>
+
+       * nat/linux-ptrace.c: Include "gregset.h".
+       (linux_ptrace_test_ret_to_nx): Use PTRACE_GETREGS instead of
+       PTRACE_PEEKUSER.
+
+2016-07-26  Pedro Alves  <palves@redhat.com>
+
+       * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Rename 'native'
+       parameter to 'ptrace'.
+       * nat/amd64-linux-siginfo.c (GDB_SI_SIZE): New define.
+       (nat_uptr_t): New an unsigned long.
+       (nat_clock_t): Remove attribute __aligned__.
+       (struct nat_timeval): Delete.
+       (nat_siginfo_t): Remove attribute __aligned__.
+       (ptrace_siginfo_t): Define.
+       (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
+       (compat_x32_siginfo_from_siginfo)
+       (siginfo_from_compat_x32_siginfo): Make 'from' parameter const.
+       Convert through a ptrace_siginfo_t instead of a nat_siginfo_t.
+       Remove casts.
+       (amd64_linux_siginfo_fixup_common): Rename 'native' parameter to
+       'ptrace'.  Remove static assertions.
+       (top level): New static assertions.
+
+2016-07-25  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * top.h (make_delete_ui_cleanup): New declaration.
+       * top.c (delete_ui_cleanup): New function.
+       (make_delete_ui_cleanup): New function.
+       (new_ui_command): Create restore_ui cleanup earlier, create a
+       delete_ui cleanup and discard it on success.
+
+2016-07-25  Pedro Alves  <palves@redhat.com>
+           Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * nat/linux-procfs.c (parse_proc_status_state): Handle lowercase
+       't'.
+
+2016-07-25  Pedro Alves  <palves@redhat.com>
+
+       * nat/linux-procfs.c (enum proc_state): New enum.
+       (parse_proc_status_state): New function.
+       (linux_proc_pid_get_state): Replace output string buffer parameter
+       with an output proc_state parameter.  Use parse_proc_status_state.
+       (linux_proc_pid_is_gone): Adjust to use proc_state values.
+       (linux_proc_pid_has_state): Change type of 'state' parameter; now
+       an enum proc_state.  Adjust to linux_proc_pid_get_state interface
+       change.
+       (linux_proc_pid_is_stopped)
+       (linux_proc_pid_is_trace_stopped_nowarn)
+       (linux_proc_pid_is_zombie_maybe_warn): Adjust to
+       linux_proc_pid_get_state interface change.
+
+2016-07-25  Tim Wiederhake  <tim.wiederhake@intel.com>
+
+       * MAINTAINERS (Write After Approval): Add Tim Wiederhake
+
+2016-07-25  Tim Wiederhake  <tim.wiederhake@intel.com>
+
+       * NEWS: Resume btrace on reconnect.
+       * record-btrace.c: Added record-btrace.h include.
+       (record_btrace_open): Split into this and ...
+       (record_btrace_push_target): ... this.
+       (record_btrace_disconnect): New function.
+       (init_record_btrace_ops): Use record_btrace_disconnect.
+       * record-btrace.h: New file.
+       * remote.c: Added record-btrace.h include.
+       (remote_start_remote): Check recording status.
+       (remote_btrace_maybe_reopen): New function.
+
 2016-07-23  Gabriel Krisman Bertazi  <gabriel@krisman.be>
 
        * xml-syscall.c (get_syscalls_by_group): New.