+2016-07-13 Tom Tromey <tom@tromey.com>
+
+ PR cli/18053:
+ * jit.c (jit_reader_load_command): Use tilde_expand.
+ (_initialize_jit): Fix help for jit-reader-unload. Set completer
+ for new commands.
+
+2016-07-12 Tom Tromey <tom@tromey.com>
+
+ PR python/19293:
+ * python/lib/gdb/command/unwinders.py (do_enable_unwinder): Call
+ gdb.invalidate_cached_frames.
+ * python/lib/gdb/unwinder.py (register_unwinder): Call
+ gdb.invalidate_cached_frames.
+ * python/python.c (gdbpy_invalidate_cached_frames): New function.
+ (python_GdbMethods): Add entry for invalidate_cached_frames.
+
+2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
+
+ * cp-namespace.c (cp_lookup_bare_symbol): Initialize
+ lang_this.symbol.
+
+2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
+
+ * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as
+ parameter to look for the symbol "this".
+
+
+2016-07-06 John Baldwin <jhb@FreeBSD.org>
+
+ * h8300-tdep.c (h8300_print_register): Remove extraneous parentheses.
+
+2016-07-06 John Baldwin <jhb@FreeBSD.org>
+
+ * ada-lang.c (ada_unpack_from_contents): Use unsigned constants with
+ left shifts.
+
+2016-07-06 John Baldwin <jhb@FreeBSD.org>
+
+ * sh64-tdep.c (sh64_analyze_prologue): Set "uses_fp" when setting
+ the MEDIA_FP_REGNUM register.
+
+2016-07-06 John Baldwin <jhb@FreeBSD.org>
+
+ * score-tdep.c (score7_malloc_and_get_memblock): Remove check for
+ negative size.
+
+2016-07-06 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-nat.c (fbsd_is_vfork_done_pending): Fix return type.
+
+2016-07-06 Yao Qi <yao.qi@linaro.org>
+
+ * arm-tdep.c (arm_vfp_cprc_sub_candidate): Don't call
+ arm_vfp_cprc_sub_candidate for static field.
+
+2016-07-06 Manish Goregaokar <manish@mozilla.com>
+
+ * rust-lang.c (rust_subscript): Allow subscripting pointers
+
+2016-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * configure: Regenerate.
+ * configure.ac (HAVE_LIBBABELTRACE): Fix pos variable dereference.
+
+2016-07-01 Don Breazeal <donb@codesourcery.com>
+
+ * remote.c (remote_get_memory_xfer_limit): New function.
+ * target-delegates.c: Regenerate.
+ * target.c (memory_xfer_partial): Call
+ target_ops.to_get_memory_xfer_limit.
+ * target.h (struct target_ops) <to_get_memory_xfer_limit>: New
+ member.
+
+2016-07-01 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-nat.c (struct fbsd_fork_child_info): Rename to ...
+ (struct fbsd_fork_info): ... this.
+ (struct fbsd_fork_info) <child>: Rename to ...
+ (struct fbsd_fork_info) <ptid>: ... this.
+ (fbsd_pending_children): Update type.
+ (fbsd_remember_child): Update type and field name.
+ (fbsd_is_child_pending): Likewise.
+ (fbsd_pending_vfork_done): New variable.
+ (fbsd_is_vfork_done_pending): New function.
+ (fbsd_next_vfork_done): New function.
+ (fbsd_resume): Don't resume processes with a pending vfork done
+ event.
+ (fbsd_wait): Report pending vfork done events.
+ (fbsd_follow_fork): Delay and record a pending vfork done event
+ for a vfork parent when detaching the child.
+
+2016-07-01 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-nat.c (super_resume): Move earlier next to "super_wait".
+ (resume_one_thread_cb): Move below fork following helper code.
+ (resume_all_threads_cb): Likewise.
+ (fbsd_resume): Likewise.
+
+2016-07-01 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-nat.c (fbsd_follow_fork): Only detach child if
+ "detach_fork" is true.
+
+2016-07-01 John Baldwin <jhb@FreeBSD.org>
+
+ * x86bsd-nat.c: Include 'gdbthread.h'.
+ (x86bsd_dr_set): Set debug registers on all threads belonging to
+ the current inferior.
+
+2016-07-01 John Baldwin <jhb@FreeBSD.org>
+
+ * Makefile.in [HFILES_NO_SRCDIR]: Replace 'amd64bsd-nat.h' with
+ 'x86bsd-nat.h'.
+ * amd64bsd-nat.c: Include 'x86bsd-nat.h' instead of
+ 'amd64bsd-nat.h'.
+ (amd64bsd_xsave_len): Rename and move to x86bsd-nat.c.
+ (amd64bsd_fetch_inferior_registers): Replace 'amd64bsd_xsave_len'
+ with 'x86bsd_xsave_len'.
+ (amd64bsd_store_inferior_registers): Likewise.
+ (amd64bsd_target): Inherit from x86bsd_target.
+ (amd64bsd_dr_get): Rename and move to x86bsd-nat.c.
+ (amd64bsd_dr_set): Likewise.
+ (amd64bsd_dr_set_control): Likewise.
+ (amd64bsd_dr_set_addr): Likewise.
+ (amd64bsd_dr_get_addr): Likewise.
+ (amd64bsd_dr_get_status): Likewise.
+ (amd64bsd_dr_get_control): Likewise.
+ * amd64fbsd-nat.c: Include 'x86bsd-nat.h' instead of
+ 'amd64bsd-nat.h'.
+ (super_mourn_inferior): Move to x86bsd-nat.c.
+ (amd64fbsd_mourn_inferior): Rename and move to x86bsd-nat.c.
+ (amd64fbsd_read_description): Replace 'amd64bsd_xsave_len' with
+ 'x86bsd_xsave_len'.
+ (_initialize_amd64fbsd_nat): Remove x86 watchpoint setup and
+ mourn_inferior' target op.
+ * config/i386/fbsd.mh (NATDEPFILES): Add x86bsd-nat.o.
+ * config/i386/fbsd64.mh: Likewise.
+ * config/i386/nbsd64.mh: Likewise.
+ * config/i386/nbsdelf.mh: Likewise.
+ * config/i386/obsd.mh: Likewise.
+ * config/i386/obsd64.mh: Likewise.
+ * i386bsd-nat.c: Include 'x86bsd-nat.h'.
+ (i386bsd_xsave_len): Rename and move to x86bsd-nat.c.
+ (i386bsd_fetch_inferior_registers): Replace 'i386bsd_xsave_len'
+ with 'x86bsd_xsave_len'.
+ (i386bsd_store_inferior_registers): Likewise.
+ (i386bsd_target): Inherit from x86bsd_target.
+ (i386bsd_dr_get): Rename and move to x86bsd-nat.c.
+ (i386bsd_dr_set): Likewise.
+ (i386bsd_dr_set_control): Likewise.
+ (i386bsd_dr_set_addr): Likewise.
+ (i386bsd_dr_get_addr): Likewise.
+ (i386bsd_dr_get_status): Likewise.
+ (i386bsd_dr_get_control): Likewise.
+ * i386bsd-nat.h (i386bsd_xsave_len): Remove.
+ (i386bsd_dr_set_control): Remove.
+ (i386bsd_dr_set_addr): Remove.
+ (i386bsd_dr_get_addr): Remove.
+ (i386bsd_dr_get_status): Remove.
+ (i386bsd_dr_get_control): Remove.
+ * i386fbsd-nat.c: Include 'x86bsd-nat.h'.
+ (i386fbsd_read_description): Replace 'i386bsd_xsave_len' with
+ 'x86bsd_xsave_len'.
+ (_initialize_i386fbsd_nat): Remove x86 watchpoint setup and
+ mourn_inferior' target op.
+ * x86bsd-nat.c: New file.
+ * x86bsd-nat.h: New file.
+
+2016-07-01 Pedro Alves <palves@redhat.com>
+ Tom Tromey <tom@tromey.com>
+
+ * jit.c (jit_reader_load_command): Call reinit_frame_cache and
+ jit_inferior_created_hook.
+ (jit_reader_unload_command): Call reinit_frame_cache and
+ jit_inferior_exit_hook.
+ * jit.c (struct jit_unwind_private) <registers>: Delete field.
+ <regcache>: New field.
+ (jit_unwind_reg_set_impl): Set the register's value in the
+ regcache. Free the passed-in gdb_reg_value.
+ (jit_dealloc_cache): Adjust to free the regcache.
+ (jit_frame_sniffer): Allocate a regcache instead of an array of
+ gdb_reg_value pointers.
+ (jit_frame_this_id): Adjust.
+ (jit_frame_prev_register): Read raw registers off of the regcache
+ instead of from the gdb_reg_value pointer array. Use
+ gdbarch_pseudo_register_read_value to read pseudo registers.
+ * regcache.c (regcache_raw_set_cached_value): New function,
+ factored out from ...
+ (regcache_raw_write): ... here.
+ * regcache.h (regcache_raw_set_cached_value): Declare.
+
+2016-07-01 Pedro Alves <palves@redhat.com>
+ Antoine Tremblay <antoine.tremblay@ericsson.com>
+
+ * inf-ptrace.c (inf_ptrace_detach_success): New function, factored
+ out from ...
+ (inf_ptrace_detach): ... here.
+ * inf-ptrace.h (inf_ptrace_detach_success): New declaration.
+ * linux-nat.c (get_pending_status): Rename to ...
+ (get_detach_signal): ... this, and return a host signal instead of
+ filling in a wait status.
+ (detach_one_lwp): New function, factored out from detach_callback
+ and adjusted to handle detaching from a zombie thread.
+ (detach_callback): Skip the leader thread.
+ (linux_nat_detach): No longer defer to inf_ptrace_detach to detach
+ the leader thread, nor build a signal string to pass down.
+ Instead, use target_announce_detach, detach_one_lwp and
+ inf_ptrace_detach_success.
+
+2016-07-01 Pedro Alves <palves@redhat.com>
+
+ * breakpoint.c (breakpoint_init_inferior): Discard watchpoint
+ locations.
+ * infcmd.c (detach_command): Call breakpoint_init_inferior.
+
+2016-07-01 Pedro Alves <palves@redhat.com>
+
+ * darwin-nat.c (darwin_detach): Use target_announce_detach.
+ * inf-ptrace.c (inf_ptrace_detach): Likewise.
+ * nto-procfs.c (procfs_detach): Likewise.
+ * remote.c (remote_detach_1): Likewise.
+ * target.c (target_announce_detach): New function.
+ * target.h (target_announce_detach): New declaration.
+
+2016-06-29 Tom Tromey <tom@tromey.com>
+
+ PR python/20129:
+ * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
+ (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
+ not "name".
+
+2016-06-29 Tom Tromey <tom@tromey.com>
+
+ PR gdb/17210:
+ * target.c (free_memory_read_result_vector): Take a pointer to the
+ VEC as an argument.
+ (read_memory_robust): Install a cleanup for "result".
+ * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update.
+
+2016-06-29 Manish Goregaokar <manish@mozilla.com>
+
+ * rust-lang.c (rust_get_disr_info): Initialize saveptr to NULL.
+
+2016-06-29 Manish Goregaokar <manish@mozilla.com>
+
+ * rust-lang.c (rust_get_disr_info): Use strtok_r instead of strsep.
+
+2016-06-28 Yao Qi <yao.qi@linaro.org>
+
+ * aarch64-tdep.c (aarch64_displaced_step_b): Use int64_t for
+ variable new_offset.
+
+2016-06-27 Manish Goregaokar <manish@mozilla.com>
+
+ * rust-lang.c (rust_print_type, rust_decorations): Print unit
+ types as "()".
+ (rust_print_type): Omit return type for functions returning unit.
+
+2016-06-25 Pierre-Marie de Rodat <derodat@adacore.com>
+
+ * python/py-breakpoint.c (bppy_init): Clear bppy_pending_object
+ when there is an error during the breakpoint creation.
+
+2016-06-25 Tom Tromey <tom@tromey.com>
+
+ * rust-lang.c (rust_get_disr_info, rust_print_type): Fix
+ formatting.
+
+2016-06-25 Manish Goregaokar <manish@mozilla.com>
+
+ PR gdb/20239
+ * rust-lang.c (rust_get_disr_info): Correctly interpret
+ NonZero-optimized enums of arbitrary depth.
+ (rust_print_type): Correctly print NonZero-optimized
+ enums.
+
+2016-06-24 David Taylor <dtaylor@emc.com>
+
+ PR gdb/17520 Structure offset wrong when 1/4 GB or greater.
+ * c-lang.h: Change all parameters, variables, and struct or union
+ members used as struct or union fie3ld offsets from int to
+ LONGEST.
+ * c-valprint.c: Likewise.
+ * cp-abi.c: Likewise.
+ * cp-abi.h: Likewise.
+ * cp-valprint.c: Likewise.
+ * d-valprint.c: Likewise.
+ * dwarf2loc.c: Likewise.
+ * eval.c: Likewise.
+ * extension-priv.h: Likewise.
+ * extension.c: Likewise.
+ * extension.h: Likewise.
+ * findvar.c: Likewise.
+ * gdbtypes.h: Likewise.
+ * gnu-v2-abi.c: Likewise.
+ * gnu-v3-abi.c: Likewise.
+ * go-valprint.c: Likewise.
+ * guile/guile-internal.h: Likewise.
+ * guile/scm-pretty-print.c: Likewise.
+ * jv-valprint.c Likewise.
+ * opencl-lang.c: Likewise.
+ * p-lang.h: Likewise.
+ * python/py-prettyprint.c: Likewise.
+ * python/python-internal.h: Likewise.
+ * spu-tdep.c: Likewise.
+ * typeprint.c: Likewise.
+ * valarith.c: Likewise.
+ * valops.c: Likewise.
+ * valprint.c: Likewise.
+ * valprint.h: Likewise.
+ * value.c: Likewise.
+ * value.h: Likewise.
+ * p-valprint.c: Likewise.
+ * c-typeprint.c (c_type_print_base): When printing offset, use
+ plongest, not %d.
+ * gdbtypes.c (recursive_dump_type): Ditto.
+
+2016-06-24 David Taylor <david.taylor@emc.com>
+
+ * MAINTAINERS (Write After Approval): Add David Taylor.
+
+2016-06-24 John Baldwin <jhb@FreeBSD.org>
+
+ * configure.ac: Check for support for system call LWP fields on
+ FreeBSD.
+ * config.in, configure: Rebuild.
+ * data-directory/Makefile.in (SYSCALLS_FILES): Add freebsd.xml.
+ * fbsd-nat.c (fbsd_wait) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
+ Report system call events.
+ [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]
+ (fbsd_set_syscall_catchpoint): New function.
+ (fbsd_nat_add_target) [HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE]:
+ Set "to_set_syscall_catchpoint" to "fbsd_set_syscall_catchpoint".
+ * fbsd-tdep.c: Include xml-syscall.h
+ (fbsd_get_syscall_number): New function.
+ (fbsd_init_abi): Set XML system call file name.
+ Add "get_syscall_number" gdbarch method.
+ * syscalls/freebsd.xml: New file.
+
+2016-06-24 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-tdep.c: Include "auxv.h".
+ (fbsd_print_auxv_entry): New function.
+ (fbsd_init_abi): Install gdbarch "print_auxv_entry" method.
+
+2016-06-24 John Baldwin <jhb@FreeBSD.org>
+
+ * auxv.c (fprint_auxv_entry): New function.
+ (default_print_auxv_entry): New function.
+ (fprint_target_auxv): Use gdbarch_print_auxv_entry.
+ * auxv.h (enum auxv_format): New enum.
+ (fprint_auxv_entry): Declare.
+ (default_print_auxv_entry): Declare.
+ * gdbarch.sh (print_auxv_entry): New.
+ * gdbarch.c, gdbarch.h: Re-generated.
+
+2016-06-24 John Baldwin <jhb@FreeBSD.org>
+
+ * fbsd-nat.c [KERN_PROC_AUXV] New variable super_xfer_partial.
+ (fbsd_xfer_partial): New function.
+ (fbsd_nat_add_target) [KERN_PROC_AUXV] Set "to_xfer_partial" to
+ "fbsd_xfer_partial".
+
+2016-06-23 Tom Tromey <tom@tromey.com>
+
+ * symtab.c (symbol_find_demangled_name): Loop over languages and
+ use language_sniff_from_mangled_name.
+ * rust-lang.c (rust_sniff_from_mangled_name): New function.
+ (rust_language_defn): Update.
+ * p-lang.c (pascal_language_defn): Update.
+ * opencl-lang.c (opencl_language_defn): Update.
+ * objc-lang.c (objc_sniff_from_mangled_name): New function.
+ (objc_language_defn): Update.
+ * m2-lang.c (m2_language_defn): Update.
+ * language.h (struct language_defn) <la_sniff_from_mangled_name>: New
+ field.
+ (language_sniff_from_mangled_name): Declare.
+ * language.c (language_sniff_from_mangled_name): New function.
+ (unknown_language_defn, auto_language_defn, local_language_defn):
+ Update.
+ * jv-lang.c (java_sniff_from_mangled_name): New function.
+ (java_language_defn): Use it.
+ * go-lang.c (go_sniff_from_mangled_name): New function.
+ (go_language_defn): Use it.
+ * f-lang.c (f_language_defn): Update.
+ * defs.h (enum language): Reorder.
+ * d-lang.c (d_sniff_from_mangled_name): New function.
+ (d_language_defn): Use it.
+ * cp-support.h (gdb_sniff_from_mangled_name): Declare.
+ * cp-support.c (gdb_sniff_from_mangled_name): New function.
+ * c-lang.c (c_language_defn, cplus_language_defn)
+ (asm_language_defn, minimal_language_defn): Update.
+ * ada-lang.c (ada_sniff_from_mangled_name): New function.
+ (ada_language_defn): Use it.
+
+2016-06-23 Tom Tromey <tom@tromey.com>
+
+ * ada-lang.c (ada_extensions): New array.
+ (ada_language_defn): Use it.
+ * c-lang.c (c_extensions): New array.
+ (c_language_defn): Use it.
+ (cplus_extensions): New array.
+ (cplus_language_defn): Use it.
+ (asm_extensions): New array.
+ (asm_language_defn): Use it.
+ (minimal_language_defn): Update.
+ * d-lang.c (d_extensions): New array.
+ (d_language_defn): Use it.
+ * f-lang.c (f_extensions): New array.
+ (f_language_defn): Use it.
+ * go-lang.c (go_language_defn): Update.
+ * jv-lang.c (java_extensions): New array.
+ (java_language_defn): Use it.
+ * language.c (add_language): Call add_filename_language.
+ (unknown_language_defn, auto_language_defn, local_language_defn):
+ Update.
+ * language.h (struct language_defn) <la_filename_extensions>: New
+ field.
+ * m2-lang.c (m2_language_defn): Update.
+ * objc-lang.c (objc_extensions): New array.
+ (objc_language_defn): Use it.
+ * opencl-lang.c (opencl_language_defn): Update.
+ * p-lang.c (p_extensions): New array.
+ (pascal_language_defn): Use it.
+ * rust-lang.c (rust_extensions): New array.
+ (rust_language_defn): Use it.
+ * symfile.c (add_filename_language): No longer static. Make "ext"
+ const.
+ (init_filename_language_table): Remove.
+ (_initialize_symfile): Update.
+ * symfile.h (add_filename_language): Declare.
+
+2016-06-23 Tom Tromey <tom@tromey.com>
+
+ * symfile.c (filename_language_table): Now a VEC.
+ (fl_table_size, fl_table_next): Remove.
+ (add_filename_language): Use VEC_safe_push.
+ (set_ext_lang_command, info_ext_lang_command)
+ (deduce_language_from_filename): Use VEC_iterate.
+ (init_filename_language_table): Use VEC_empty.
+
+2016-06-23 Tom Tromey <tom@tromey.com>
+
+ * python/python.c (gdbpy_parameter): Now static.
+ * python/python-internal.h (gdbpy_parameter): Don't declare.
+
+2016-06-23 Tom Tromey <tom@tromey.com>
+
+ PR gdb/16483:
+ * python/lib/gdb/command/frame_filters.py
+ (InfoFrameFilter.list_frame_filters): Rename to print_list. Print
+ nothing if no filters found. Return value indicating whether
+ filters were printed.
+ (InfoFrameFilter.print_list): Remove.
+ (InfoFrameFilter.invoke): Print message if no frame filters
+ found.
+
+2016-06-21 Walfred Tedeschi <walfred.tedeschi@intel.com>
+
+ * f-valprint.c (f_val_print): Add field names for printing
+ derived types fields.
+
2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
* s390-linux-tdep.c (s390_iterate_over_regset_sections): Fix typo