X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FChangeLog;h=3ef965c9f73c214aa9c631a4276cd0cb96cc83bf;hb=ce9c0ca18fe50e1e5a87b135032e4aeba415e2ab;hp=22bda6a9b862f23beaafc1c2ed3312d39a3a3b79;hpb=f7e6eed5283bb5c8a3598dd986dc922b9a794f58;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 22bda6a9b8..3ef965c9f7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,902 @@ +2015-03-27 Andrzej Kaczmarek + + * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special + sections. + +2015-03-26 Joel Brobecker + + * dtrace-probe.c (dtrace_process_dof_probe): Contain any + exception raised while parsing the probe arguments. + Force parsing to be done using the C language parser. + * expression.h (parse_expression_with_language): Declare. + * parse.c (parse_expression_with_language): New function. + +2015-03-26 Jon Turney + + * MAINTAINERS (Write After Approval): Add "Jon Turney". + +2015-03-26 Andy Wingo + + PR symtab/18148 + * dwarf2read.c (struct partial_die_info): Add has_const_value + member. + (add_partial_symbol): Don't punt on symbols that have const_value + attributes. + (read_partial_die): Detect DW_AT_const_value. + +2015-03-26 Jan Kratochvil + + Code cleanup. + * printcmd.c (print_command_1): Move expr variable scope. + +2015-03-26 Jan Kratochvil + + Code cleanup. + * printcmd.c (validate_format): Make the parameter cmdname const. + +2015-03-26 Don Breazeal + + * remote.c (_initialize_remote): Update comment. + +2015-03-26 Pedro Alves + Jon TURNEY + + * coffread.c (coff_symfile_read): When constructing the name of an + import stub symbol from import symbol for amd64, only skip the + char after _imp_ if the target is underscored (like i386) and the + char is indeed the target's leading char. + +2015-03-25 Pedro Alves + + * target.h : Replace 'callback' and 'context' parameters + with boolean 'enable' parameter. + (target_async): Replace CALLBACK and CONTEXT parameters with + boolean ENABLE parameter. + * inf-loop.c (inferior_event_handler): Adjust. + * linux-nat.c (linux_nat_attach, linux_nat_resume) + (linux_nat_resume): Adjust. + (async_client_callback, async_client_context): Delete. + (handle_target_event): Call inferior_event_handler directly. + (linux_nat_async): Replace 'callback' and 'context' parameters + with boolean 'enable' parameter. Adjust. Remove references to + async_client_callback and async_client_context. + (linux_nat_close): Adjust. + * record-btrace.c (record_btrace_async): Replace 'callback' and + 'context' parameters with boolean 'enable' parameter. Adjust. + (record_btrace_resume): Adjust. + * record-full.c (record_full_async): Replace 'callback' and + 'context' parameters with boolean 'enable' parameter. Adjust. + (record_full_resume, record_full_core_resume): Adjust. + * remote.c (struct remote_state) : Delete fields. + (remote_start_remote, extended_remote_attach_1, remote_resume) + (extended_remote_create_inferior): Adjust. + (remote_async_serial_handler): Call inferior_event_handler + directly. + (remote_async): Replace 'callback' and 'context' parameters with + boolean 'enable' parameter. Adjust. + * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper): + Adjust. + * target-delegates.c: Regenerate. + +2015-03-25 Gary Benson + Pedro Alves + + * target.c (fileio_ft_t): New typedef, define object vector. + (fileio_fhandles): New static variable. + (is_closed_fileio_fh): New macro. + (lowest_closed_fd): New static variable. + (acquire_fileio_fd): New function. + (release_fileio_fd): Likewise. + (fileio_fd_to_fh): New macro. + (target_fileio_open): Wrap the file descriptor on success. + (target_fileio_pwrite): Updated to use wrapped file descriptor. + (target_fileio_pread): Likewise. + (target_fileio_close): Likewise. + +2015-03-24 Pedro Alves + + * thread.c (thread_apply_all_command): Take exited threads into + account. + +2015-03-24 Pedro Alves + + * infrun.c (resume, proceed): Mention + switch_back_to_stepped_thread, not switch_back_to_stepping. + +2015-03-24 Pedro Alves + + * infrun.c (user_visible_resume_ptid): Rewrite going from + most-locked to unlocked instead of the opposite. Move comment ... + * infrun.h (user_visible_resume_ptid): ... here. + +2015-03-24 Pedro Alves + + * linux-nat.c (linux_nat_resume): Output debug logs before trying + to resume the event lwp. Use the lwp's ptid instead of the passed + in (maybe wildcard) ptid. + (stop_wait_callback): Tweak debug log output. + (check_stopped_by_breakpoint): Tweak debug log output. Also dump + TRAP_TRACE. + (linux_nat_filter_event): In debug output, distinguish a + resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs + before trying to resume the lwp. + +2015-03-24 Joel Brobecker + + * gdbtypes.h (struct dynamic_prop_list) : Remove + pointer indirection. + * gdbtypes.c (get_dyn_prop): Adjust, following change above. + (add_dyn_prop, copy_dynamic_prop_list): Likewise. + +2015-03-24 Joel Brobecker + + * gdbtypes.h (enum dynamic_prop_node_kind) : + Renames DYN_ATTR_DATA_LOCATION. + (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of + DYN_ATTR_DATA_LOCATION. + * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION + instead of DYN_ATTR_DATA_LOCATION. + +2015-03-24 Pedro Alves + + * breakpoint.c (until_break_command): Adjust call to proceed. + * gdbthread.h (struct thread_control_state) : + New field. + * infcall.c (run_inferior_call): Adjust call to proceed. + * infcmd.c (run_command_1, proceed_thread_callback, continue_1): + Adjust calls to proceed. + (set_step_frame): Set the current thread's step_start_function + here. + (step_once): Adjust calls to proceed. + (jump_command, signal_command, until_next_command) + (finish_backward, finish_forward, proceed_after_attach_callback) + (attach_command_post_wait): Adjust calls to proceed. + * infrun.c (proceed_after_vfork_done): Adjust call to proceed. + (do_target_resume): New function, factored out from ... + (resume): ... here. Remove 'step' parameter. Instead, check + currently_stepping to determine whether the thread should be + single-stepped. + (proceed): Remove 'step' parameter and don't set the thread's + step_start_function here. Adjust call to 'resume'. + (handle_inferior_event): Adjust calls to 'resume'. + (switch_back_to_stepped_thread): Use do_target_resume instead of + 'resume'. + (keep_going): Adjust calls to 'resume'. + * infrun.h (proceed): Remove 'step' parameter. + (resume): Likewise. + * windows-nat.c (do_initial_windows_stuff): Adjust call to + 'resume'. + * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'. + +2015-03-24 Pedro Alves + + * gdbthread.h (struct thread_control_state) : + New field. + * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set + the thread's stepping_command field. + * infrun.c (resume): Check the thread's stepping_command flag to + determine which threads should be resumed. Rename 'entry_step' + local to user_step. + (clear_proceed_status_thread): Clear 'stepping_command'. + (schedlock_applies): Change parameter type to struct thread_info + pointer. Adjust. + (find_thread_needs_step_over): Remove 'step' parameter. Adjust. + (switch_back_to_stepped_thread): Adjust calls to + 'schedlock_applies'. + (_initialize_infrun): Adjust "set scheduler-locking step" help. + +2015-03-24 Pedro Alves + + * infrun.c (step_start_function): Delete and ... + * gdbthread.h (struct thread_control_state) : + ... now a field here. + * infrun.c (clear_proceed_status_thread): Clear the thread's + step_start_function. + (proceed, process_event_stop_test, print_stop_event): Adjust. + +2015-03-24 Pedro Alves + + * infrun.c (proceed): No longer handle negative step. + +2015-03-24 Gary Benson + + * nat/x86-linux.h (x86_linux_new_thread): New declaration. + (x86_linux_prepare_to_resume): Likewise. + * x86-linux-nat.c (x86_linux_new_thread): + Moved to nat/x86-linux.c. + (x86_linux_prepare_to_resume): Likewise. + * nat/x86-linux.c (x86_linux_new_thread): New function. + (x86_linux_prepare_to_resume): Likewise. + +2015-03-24 Gary Benson + + * nat/x86-linux-dregs.h: New file. + * nat/x86-linux-dregs.c: Likewise. + * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h. + (x86-linux-dregs.o): New rule. + * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o. + * config/i386/linux64.mh (NATDEPFILES): Likewise. + * x86-linux-nat.c: Include nat/x86-linux-dregs.h. + (u_debugreg_offset): Moved to nat/x86-linux-dregs.c. + (x86_linux_dr_get): Likewise. + (x86_linux_dr_set): Likewise. + (x86_linux_dr_get_addr): Likewise. + (x86_linux_dr_get_control): Likewise. + (x86_linux_dr_get_status): Likewise. + (update_debug_registers_callback): Likewise. + (x86_linux_dr_set_control): Likewise. + (x86_linux_dr_set_addr): Likewise. + (x86_linux_update_debug_registers): Likewise. + +2015-03-24 Gary Benson + + * x86-linux-nat.c (x86_linux_update_debug_registers): + New function, factored out from... + (x86_linux_prepare_to_resume): ...this. + +2015-03-24 Gary Benson + + * x86-linux-nat.c (x86_linux_dr_get): Update comments. + (x86_linux_dr_set): Likewise. + (x86_linux_dr_get_addr): Likewise. + (x86_linux_dr_get_control): Likewise. + (x86_linux_dr_get_status): Likewise. + (update_debug_registers_callback): Likewise. + (x86_linux_dr_set_control): Likewise. + (x86_linux_dr_set_addr): Likewise. + (x86_linux_prepare_to_resume): Likewise. + (x86_linux_new_thread): Likewise. + +2015-03-24 Gary Benson + + * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion. + (x86_linux_new_thread): Rename argument. + +2015-03-24 Gary Benson + + * nat/x86-linux.h: New file. + * nat/x86-linux.c: Likewise. + * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h. + (x86-linux.o): New rule. + * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o. + * config/i386/linux64.mh (NATDEPFILES): Likewise. + * nat/linux-nat.h (struct arch_lwp_info): New forward declaration. + (lwp_set_arch_private_info): New declaration. + (lwp_arch_private_info): Likewise. + * linux-nat.c (lwp_set_arch_private_info): New function. + (lwp_arch_private_info): Likewise. + * x86-linux-nat.c: Include nat/x86-linux.h. + (arch_lwp_info): Removed structure. + (update_debug_registers_callback): + Use lwp_set_debug_registers_changed. + (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed + and lwp_set_debug_registers_changed. + (x86_linux_new_thread): Use lwp_set_debug_registers_changed. + +2015-03-24 Gary Benson + + * nat/linux-nat.h (ptid_of_lwp): New declaration. + (lwp_is_stopped): Likewise. + (lwp_stop_reason): Likewise. + * linux-nat.c (ptid_of_lwp): New function. + (lwp_is_stopped): Likewise. + (lwp_is_stopped_by_watchpoint): Likewise. + * x86-linux-nat.c (update_debug_registers_callback): + Use lwp_is_stopped. + (x86_linux_prepare_to_resume): Use ptid_of_lwp and + lwp_stop_reason. + +2015-03-24 Gary Benson + + * linux-nat.h (linux_stop_lwp): Move declaration to... + * nat/linux-nat.h (linux_stop_lwp): New declaration. + +2015-03-24 Gary Benson + + * linux-nat.h: Include nat/linux-nat.h. + (iterate_over_lwps): Move declaration to nat/linux-nat.h. + * nat/linux-nat.h (struct lwp_info): New forward declaration. + (iterate_over_lwps_ftype): New typedef. + (iterate_over_lwps): New declaration. + * linux-nat.h (iterate_over_lwps): Update comment. Use + iterate_over_lwps_ftype. Update callback return value check. + +2015-03-24 Gary Benson + + * x86-nat.h (x86_debug_reg_state): Move declaration to... + * nat/x86-dregs.h (x86_debug_reg_state): New declaration. + +2015-03-24 Gary Benson + + * nat/linux-nat.h (current_lwp_ptid): New declaration. + * linux-nat.c (current_lwp_ptid): New function. + * x86-linux-nat.c: Include nat/linux-nat.h. + (x86_linux_dr_get_addr): Use current_lwp_ptid. + (x86_linux_dr_get_control): Likewise. + (x86_linux_dr_get_status): Likewise. + (x86_linux_dr_set_control): Likewise. + (x86_linux_dr_set_addr): Likewise. + +2015-03-24 Antoine Tremblay + + PR breakpoints/16466 + * breakpoint.c (create_breakpoint): Set thread on breakpoint struct. + +2015-03-23 Joel Brobecker + + * ser-mingw.c (ser_windows_setparity): Fix indentation. + * ser-unix.c (hardwire_setparity): Likewise. + +2015-03-23 Yurij Grechishhev + + * NEWS: Mention set/show serial parity command. + * monitor.c (monitor_open): Call serial_setparity. + * remote.c (remote_open_1): Likewise. + * ser-base.c (ser_base_serparity): New function. + * ser-base.h (ser_base_setparity): Add declaration. + * ser-go32.c (dos_ops): Set "setparity" field. + * ser-mingw.c (ser_windows_raw): Do not set state.fParity and + state.Parity. + (ser_windows_setparity): New function. + (hardwire_ops): Add ser_windows_setparity. + (tty_ops): Add NULL for setparity field. + (pipe_ops): Add ser_base_setparity. + (tcp_ops): Likewise. + * ser-pipe.c (pipe_ops): Likewise. + * ser-tcp.c (tcp_ops): Likewise. + * ser-unix.c (hardwire_setparity): Add declaration. + (hardwire_raw): Don't reset PARENB flag. + (hardwire_setparity): New function. + (hardwire_ops): Add hardwire_setparity. + * serial.c (serial_setparity): New function. + (serial_parity): New global. + (parity_none, parity_odd, parity_even, parity_enums, parity): + New static globals. + (set_parity): New function. + (_initialize_serial): Add set/show serial parity commands. + * serial.h (GDBPARITY_NONE): Define. + (GDBPARITY_ODD): Define. + (GDBPARITY_EVEN): Define. + (serial_setparity) Add declaration. + (struct serial_ops): Add setparity field. + * target.h (serial_parity): Add declaration. + +2015-03-23 Keith Seitz + + * linespec.c (linespec_lexer_lex_keyword): Update comment. + +2015-03-23 Keith Seitz + + * breakpoint.c (parse_breakpoint_sals): Use + linespec_lexer_lex_keyword to ascertain if the user specified + a NULL location. + * linespec.c [IF_KEYWORD_INDEX]: Define. + (linespec_lexer_lex_keyword): Export. + (struct ls_parser) : Remove. + A keyword is only a keyword if not followed by another keyword. + (linespec_lexer_lex_one): Remove keyword_ok handling. + Add comment explaining why the parsing stream is not advanced + when a keyword is seen. + (parse_linespec): Remove parser->keyword_ok. + * linespec.h (linespec_lexer_lex_keyword): Add declaration. + +2015-03-23 Keith Seitz + + PR gdb/18021 + * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint + if we find a static method with DW_AT_vtable_elem_location. + +2015-03-21 Eli Zaretskii + + * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter + before the second loop, to avoid undefined behavior. Reported by + Anton Blanchard . + +2015-03-20 Keven Boell + + * gdbtypes.c (resolve_dynamic_type_internal): Adapt + data_location usage to linked list. + (resolve_dynamic_type_internal): Adapt data_location to + linked list. + (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function. + (copy_type_recursive, copy_type): Add copy of linked list. + * gdbtypes.h (enum dynamic_prop_node_kind): New enum. + (struct dynamic_prop_list): New struct. + * dwarf2read.c (set_die_type): Set data_location data. + +2015-03-20 Pedro Alves + + * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to + inner block and make it const. + * machoread.c (get_archive_prefix_len): Make "lparen" const. + +2015-03-20 Pedro Alves + + * breakpoint.c (set_breakpoint_condition): Make argument "exp" const. + * breakpoint.h (set_breakpoint_condition): Update declaration. + +2015-03-20 Pedro Alves + + * tui/tui-io.c (tui_expand_tabs): Make "s1" const. + +2015-03-20 Pedro Alves + + * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const. + +2015-03-20 Pedro Alves + + * remote-m32r-sdi.c (m32r_open): Make "port_str" const. + +2015-03-20 Pedro Alves + + * nto-tdep.c (nto_find_and_open_solib): Make "endian" const. + (nto_init_solib_absolute_prefix): Likewise. + +2015-03-20 Pedro Alves + + * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const. + * spu-tdep.c (spu_gdbarch_init): Make "name" const. + +2015-03-20 Jan Kratochvil + + * config/djgpp/README: Remove gdb.hp. + +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.