X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=ad074c36763a75bdb1993840f336ad5a84d113b1;hb=e8ffc436d9d849eed52af64568d9f37aeaddbd9e;hp=9934346cf22de245a296f10d00fd4eaa75036568;hpb=cf424aef0af89903abdd6c4e055684929e4990af;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9934346cf2..ad074c3676 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,997 @@ +2015-03-20 Yao Qi + + * aarch64-tdep.c (aarch64_gdbarch_init): Don't call + set_gdbarch_cannot_step_breakpoint. + +2015-03-19 Pedro Alves + + * linux-nat.c (linux_resume_one_lwp): Rename to ... + (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here, + instead call perror_with_name. + (check_ptrace_stopped_lwp_gone): New function. + (linux_resume_one_lwp): Reimplement as wrapper around + linux_resume_one_lwp_throw that swallows errors if the LWP is + gone. + (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and + swallows errors if the LWP is gone. Use + linux_resume_one_lwp_throw instead of linux_resume_one_lwp. + +2015-03-19 Pedro Alves + + * linux-nat.c (status_callback): Return early if the LWP has no + status pending. + +2015-03-19 Pedro Alves + + * linux-nat.c (select_event_lwp_callback): Update comment to no + longer mention SIGTRAP. + +2015-03-18 Tristan Gingold + + * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move + redirection code to ... + (amd64_windows_frame_decode_insns): ... Here. Fix in prologue + checks. Fix SAVE_NONVOL operations. Add debug code and comments. + +2015-03-18 Gary Benson + + (remote_protocol_features): Remove the "vFile:fstat" feature. + (remote_hostio_fstat): Probe for "vFile:fstat" support. + +2015-03-11 Yao Qi + + PR tdep/18107 + * aarch64-linux-tdep.c: Include xml-syscall.h + (aarch64_linux_get_syscall_number): New function. + (aarch64_linux_init_abi): Call + set_gdbarch_get_syscall_number. + * syscalls/aarch64-linux.xml: New file. + +2015-03-17 Yurij Grechishhev + + * ser-base.h (ser_base_setstopbits): Change second argument name + from "rate" to "num". + +2015-03-17 Gary Benson + Luke Allardyce + + PR gdb/18131 + * common/common-remote-fileio.h (sys/stat.h): New include. + (stuct stat): Remove forward declaration. + +2015-03-16 John Baldwin + + * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers + before writing core register notes. + +2015-03-16 Yuanhui Zhang + Pedro Alves + + * gdb_curses.h (tgetnum): Mark with EXTERN_C. + * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs) + (tgoto): Wrap with extern "C". + +2015-03-16 Pedro Alves + Yuanhui Zhang + + * stub-termcap.c (tputs): Change prototype. + +2015-03-16 Yuanhui Zhang + Pedro Alves + + * windows-nat.c (struct thread_info_struct): Rename to ... + (struct windows_thread_info_struct): ... this. + (thread_info): Rename to ... + (windows_thread_info): ... this. + All users updated. + +2015-03-14 Jan Kratochvil + Pedro Alves + + * NEWS: New Removed targets and native configurations. + +2015-03-13 Jan Kratochvil + + Remove HPUX. + * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o. + (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o. + (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and + ia64-hpux-tdep.h, solib-ia64-hpux.h. + (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c, + ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c. + * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and + hppa-hpux-tdep.c. + * config/ia64/hpux.mh: Remove file. + * config/pa/hpux.mh: Remove file. + * configure: Rebuilt. + * configure.ac (dlgetmodinfo, somread.o): Remove. + * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete. + (ia64-*-hpux*): Remove its float format exception. + * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete. + * hppa-hpux-nat.c: Remove file. + * hppa-hpux-tdep.c: Remove file. + * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private): + Move them here from hppa-tdep.h + (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static. + (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception. + * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private): + Move them to hppa-tdep.c. + (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove + declarations. + * ia64-hpux-nat.c: Remove file. + * ia64-hpux-tdep.c: Remove file. + * ia64-hpux-tdep.h: Remove file. + * inf-ttrace.c: Remove file. + * inf-ttrace.h: Remove file. + * solib-ia64-hpux.c: Remove file. + * solib-ia64-hpux.h: Remove file. + * solib-pa64.c: Remove file. + * solib-pa64.h: Remove file. + * solib-som.c: Remove file. + * solib-som.h: Remove file. + * somread.c: Remove file. + +2015-03-13 John Baldwin + + * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util). + * config.in: Regenerate. + * configure: Regenerate. + * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't + define. + (fbsd_find_memory_regions): Use kinfo_getvmmap to + enumerate memory regions if present. + +2015-03-13 John Baldwin + + * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes. + * i386fbsd-tdep.c: Fix style in various gdb_static_assert + expressions. + (i386fbsd_sigtramp_p): Likewise. + +2015-03-12 John Baldwin + + * MAINTAINERS (Write After Approval): Add John Baldwin. + +2015-03-12 Gary Benson + + * solib.c (_initialize_solib): Make "set/show sysroot" use + add_setshow_optional_filename_cmd so it can be restored to + empty after being set. + +2015-03-11 Sergio Durigan Junior + + * Makefile.in (SFILES): New source break-catch-syscall.c. + (COMMON_OBS): New object break-catch-syscall.o. + * break-catch-syscall.c: New file. + * breakpoint.c: Remove inclusion of "xml-syscall.h". + (syscall_catchpoint_p): Move declaration to break-catch-syscall.c + (struct syscall_catchpoint): Likewise. + (dtor_catch_syscall): Likewise. + (catch_syscall_inferior_data): Likewise. + (struct catch_syscall_inferior_data): Likewise. + (get_catch_syscall_inferior_data): Likewise. + (catch_syscall_inferior_data_cleanup): Likewise. + (insert_catch_syscall): Likewise. + (remove_catch_syscall): Likewise. + (breakpoint_hit_catch_syscall): Likewise. + (print_it_catch_syscall): Likewise. + (print_one_catch_syscall): Likewise. + (print_mention_catch_syscall): Likewise. + (print_recreate_catch_syscall): Likewise. + (catch_syscall_breakpoint_ops): Likewise. + (syscall_catchpoint_p): Likewise. + (create_syscall_event_catchpoint): Likewise. + (catch_syscall_split_args): Likewise. + (catch_syscall_command_1): Likewise. + (is_syscall_catchpoint_enabled): Likewise. + (catch_syscall_enabled): Likewise. + (catching_syscall_number): Likewise. + (catch_syscall_completer): Likewise. + (clear_syscall_counts): Likewise. + (initialize_breakpoint_ops): Move initialization of syscall + catchpoints to break-catch-syscall.c. + (_initialize_breakpoint): Move code related to syscall catchpoints + to break-catch-syscall.c. + +2015-03-11 Sergio Durigan Junior + + * breakpoint.c (breakpoint_find_if): New function. + * breakpoint.h (breakpoint_find_if): New prototype. + +2015-03-11 Gary Benson + + * remote-fileio.h (remote_fileio_to_host_stat): New declaration. + * remote-fileio.c (remote_fileio_to_host_uint): New function. + (remote_fileio_to_host_ulong): Likewise. + (remote_fileio_to_host_mode): Likewise. + (remote_fileio_to_host_time): Likewise. + (remote_fileio_to_host_stat): Likewise. + * remote.c (PACKET_vFile_fstat): New enum value. + (remote_protocol_features): Register the "vFile:fstat" feature. + (remote_hostio_fstat): New function. + (remote_bfd_iovec_stat): Use the above. + (_initialize_remote): Register new "set/show remote + hostio-fstat-packet" command. + * symfile.c (separate_debug_file_exists): Update comment. + * NEWS: Announce new vFile:fstat packet. + +2015-03-11 Gary Benson + + * common/common-remote-fileio.h: New file. + * common/common-remote-fileio.c: Likewise. + * Makefile.in (SFILES): Add common/common-remote-fileio.c. + (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h. + (COMMON_OBS): Add common-remote-fileio.o. + (common-remote-fileio.o): New rule. + * remote-fileio.h (common-remote-fileio.h): New include. + * remote-fileio.c (gdb/fileio.h): Do not include. + (remote_fileio_to_be): Moved to common-remote-fileio.h. + (remote_fileio_to_fio_uint): Likewise. + (remote_fileio_to_fio_time): Likewise. + (remote_fileio_mode_to_target): Moved to common-remote-fileio.c. + (remote_fileio_to_fio_mode): Likewise. + (remote_fileio_to_fio_ulong): Likewise. + (remote_fileio_to_fio_stat): Likewise. + +2015-03-11 Andy Wingo + + * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which + we were checking the cached type, not the cached dynamic type. + +2015-03-11 Andy Wingo + + * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and + other strings, as these are on the GC'd heap, and will be + collected along with the smob. + +2015-03-11 Andy Wingo + + * guile/scm-objfile.c (gdbscm_objfile_progspace): New function. + (objfile_functions): Bind gdbscm_objfile_progspace to + objfile-progspace. + * guile/lib/gdb.scm: Add objfile-progspace to exports. + +2015-03-11 Andy Wingo + + * guile/guile.c (_initialize_guile): Disable automatic + finalization, if Guile offers us that possibility. + * guile/guile.c (call_initialize_gdb_module): + * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run + finalizers in appropriate places. + * configure.ac (AC_TRY_LIBGUILE): Add a check for + scm_set_automatic_finalization_enabled. + * configure: Regenerated. + +2015-03-11 Andreas Arnez + + * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using + SAL, if possible. + +2015-03-11 Andreas Arnez + + * s390-linux-nat.c (struct arch_lwp_info): New. + (s390_fix_watch_points): Rename to... + (s390_prepare_to_resume): ...this. Skip the PER info update + unless the watch points have changed. + (s390_refresh_per_info, s390_new_thread): New functions. + (s390_insert_watchpoint): Call s390_refresh_per_info instead of + s390_fix_watch_points. + (s390_remove_watchpoint): Likewise. + (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points. + Register s390_prepare_to_resume. + +2015-03-09 Pedro Alves + + Revert: + 2015-03-07 Pedro Alves + * common/gdb_socket.h: New file. + * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor + sys/socket.h. + (net_open): Use union gdb_sockaddr_u. + +2015-03-07 Pedro Alves + + * configure.ac (build_warnings): Move -Wmissing-prototypes + -Wdeclaration-after-statement -Wmissing-parameter-type + -Wold-style-declaration -Wold-style-definition to the C-specific + set. + * configure: Regenerate. + +2015-03-07 Pedro Alves + + * common/gdb_socket.h: New file. + * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor + sys/socket.h. + (net_open): Use union gdb_sockaddr_u. + +2015-03-07 Pedro Alves + + * common/common-exceptions.c [!__cplusplus] (enum catcher_state) + (exceptions_state_mc_action_iter) + (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch): + Don't define. + [__cplusplus] (try_scope_depth): New global. + [__cplusplus] (exception_try_scope_entry) + (exception_try_scope_exit, gdb_exception_sliced_copy) + (exception_rethrow): New functions. + (throw_exception): In C++ mode, throw + gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and + gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR. + (throw_it): In C++ mode, use try_scope_depth. + * common/common-exceptions.h [!__cplusplus] + (exceptions_state_mc_action_iter) + (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch): + Don't declare. + [__cplusplus] (exception_try_scope_entry) + (exception_try_scope_exit, exception_rethrow): Declare. + [__cplusplus] (struct exception_try_scope): New struct. + [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real + C++ exceptions. + (struct gdb_exception_RETURN_MASK_ALL) + (struct gdb_exception_RETURN_MASK_ERROR) + (struct gdb_exception_RETURN_MASK_QUIT): New types. + +2015-03-07 Pedro Alves + + * main.c (handle_command_errors): Remove volatile qualifier from + parameter. + +2015-03-07 Pedro Alves + + * breakpoint.c (save_breakpoints): Adjust to avoid code between + TRY and CATCH. + * gdbtypes.c (safe_parse_type): Remove empty line. + (types_deeply_equal): + * guile/scm-frame.c (gdbscm_frame_name): + * linux-thread-db.c (find_new_threads_once): + * python/py-breakpoint.c (bppy_get_commands): + * record-btrace.c (record_btrace_insert_breakpoint) + (record_btrace_remove_breakpoint, record_btrace_start_replaying) + (record_btrace_start_replaying): Adjust to avoid code between TRY + and CATCH. + +2015-03-07 Pedro Alves + + * common/common-exceptions.c (struct catcher) : No + longer a pointer to volatile exception. Now an exception value. + : Delete field. + (exceptions_state_mc_init): Remove all parameters. Adjust. + (exceptions_state_mc): No longer pop the catcher here. + (exceptions_state_mc_catch): New function. + (throw_exception): Adjust. + * common/common-exceptions.h (exceptions_state_mc_init): Remove + all parameters. + (exceptions_state_mc_catch): Declare. + (TRY_CATCH): Rename to ... + (TRY): ... this. Remove EXCEPTION and MASK parameters. + (CATCH, END_CATCH): New. + All callers adjusted. + +2015-03-07 Tom Tromey + + * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX. + +2015-03-07 Pedro Alves + + * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache) + (amd64_epilogue_frame_cache): Normal exception handling code. + * break-catch-throw.c (check_status_exception_catchpoint) + (re_set_exception_catchpoint): Ditto. + * cli/cli-interp.c (safe_execute_command): + * cli/cli-script.c (script_from_file): Ditto. + * compile/compile-c-symbols.c (generate_c_for_for_one_variable): + Ditto. + * compile/compile-object-run.c (compile_object_run): Ditto. + * cp-abi.c (baseclass_offset): Ditto. + * cp-valprint.c (cp_print_value): Ditto. + * exceptions.c (catch_exceptions_with_msg): + * frame-unwind.c (frame_unwind_try_unwinder): Ditto. + * frame.c (get_frame_address_in_block_if_available): Ditto. + * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache) + (i386_sigtramp_frame_cache): Ditto. + * infcmd.c (post_create_inferior): Ditto. + * linespec.c (parse_linespec, find_linespec_symbols): + * p-valprint.c (pascal_object_print_value): Ditto. + * parse.c (parse_expression_for_completion): Ditto. + * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto. + * remote.c (remote_get_noisy_reply): Ditto. + * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto. + * solib-svr4.c (solib_svr4_r_map): Ditto. + +2015-03-06 Gary Benson + + * common/common-utils.h (startswith): New inline function. + All places where this logic was used updated to use the above. + +2015-03-05 Pedro Alves + + PR gdb/18002 + * mem-break.c (default_memory_insert_breakpoint): Set shadow_len + after reading the breakpoint's shadow memory. + +2015-03-05 Mark Kettenis + + * hppabsd-nat.c: Remove file. + * hppaobsd-nat.c: New file. + * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add + hppaobsd-nat.c. + * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with + hppaobsd-nat.o. + +2015-03-04 Pedro Alves + + * target.h (struct target_ops) : Delete. + (target_decr_pc_after_break): Delete declaration. + * target.c (default_target_decr_pc_after_break) + (target_decr_pc_after_break): Delete. + * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use + gdbarch_decr_pc_after_break instead of target_decr_pc_after_break. + * linux-thread-db.c (check_event): Likewise. + * infrun.c (adjust_pc_after_break): Likewise. + * darwin-nat.c (cancel_breakpoint): Likewise. + * aix-thread.c (aix_thread_wait): Likewise. + * target-delegates.c: Regenerate. + +2015-03-04 Pedro Alves + + * linux-nat.c (save_sigtrap): Check for breakpoints before + checking watchpoints. + (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a + breakpoint is inserted if relying on SIGTRAP's siginfo.si_code. + (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether + a breakpoint triggered based on the SIGTRAP's siginfo.si_code. + (linux_nat_stopped_by_sw_breakpoint) + (linux_nat_supports_stopped_by_sw_breakpoint) + (linux_nat_stopped_by_hw_breakpoint) + (linux_nat_supports_stopped_by_hw_breakpoint): New functions. + (linux_nat_wait_1): Don't re-increment the PC if relying on + SIGTRAP's siginfo->si_code. + (linux_nat_add_target): Install new target methods. + * linux-thread-db.c (check_event): Don't account for breakpoint PC + offset if the target already adjusted the PC. + * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New. + (GDB_ARCH_TRAP_BRKPT): New. + (TRAP_HWBKPT): Define if not already defined. + +2015-03-04 Pedro Alves + + * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons. + * remote.c (struct remote_state) : + Delete field. + : New field. + (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values. + (packet_set_cmd_state): New function. + (remote_protocol_features): Register the "swbreak" and "hwbreak" + features. + (remote_query_supported): If not disabled with the corresponding + "set remote foo-packet" command, report support for the swbreak + and hwbreak features. + (struct stop_reply) : Delete + field. + : New field. + (remote_parse_stop_reply): Handle "swbreak" and "hwbreak". + (remote_wait_as): Adjust. + (remote_stopped_by_sw_breakpoint) + (remote_supports_stopped_by_sw_breakpoint) + (remote_stopped_by_hw_breakpoint) + (remote_supports_stopped_by_hw_breakpoint): New functions. + (remote_stopped_by_watchpoint): New function. + (init_remote_ops): Install them. + (_initialize_remote): Register new "set/show remote + swbreak-feature-packet" and "set/show remote + swbreak-feature-packet" commands. + +2015-03-04 Pedro Alves + + * btrace.h: Include target/waitstatus.h. + (struct btrace_thread_info) : New field. + * record-btrace.c (record_btrace_step_thread): Use + record_check_stopped_by_breakpoint instead of breakpoint_here_p. + (record_btrace_decr_pc_after_break): Delete. + (record_btrace_stopped_by_sw_breakpoint) + (record_btrace_supports_stopped_by_sw_breakpoint) + (record_btrace_stopped_by_hw_breakpoint) + (record_btrace_supports_stopped_by_hw_breakpoint): New functions. + (init_record_btrace_ops): Install them. + * record-full.c (record_full_hw_watchpoint): Delete and replace + with ... + (record_full_stop_reason): ... this throughout. + (record_full_exec_insn): Adjust. + (record_full_wait_1): Adjust. No longer re-increment the PC. + (record_full_wait_1): Adjust. Use + record_check_stopped_by_breakpoint instead of breakpoint_here_p. + (record_full_stopped_by_watchpoint): Adjust. + (record_full_stopped_by_sw_breakpoint) + (record_full_supports_stopped_by_sw_breakpoint) + (record_full_supports_stopped_by_sw_breakpoint) + (record_full_stopped_by_hw_breakpoint) + (record_full_supports_stopped_by_hw_breakpoint): New functions. + (init_record_full_ops, init_record_full_core_ops): Install them. + * record.c (record_check_stopped_by_breakpoint): New function. + * record.h: Include target/waitstatus.h. + (record_check_stopped_by_breakpoint): New declaration. + +2015-03-04 Pedro Alves + + enum lwp_stop_reason -> enum target_stop_reason + * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint) + (linux_nat_stopped_by_watchpoint, status_callback) + (linux_nat_wait_1): Adjust. + * linux-nat.h (enum lwp_stop_reason): Delete. + (struct lwp_info) : Now an enum target_stop_reason. + * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust. + * target/waitstatus.h (enum target_stop_reason): New. + +2015-03-04 Pedro Alves + + * breakpoint.c (need_moribund_for_location_type): New function. + (bpstat_stop_status): Don't skipping checking moribund locations + of breakpoint types which the target tell caused a stop. + (program_breakpoint_here_p): New function, factored out from ... + (bp_loc_is_permanent): ... this. + (update_global_location_list): Don't create a moribund location if + the target supports reporting stops of the type of the removed + breakpoint. + * breakpoint.h (program_breakpoint_here_p): New declaration. + * infrun.c (adjust_pc_after_break): Return early if the target has + already adjusted the PC. Add comments. + (handle_signal_stop): If nothing explains a signal, and the target + tells us the stop was caused by a software breakpoint, check if + there's a breakpoint instruction in the memory. If so, adjust the + PC before presenting the stop to the user. Otherwise, ignore the + trap. If nothing explains a signal, and the target tells us the + stop was caused by a hardware breakpoint, ignore the trap. + * target.h (struct target_ops) : New fields. + (target_stopped_by_sw_breakpoint) + (target_supports_stopped_by_sw_breakpoint) + (target_stopped_by_hw_breakpoint) + (target_supports_stopped_by_hw_breakpoint): Define. + * target-delegates.c: Regenerate. + +2015-03-04 Pedro Alves + + * infrun.c (follow_fork_inferior): Use the whole of the + inferior_ptid and pending_follow.related_pid ptids instead of + building ptids from the process components. Adjust verbose output + to use target_pid_to_str. + * linux-nat.c (linux_child_follow_fork): Use the whole of the + inferior_ptid and pending_follow.related_pid ptids instead of + building ptids from the process components. + +2015-03-04 Mark Kettenis + + * inf-ptrace.c [PT_GET_PROCESS_STATE] + (inf_ptrace_insert_fork_catchpoint): New function. + (inf_ptrace_remove_fork_catchpoint): New function. + (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them. + +2015-03-04 Andreas Arnez + + * s390-linux-tdep.c (s390_register_name): Return empty string + instead of NULL for registers that shouldn't be visible. + +2015-03-04 Andreas Arnez + + * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall + XML file for 64-bit targets. + +2015-03-03 Simon Marchi + + * target.h (find_default_create_inferior): Remove declaration. + (find_default_attach): Likewise. + +2015-03-03 Pedro Alves + + * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace. + Use ptid_get_pid to get the overall process id when resuming all + threads. + +2015-03-03 Pedro Alves + + * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of + the lwp field of ptid. Pass the full ptid to get_thread_regcache. + * inf-ptrace.c (get_ptrace_pid): New function. + (inf_ptrace_resume): Use it. + * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified + to the lower layer. + +2015-03-03 Markus Metzger + + * nat/linux-btrace.c: Include sys/utsname.h. + (linux_determine_kernel_ptr_bits): New. + (linux_enable_bts): Call linux_determine_kernel_ptr_bits. + * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero + ptr_bits. + +2015-03-03 Markus Metzger + + * btrace.c (ftrace_update_function): Treat return as tailcall for + "_dl_runtime_resolve". + +2015-03-03 Markus Metzger + + * btrace.h (btrace_function) : Remove. + * btrace.c (ftrace_debug): Do not print the line range. + (ftrace_skip_file, ftrace_update_lines): Remove. + (ftrace_new_function): Remove lbegin and lend initialization. + (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines. + * record-btrace.c (btrace_compute_src_line_range): New. + (btrace_call_history_src_line): Call btrace_compute_src_line_range. + +2015-03-02 Pedro Alves + + * infrun.c (follow_exec): Delete all threads of the process except + the event thread. Extended comments. + +2015-03-02 Joel Brobecker + + * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false". + +2015-03-02 Joel Brobecker + + * utils.h: Remove #include. + (producer_is_gcc): Change return type to "int". + * utils.c (producer_is_gcc): Change return type to int. + Return 1 instead of true, and 0 instead of false. + Adjust function documentation accordingly. + +2015-03-02 Andreas Arnez + + * s390-linux-nat.c (have_regset_vxrs): New static variable. + (s390_linux_fetch_inferior_registers): Handle vector registers, if + present. + (s390_linux_store_inferior_registers): Likewise. + (s390_get_hwcap): Remove function. Embed its logic... + (s390_read_description): ...here. Yield a target description with + vector registers if applicable. + * s390-linux-tdep.c: Include "features/s390-vx-linux64.c", + "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and + "features/s390x-tevx-linux64.c". + (struct gdbarch_tdep) : New field. + (s390_dwarf_regmap): Add vector registers. Remove bogus entries + for "GNU/Linux-specific registers". + (s390_dwarf_reg_r0l): New enum value. + (s390_dwarf_reg_to_regnum): Support vector registers. + (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers + of GPR lower halves. + (regnum_is_vxr_full): New function. + (s390_register_name): New function. + (s390_pseudo_register_name): Handle v0-v15, which are composed of + f0-f15 and v0l-v15l. + (s390_pseudo_register_type): Likewise. + (s390_pseudo_register_read): Likewise. + (s390_pseudo_register_write): Likewise. + (s390_value_from_register): Account for the fact that values are + placed left-justified in vector registers. + (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to + the vector reggroup and omit them from the general reggroup. + (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps. + (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets. + (s390_iterate_over_regset_sections): Add iterations for the two + new vector regsets. + (s390_core_read_description): Yield a target description with + vector registers if applicable. + (s390_gdbarch_init): Handle target descriptions with vector + registers. Add "register_name" gdbarch method. + (_initialize_s390_tdep): Call new tdesc initialization functions. + * s390-linux-tdep.h (HWCAP_S390_VX): New macro. + (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM) + (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM) + (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM) + (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM) + (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM) + (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM) + (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM) + (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM) + (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM) + (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM) + (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM) + (S390_V30_REGNUM, S390_V31_REGNUM): New macros. + (S390_NUM_REGS): Adjust value. + (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare. + (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64) + (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise. + * NEWS: Announce S/390 vector register support. + +2015-03-02 Andreas Arnez + + * features/s390-tevx-linux64.xml: New file. + * features/s390-vx-linux64.xml: New file. + * features/s390-vx.xml: New file. + * features/s390x-tevx-linux64.xml: New file. + * features/s390x-vx-linux64.xml: New file. + * features/Makefile (WHICH): Add s390-vx-linux64, + s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64. + (s390-vx-linux64-expedite, s390-tevx-linux64-expedite) + (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New + macros. + * features/s390-tevx-linux64.c: New generated file. + * features/s390-vx-linux64.c: Likewise. + * features/s390x-tevx-linux64.c: Likewise. + * features/s390x-vx-linux64.c: Likewise. + * regformats/s390-tevx-linux64.dat: Likewise. + * regformats/s390-vx-linux64.dat: Likewise. + * regformats/s390x-tevx-linux64.dat: Likewise. + * regformats/s390x-vx-linux64.dat: Likewise. + +2015-02-28 Doug Evans + + * symtab.h (struct symtab) : Fix comment. + +2015-02-27 Simon Marchi + + * python/python.c (python_GdbModuleDef): Rename GdbMethods to + python_GdbMethods. + +2015-02-27 Pedro Alves + + * dtrace-probe.c (dtrace_probe_ops): Make extern. + +2015-02-27 Pedro Alves + + * common/common-exceptions.h (exception_none): Declare. + * common/common-exceptions.c (exception_none): Moved from + exceptions.c. + (exceptions_state_mc_init): Use exception_none. + * exceptions.c (exception_none): Move to + common/common-exceptions.c. + * exceptions.h (exception_none): Move to + common/common-exceptions.h. + +2015-02-27 Pedro Alves + + * main.c (catch_command_errors, catch_command_errors_const): + Remove 'mask' argument. Adjust. + (captured_main): Adjust callers. + +2015-02-27 Pedro Alves + + * python/python-internal.h: Include "extension-priv.h". + +2015-02-27 Pedro Alves + + * breakpoint.h (enum print_stop_action): Move further up in the + file. + +2015-02-27 Pedro Alves + + * gdbarch.sh: Include regcache.h. + * gdbarch.h: Regenerate. + +2015-02-27 Pedro Alves + + * arm-tdep.c (decode_insn) : + Remove duplicate const. + * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove + duplicate const. + +2015-02-27 Pedro Alves + + * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST. + * guile/guile.c (extension_language_guile): Use EXPORTED_CONST. + * features/feature_to_c.sh: Tag the generated xml_builtin array + with extern const in C++ mode. + +2015-02-27 Tom Tromey + + * minidebug.c (struct lzma_stream): Rename to ... + (struct gdb_lzma_stream): ... this. + (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust. + +2015-02-27 Pedro Alves + + * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New + function. + (mi_cmd_stack_list_locals, mi_cmd_stack_list_args) + (mi_cmd_stack_list_variables): Use it. + +2015-02-27 Pedro Alves + + * x86-linux-nat.c (u_debugreg_offset): New function. + (x86_linux_dr_get, x86_linux_dr_set): Use it. + +2015-02-27 Pedro Alves + + * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward + declaration. + Include break-common.h. + +2015-02-27 Tom Tromey + Pedro Alves + + * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for + local used to iterate over enums. + * completer.c (signal_completer): Likewise. + * i386-tdep.c (i386_stap_parse_special_token): Likewise. + * rs6000-tdep.c (powerpc_set_vector_abi): Likewise. + * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise. + * tui/tui-layout.c (next_layout, prev_layout): Likewise. + * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all) + (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise. + * tui-wingeneral.c (tui_refresh_all): Likewise. + +2015-02-27 Pedro Alves + + * target.h: Include "infrun.h". + +2015-02-27 Pedro Alves + + * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP. + +2015-02-27 Pedro Alves + + * common/agent.h (IPA_SYM_EXPORTED_NAME): New. + (IPA_SYM): Use it. + * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros. + +2015-02-27 Pedro Alves + + * cli-out.c (_rl_erase_entire_line): Move declaration out of + cli_mld_erase_entire_line, and make it extern "C". + * common/common-defs.h (EXTERN_C): New. + * completer.c (_rl_completion_prefix_display_length) + (_rl_print_completions_horizontally, QSFUNC): Move declarations + out of gdb_display_match_list_1. + (_rl_qsort_string_compare): Move declaration out of + gdb_display_match_list_1, and make it extern "C". + * defs.h (re_comp): Use EXTERN_C. + * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper, + and make it extern "C". + (monstartup): Move declaration out of maintenance_set_profile_cmd, + and make it extern "C". + (main): Move declaration out of maintenance_set_profile_cmd. + * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use + EXTERN_C. + +2015-02-27 Pedro Alves + + * python/python.c (GdbMethods): Rename to ... + (python_GdbMethods): ... this and make extern. + (GdbModuleDef): Rename to ... + (python_GdbModuleDef): ... this and make extern. + +2015-02-27 Pedro Alves + + * record-btrace.c (set_record_btrace_cmdlist) + (show_record_btrace_cmdlist): Remove redefinitions. + +2015-02-27 Tom Tromey + Pedro Alves + + * dwarf2-frame.c (enum cfa_how_kind, struct + dwarf2_frame_state_reg_info): Move out of struct + dwarf2_frame_state. + * dwarf2read.c (struct tu_stats): Move out of struct + dwarf2_per_objfile. + (struct file_entry): Move out of struct line_header. + (struct nextfield, struct nextfnfield, struct fnfieldlist, struct + typedef_field_list): Move out of struct field_info. + * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data): + Move out of struct dynamic_prop. + (union type_owner, union field_location, struct field, struct + range_bounds, union type_specific): Move out of struct main_type. + (struct fn_fieldlist, struct fn_field, struct typedef_field) + (VOFFSET_STATIC): Move out of struct cplus_struct_type. + (struct call_site_target, union call_site_parameter_u, struct + call_site_parameter): Move out of struct call_site. + * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct + m32c_prologue. + (enum srcdest_kind): Move out of struct srcdest. + * main.c (enum cmdarg_kind): Move out of struct cmdarg. + * prologue-value.h (enum prologue_value_kind): Move out of struct + prologue_value. + * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct + gdbarch_tdep. + * stabsread.c (struct nextfield, struct next_fnfieldlist): Move + out of struct field_info. + * symfile.h (struct other_sections): Move out of struct + section_addr_info. + * symtab.c (struct symbol_cache_slot): Move out struct + block_symbol_cache. + * target-descriptions.c (enum tdesc_type_kind): Move out of + typedef struct tdesc_type. + * tui/tui-data.h (enum tui_line_or_address_kind): Move out of + struct tui_line_or_address. + * value.c (enum internalvar_kind, union internalvar_data): Move + out of struct internalvar. + * xtensa-tdep.h (struct ctype_cache): Move out of struct + gdbarch_tdep. + +2015-02-27 Tom Tromey + Pedro Alves + + Rename symbols whose names are reserved C++ keywords throughout. + +2015-02-27 Pedro Alves + + * Makefile.in (COMPILER): New, get it from autoconf. + (COMPILE.pre, CC_LD): Use COMPILER. + (CXX): Get from autoconf instead. + (CXX_FOR_TARGET): Default to g++ instead of gcc. + * acinclude.m4: Include build-with-cxx.m4. + * build-with-cxx.m4: New file. + * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX. + Disable -Werror by default if building in C++ mode. + (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and + -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode. + Run supported-warning-flags tests with the C++ compiler. + Save/restore CXXFLAGS too. + * configure: Regenerate. + +2015-02-27 Pedro Alves + + * libiberty.m4: New file. + * acinclude.m4: Include libiberty.m4. + * configure.ac: Call libiberty_INIT. + * config.in, configure: Regenerate. + +2015-02-27 Andreas Arnez + + * s390-linux-tdep.c (s390_gcc_target_options): Not just handle + 31-bit targets, but 64-bit targets as well. + (s390_gnu_triplet_regexp): New function. + (s390_gdbarch_init): Set the gcc_target_options gdbarch method for + 64-bit targets as well. Set the gnu_triplet_regexp gdbarch + method. + +2015-02-27 Jon TURNEY (tiny patch) + + * windows-nat.c (CONTEXT_DEBUGGER): Remove. + (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags + from CONTEXT_DEBUGGER. + +2015-02-26 Doug Evans + + * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to + CHECK_TYPEDEF. + (set_type_vptr_fieldno): Ditto. + (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto. + * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto. + +2015-02-26 Pedro Alves + + * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF. + * complaints.c (vcomplaint): Pass argument FMT directly to + printf-like functions instead of complaint->fmt. + * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF. + * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF. + * compile/compile-loc2c.c (pushf, unary, binary): Add + ATTRIBUTE_PRINTF. + (do_compile_dwarf_expr_to_c): Pass string literal as format string + to pushf. + (BINARY): Pass string literal as format string to 'binary'. + * compile/compile-object-load.c (link_callbacks_einfo): Add + ATTRIBUTE_PRINTF. + * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF. + +2015-02-26 Pedro Alves + + * windows-termcap.c: Rename to ... + * stub-termcap.c: ... this. Adjust header line. + * Makefile.in (SFILES): Refer to stub-termcap.c instead of + windows-termcap.c. + * configure: Regenerate. + * configure.ac: Refer to stub-termcap.o instead of + windows-termcap.o. + * gdb_curses.h: Mention stub-termcap.c instead of + windows-termcap.c. + +2015-02-26 Jan Kratochvil + + * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym) + (gcc_symbol_address): Call gnu_ifunc_resolve_addr. + +2015-02-26 Antoine Tremblay + + * gdb/infcmd.c (print_return_value): use type_to_string to print type. + +2015-02-26 Jan Kratochvil + + * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for + bfd_canonicalize_symtab. + 2015-02-25 John Baldwin * amd64fbsd-nat.c: Include sys/user.h.