+2016-03-11 Marcin Kościelnicki <koriakin@0x04.net>
+
+ * s390-linux-tdep.c (s390_ax_pseudo_register_collect): New function.
+ (s390_ax_pseudo_register_push_stack): New function.
+ (s390_gdbarch_init): Fill ax_pseudo_register_collect and
+ ax_pseudo_register_push_stack hooks.
+
+2016-03-10 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * data-directory/Makefile.in (PYTHON_FILE_LIST): Install
+ gdb/function/as_string.py.
+ * python/lib/gdb/function/as_string.py: New file.
+ * NEWS: Mention the new $_as_string function.
+
+2016-03-09 Jose E. Marchesi <jose.marchesi@oracle.com>
+
+ * target.h: Fix doc string of target_can_use_hardware_watchpoint.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * event-top.c (more_to_come): Delete.
+ (struct readline_input_state): Delete.
+ (readline_input_state): Delete.
+ (get_command_line_buffer): New function.
+ (command_handler): Update comments. Don't handle NULL commands
+ here. Do not execute commented lines.
+ (command_line_append_input_line): New function.
+ (handle_line_of_input): New function, partly based on
+ command_line_handler and command_line_input.
+ (command_line_handler): Rewrite.
+ * event-top.h (command_handler): New declaration.
+ (command_loop): Defer command execution to command_handler.
+ (command_line_input): Update comments. Simplify, using struct
+ buffer and handle_line_of_input.
+ * top.h (struct buffer): New forward declaration.
+ (handle_line_of_input): New declaration.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * event-top.c (command_line_handler): Use xfree + xstrdup instead
+ of xrealloc + strcpy.
+ * main.c (captured_main): Use xstrdup instead of xmalloc plus
+ manual clear.
+ * top.c (saved_command_line): Rewrite comment.
+ (saved_command_line_size): Delete.
+ (command_line_input): Use xfree + xstrdup instead of xrealloc +
+ strcpy.
+ * top.h (saved_command_line_size): Delete declaration.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * event-top.c: Include buffer.h.
+ (gdb_readline_no_editing_callback): Use struct buffer instead
+ of xrealloc.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * common/buffer.h (buffer_grow_char): New function.
+ * top.c: Include buffer.h.
+ (gdb_readline_no_editing): Rename 'prompt_arg' parameter to
+ 'prompt'. Use struct buffer instead of xrealloc.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * defs.h (gdb_readline): Delete declaration.
+ * top.c (gdb_readline): Rename to ...
+ (gdb_readline_no_editing): ... this, and make static.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * utils.c (prompt_for_continue): Update comments.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * event-top.c (async_annotation_suffix): Delete.
+ (top_level_prompt, command_line_handler): Don't use
+ 'async_annotation_suffix' and simplify.
+ * event-top.h (async_annotation_suffix): Delete declaration.
+ (init_main): Remove reference to 'async_annotation_suffix'.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * event-top.c (gdb_readline2): Rename to ...
+ (gdb_readline_no_editing_callback): ... this.
+ (change_line_handler, stdin_event_handler)
+ (gdb_setup_readline): Adjust.
+ * event-top.h (gdb_readline2): Rename to ...
+ (gdb_readline_no_editing_callback): ... this, and move closer to
+ other readline-related declarations.
+ * mi/mi-interp.c (mi_interpreter_resume): Adjust.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * top.c (window_hook): Delete.
+ (command_loop): Remove references to window_hook.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * gdb.base/command-line-input.exp: New file.
+
+2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
+
+ * corefile.c (safe_read_memory_unsigned_integer): New function.
+ * gdbcore.h (safe_read_memory_unsigned_integer): New prototype.
+ * rs6000-tdep.c (rs6000_frame_cache): Read backchain as unsigned.
+
+2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
+
+ * rs6000-tdep.c: Add "ax.h" and "ax-gdb.h" includes.
+ (rs6000_gen_return_address): New function.
+ (rs6000_gdbarch_init): Wire in the above.
+
+2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
+
+ * rs6000-tdep.c (rs6000_ax_pseudo_register_collect): New function.
+ (rs6000_gdbarch_init): Wire in the above.
+
+2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * s390-linux-tdep.c (s390_analyze_prologue): Ignore BRC and BRCL
+ instructions that do nothing or are conditional traps.
+
+2016-03-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * s390-linux-tdep.c (s390_prologue_frame_unwind_cache): Store
+ frame func's PC in info->func before any other failure can occur.
+ (s390_frame_this_id): Use frame_id_build_unavailable_stack if
+ info->func has been filled out.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * osabi.c (gdb_osabi_names): Avoid spaces in osabi names.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * frv-tdep.c (frv_gdbarch_init): Handle bfd_mach_fr300.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * cris-tdep.c (cris_gdbarch_init): Return 0 if the info's byte
+ order is BFD_ENDIAN_BIG or if the cris version is unsupported.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * doublest.c: Extend comments.
+ (floatformat_to_doublest, floatformat_from_doublest): Copy the
+ floatformat's total size, not the host type's size.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * doublest.c (floatformat_totalsize_bytes): New function.
+ (floatformat_from_type): Assert that the type's length is at least
+ as long as the floatformat's totalsize.
+ * doublest.h (floatformat_totalsize_bytes): New declaration.
+ * gdbtypes.c (arch_float_type): Assert that the type's length is
+ at least as long as the floatformat's totalsize.
+
+2016-03-09 Pedro Alves <palves@redhat.com>
+
+ * hppa-linux-tdep.c (hppa_linux_init_abi): Set the long double
+ format to floatformats_ieee_double.
+
+2016-03-07 Pedro Alves <palves@redhat.com>
+
+ * mips-tdep.c (mips_gdbarch_init): Check whether info.abfd is NULL
+ before calling bfd_get_flavour.
+
+2016-03-05 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
+
+ * avr-tdep.c (AVR_LAST_ARG_REGNUM): Define.
+ (avr_push_dummy_call): Correct last needed argument register.
+ Write MSB of argument into register and subsequent bytes into
+ other registers in decreasing order.
+
+2016-03-04 Yao Qi <yao.qi@linaro.org>
+
+ * arm-tdep.c (arm_record_vdata_transfer_insn): Simplify the
+ condition check. Record the right D register number.
+
+2016-03-04 Yao Qi <yao.qi@linaro.org>
+
+ * arm-tdep.c (arm_record_extension_space): Remove code
+ printing "Process record does not support".
+ (arm_record_data_proc_misc_ld_str): Likewise.
+ (decode_insn): Call arm_record_extension_space if condition
+ is 0xf. Call arm_record_unsupported_insn if ret isn't
+ ARM_RECORD_SUCCESS. Use 'ret' instead of 'insn_id' to hold
+ the value of thumb2_record_decode_insn_handler.
+
+2016-03-04 Simon Marchi <simon.marchi@ericsson.com>
+
+ * features/feature_to_c.sh: Print the help when passing no
+ argument.
+
+2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
+
+ * MAINTAINERS (Write After Approval): Add Bernhard Heckel.
+
+2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
+
+ * dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
+
+2016-03-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
+ exception when attempting to access the inferior's backchain.
+
+2016-02-29 Yao Qi <yao.qi@linaro.org>
+
+ * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
+ eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
+ Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
+ for aarch64_sys_epoll_create1.
+
+2016-02-29 Yao Qi <yao.qi@linaro.org>
+
+ * linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
+ <gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
+ <gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
+ * linux-record.c (record_linux_system_call): Handle them.
+
+2016-02-28 Iain Buclaw <ibuclaw@gdcproject.org>
+
+ * d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
+ cyclic imports.
+
+2016-02-26 Keith Seitz <keiths@redhat.com>
+
+ * rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
+ to avoid invalid conversion from void *.
+
+2016-02-26 Yao Qi <yao.qi@linaro.org>
+
+ * arm-tdep.c (arm_record_exreg_ld_st_insn): Set 'single_reg'
+ per bit 8. Check bit 20 instead of bit 4 for VMOV
+ instruction. Record D registers for instructions changing
+ S registers. Change of the order of length and address
+ in record_buf_mem array.
+
+2016-02-26 Yao Qi <yao.qi@linaro.org>
+
+ * arm-tdep.c (thumb_record_ld_st_reg_offset): Fix the register
+ number of Rd.
+
+2016-02-25 Doug Evans <dje@google.com>
+
+ * remote-m32r-sdi.c (recv_char_data): Initialize val to avoid
+ compiler warning.
+ (recv_long_data): Ditto.
+
+2016-02-25 Simon Marchi <simon.marchi@ericsson.com>
+
+ * i386-linux-tdep.c (i386_linux_handle_segmentation_fault):
+ Initialize variables.
+
+2016-02-25 Antoine Tremblay <antoine.tremblay@ericsson.com>
+
+ * ax-general.c (ax_reg): Call gdbarch_remote_register_number.
+ (ax_reg_mask): Likewise.
+
+2016-02-24 Pedro Alves <palves@redhat.com>
+
+ * linux-nat.c (save_sigtrap) Delete.
+ (stop_wait_callback): Call save_stop_reason instead of
+ save_sigtrap.
+ (check_stopped_by_breakpoint): Rename to ...
+ (save_stop_reason): ... this. Bits of save_sigtrap folded here.
+ Use GDB_ARCH_IS_TRAP_HWBKPT and handle ambiguous
+ GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT. Factor out
+ common code between the USE_SIGTRAP_SIGINFO and
+ !USE_SIGTRAP_SIGINFO blocks.
+ (linux_nat_filter_event): Call save_stop_reason instead of
+ save_sigtrap.
+ * nat/linux-ptrace.h: Check for both SI_KERNEL and TRAP_BRKPT
+ si_code for MIPS.
+ * nat/linux-ptrace.h: Fix "TRAP_HWBPT" typo in x86 table. Add
+ comments on MIPS behavior.
+ (GDB_ARCH_IS_TRAP_HWBKPT): Define for all archs.
+
+2016-02-24 Marcin Kościelnicki <koriakin@0x04.net>
+
+ * rs6000-tdep.c (rs6000_frame_cache): Initialize frame and pc to 0
+ to avoid spurious warnings.
+
+2016-02-24 Gary Benson <gbenson@redhat.com>
+
+ * exec.c (exec_file_locate_attach): Do not attempt to
+ locate main executable locally if not found in sysroot.
+
+2016-02-24 Joel Brobecker <brobecker@adacore.com>
+
+ GDB 7.11 released.
+
+2016-02-24 Wei-cheng Wang <cole945@gmail.com>
+
+ * rs6000-tdep.c (rs6000_frame_cache, rs6000_frame_this_id): Handle
+ unavailable PC/SP to build unavailable frame.
+
+2016-02-23 Doug Evans <dje@google.com>
+
+ Extend "skip" command to support -file, -gfile, -function, -rfunction.
+ * NEWS: Document new features.
+ * skip.c: #include "fnmatch.h", "gdb_regex.h".
+ (skiplist_entry) <file>: Renamed from filename.
+ <function>: Renamed from function_name.
+ <file_is_glob, function_is_regexp>: New members.
+ <compiled_function_regexp, compiled_function_regexp_is_valid>:
+ New members.
+ (make_skip_entry): New function.
+ (free_skiplist_entry, free_skiplist_entry_cleanup): New functions.
+ (make_free_skiplist_entry_cleanup): New function.
+ (skip_file_command): Update.
+ (skip_function, skip_function_command): Update.
+ (compile_skip_regexp): New functions.
+ (skip_command): Add support for new options.
+ (skip_info): Update.
+ (skip_file_p, skip_gfile_p): New functions.
+ (skip_function_p, skip_rfunction_p): New functions.
+ (function_name_is_marked_for_skip): Update and simplify.
+ (_initialize_step_skip): Update.
+ * symtab.c: #include "fnmatch.h".
+ (compare_glob_filenames_for_search): New function.
+ * symtab.h (compare_glob_filenames_for_search): Declare.
+ * utils.c (count_path_elements): New function.
+ (strip_leading_path_elements): New function.
+ * utils.h (count_path_elements): Declare.
+ (strip_leading_path_elements): Declare.
+
+2016-02-23 Simon Marchi <simon.marchi@ericsson.com>
+
+ * arm-tdep.c (arm_decode_svc_copro): Remove "to" parameter.
+ (thumb_process_displaced_insn): Likewise.
+ (arm_process_displaced_insn): Adjust calls.
+
+2016-02-23 Yao Qi <yao.qi@linaro.org>
+
+ * aarch64-linux-tdep.c (enum aarch64_syscall) <aarch64_sys_mknod>:
+ Remove.
+ <aarch64_sys_mkdir, aarch64_sys_unlink, aarch64_sys_symlink>: Remove.
+ <aarch64_sys_link, aarch64_sys_rename, aarch64_sys_faccess>: Remove.
+ <aarch64_sys_mknodat, aarch64_sys_mkdirat>: New.
+ <aarch64_sys_unlinkat, aarch64_sys_symlinkat>: New.
+ <aarch64_sys_linkat, aarch64_sys_renameat>: New.
+ <aarch64_sys_faccessat>: New.
+ <aarch64_sys_open, aarch64_sys_readlink, aarch64_sys_fstatat>: Remove.
+ <aarch64_sys_openat, aarch64_sys_readlinkat>: New.
+ <aarch64_sys_newfstatat>: New.
+ (UNSUPPORTED_SYSCALL_MAP): New macro.
+ (aarch64_canonicalize_syscall): Add missing syscalls.
+
+2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
+
+2016-02-22 Yao Qi <yao.qi@linaro.org>
+
+ * arm-tdep.c: Fix code format issues.
+
+2016-02-21 Iain Buclaw <ibuclaw@gdcproject.org>
+
+ * d-namespace.c (d_lookup_symbol_imports): Remove argument
+ 'search_parents'. All callers updated.
+
+2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
+
+ * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
+ (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
+
+2016-02-18 Walfred Tedeschi <walfred.tedeschi@intel.com>
+
+ * NEWS: Add entry for bound violation.
+ * amd64-linux-tdep.c (amd64_linux_init_abi_common):
+ Add handler for segmentation fault.
+ * gdbarch.sh (handle_segmentation_fault): New.
+ * gdbarch.c: Regenerate.
+ * gdbarch.h: Regenerate.
+ * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): New.
+ (SIG_CODE_BONDARY_FAULT): New define.
+ (i386_linux_init_abi): Use i386_mpx_bound_violation_handler.
+ * i386-linux-tdep.h (i386_linux_handle_segmentation_fault) New.
+ * i386-tdep.c (i386_mpx_enabled): Add as external.
+ * i386-tdep.c (i386_mpx_enabled): Add as external.
+ * infrun.c (handle_segmentation_fault): New function.
+ (print_signal_received_reason): Use handle_segmentation_fault.
+
+2016-02-18 Marcin Kościelnicki <koriakin@0x04.net>
+
+ * arch-utils.c (default_guess_tracepoint_registers): New function.
+ * arch-utils.h (default_guess_tracepoint_registers): New prototype.
+ * gdbarch.c: Regenerate.
+ * gdbarch.h: Regenerate.
+ * gdbarch.sh: Add guess_tracepoint_registers hook.
+ * tracefile.c (tracefile_fetch_registers): Use the new gdbarch hook.
+
+2016-02-17 Gary Benson <gbenson@redhat.com>
+
+ * exec.c (exec_file_locate_attach): Add missing cleanup.
+
+2016-02-16 Don Breazeal <donb@codesourcery.com>
+
+ PR remote/19496
+ * remote.c (remove_new_fork_children): Check for pending
+ fork status in thread_info.suspend.
+
+2016-02-16 Yao Qi <yao.qi@linaro.org>
+
+ * arm-linux-tdep.c (arm_linux_software_single_step): Assign
+ 'old_chain' later.
+
+2016-02-16 Yao Qi <yao.qi@linaro.org>
+
+ * arch/arm-get-next-pcs.h (struct arm_get_next_pcs_ops)
+ <syscall_next_pc>: Remove argument PC. Callers updated.
+ * arm-linux-tdep.c (arm_linux_get_next_pcs_syscall_next_pc):
+ Remove argument PC. Get pc from regcache_read_pc.
+ * arm-tdep.c (arm_get_next_pcs_syscall_next_pc): Remove
+ argument PC.
+
+2016-02-15 Yao Qi <yao.qi@linaro.org>
+
+ * aarch64-tdep.c (aarch64_analyze_prologue): Remove "0x".
+
+2016-02-12 Yao Qi <yao.qi@linaro.org>
+
+ * arch/arm-linux.c (arm_linux_get_next_pcs_fixup): Calculate
+ nextpc according to instruction.
+
+2016-02-12 Yao Qi <yao.qi@linaro.org>
+
+ * arch/arm-get-next-pcs.c (arm_get_next_pcs): Call
+ self->ops->fixup if it isn't NULL.
+ * arch/arm-get-next-pcs.h: Include gdb_vecs.h.
+ (struct arm_get_next_pcs_ops) <fixup>: New field.
+ * arch/arm-linux.c: Include common-regcache.h and
+ arch/arm-get-next-pcs.h.
+ (arm_linux_get_next_pcs_fixup): New function.
+ * arch/arm-linux.h (arm_linux_get_next_pcs_fixup): Declare.
+ * arm-linux-tdep.c (arm_linux_get_next_pcs_ops): Initialize
+ it with arm_linux_get_next_pcs_fixup.
+ (arm_linux_software_single_step): Move code to
+ arm_linux_get_next_pcs_fixup.
+ * arm-tdep.c (arm_get_next_pcs_ops): Initialize it.
+
+2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
+
+ * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
+ and return NULL.
+
+2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
+
+ * frame.h (skip_tailcall_frames): Update comment.
+ * frame.c (skip_artificial_frames, skip_tailcall_frames): Return NULL
+ if only artificial frames are found. Update comment.
+ (frame_unwind_caller_id): Handle NULL return.
+ (frame_unwind_caller_pc, frame_unwind_caller_arch): Assert that
+ skip_artificial_frames does not return NULL.
+ (frame_pop): Add an error if only tailcall frames are found.
+ * infcmd.c (finish_command): Move skip_tailcall_frames call into
+ forward-execution case. Add an error if only tailcall frames are
+ found.
+
2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
* stack.c (frame_info): Check frame_unwind_caller_id.