Sync readline/ to version 7.0 alpha
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 158ebcb56957ea6b094d3f238fe368dc301b4710..732e026c37b15012b8ff1a7ca8060e8248503e42 100644 (file)
@@ -1,3 +1,428 @@
+2015-07-25  Patrick Palka  <patrick@parcs.ath.cx>
+
+       * completer.c (gdb_printable_part): Sync with readline function
+       it is based off of.
+
+2015-07-24  Pedro Alves  <palves@redhat.com>
+
+       * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
+       (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
+       forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
+
+2015-07-24  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/18717
+       * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
+       is resumed, and extend the debug log.
+
+2015-07-24  Pedro Alves  <palves@redhat.com>
+
+       * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
+
+2015-07-24  Pedro Alves  <palves@redhat.com>
+
+       * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
+       sys/ptrace.h.
+       * alpha-linux-nat.c: Likewise.
+       * amd64-linux-nat.c: Likewise.
+       * arm-linux-nat.c: Likewise.
+       * hppa-linux-nat.c: Likewise.
+       * i386-linux-nat.c: Likewise.
+       * ia64-linux-nat.c: Likewise.
+       * linux-fork.c: Likewise.
+       * linux-nat.c: Likewise.
+       * m32r-linux-nat.c: Likewise.
+       * m68klinux-nat.c: Likewise.
+       * mips-linux-nat.c: Likewise.
+       * nat/linux-btrace.c: Likewise.
+       * nat/linux-ptrace.c: Likewise.
+       * nat/linux-ptrace.h
+       * nat/mips-linux-watch.c: Likewise.
+       * nat/x86-linux-dregs.c: Likewise.
+       * ppc-linux-nat.c: Likewise.
+       * s390-linux-nat.c: Likewise.
+       * spu-linux-nat.c: Likewise.
+       * tilegx-linux-nat.c: Likewise.
+       * x86-linux-nat.c: Likewise.
+       * xtensa-linux-nat.c: Likewise.
+
+2015-07-24  Pedro Alves  <palves@redhat.com>
+
+       * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
+       __ptrace_request as first parameter type instead of int.
+       (PTRACE_TYPE_ARG1): Define.
+       * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
+       that casts first argument to PTRACE_TYPE_ARG1.
+       * config.in: Regenerate.
+       * configure: Regenerate.
+
+2015-07-24  Pedro Alves  <palves@redhat.com>
+
+       * gdb_ptrace.h: Move ...
+       * nat/gdb_ptrace.h: ... here.
+       * inf-ptrace.c: Adjust.
+
+2015-07-24  Pedro Alves  <palves@redhat.com>
+
+       * acinclude.m4: Include ptrace.m4.
+       * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
+       * ptrace.m4: ... to this new file.
+
+2015-07-23  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (dwarf2_per_cu_data): Add comment.
+       (load_cu): Handle dummy CUs.
+       (dw2_do_instantiate_symtab, process_queuef): Ditto.
+       (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
+
+2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
+
+       * py-linetable.c (ltpy_get_all_source_lines): Adjust function
+       documentation to say that it returns a list rather than
+       a FrozenSet.
+       (linetable_object_methods): Update the docstring of the
+       "source_line" entry.
+
+2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
+       type to the recursive call instead of the original (maybe
+       TYPE_CODE_TYPEDEF) type.
+
+2015-07-23  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
+       TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
+       If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
+
+2015-07-21  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
+       Move it to nat/aarch64-linux-hw-point.c.
+       (aarch64_linux_child_post_startup_inferior): Update.
+       * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
+       New function.
+       * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
+       Declare it.
+
+2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * common/btrace-common.c (btrace_data_append): Change case label.
+
+2015-07-20  Yao Qi  <yao.qi@linaro.org>
+
+       * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
+       Re-indent the code.
+       * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
+       "unsigned long long".
+
+2015-07-18  Kevin Buettner  <kevinb@redhat.com>
+
+       * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
+       to be set for SEC_ALLOC sections too.
+
+2015-07-17  Yao Qi  <yao.qi@linaro.org>
+
+       * Makefile.in (HFILES_NO_SRCDIR): Add
+       nat/aarch64-linux-hw-point.h.
+       (aarch64-linux-hw-point.o): New rule.
+       * nat/aarch64-linux-hw-point.h: New file.
+       * nat/aarch64-linux-hw-point.c: New file.
+       * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
+       (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
+       (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
+       (AARCH64_HWP_ALIGNMENT): Likewise.
+       (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
+       (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
+       (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
+       (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
+       (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
+       (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
+       (struct aarch64_debug_reg_state): Likewise.
+       (struct arch_lwp_info): Likewise.
+       (aarch64_linux_set_debug_regs): Likewise.
+       (aarch64_notify_debug_reg_change): Remove static.
+       (aarch64_align_watchpoint): Likewise.
+       (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
+       (aarch64_watchpoint_length): Likewise.
+       (aarch64_point_encode_ctrl_reg): Likewise
+       (aarch64_point_is_aligned): Likewise.
+       (aarch64_dr_state_insert_one_point): Likewise.
+       (aarch64_dr_state_remove_one_point): Likewise.
+       (aarch64_handle_breakpoint): Likewise.
+       (aarch64_handle_aligned_watchpoint): Likewise.
+       (aarch64_handle_unaligned_watchpoint): Likewise.
+       (aarch64_handle_watchpoint): Likewise.
+       * config/aarch64/linux.mh (NAT_FILE): Add
+       aarch64-linux-hw-point.o.
+
+2015-07-17  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
+       state and don't call aarch64_get_debug_reg_state.  All callers
+       update.
+       (aarch64_linux_insert_hw_breakpoint): Call
+       aarch64_get_debug_reg_state earlier.
+       (aarch64_linux_remove_hw_breakpoint): Likewise.
+       (aarch64_handle_aligned_watchpoint): Add argument state and
+       don't call aarch64_get_debug_reg_state.  All callers update.
+       (aarch64_handle_unaligned_watchpoint): Likewise.
+       (aarch64_handle_watchpoint): Add argument state.
+       (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
+       earlier.
+       (aarch64_linux_remove_watchpoint): Likewise.
+
+2015-07-17  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
+       debug_printf.
+       (aarch64_handle_unaligned_watchpoint): Likewise.
+
+2015-07-17  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
+       argument type's type to 'enum target_hw_bp_type'.
+       (aarch64_dr_state_remove_one_point): Likewise.
+       (aarch64_handle_breakpoint): Likewise.
+       (aarch64_linux_insert_hw_breakpoint): Likewise.
+       (aarch64_linux_remove_hw_breakpoint): Likewise.
+       (aarch64_handle_aligned_watchpoint): Likewise.
+
+2015-07-17  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
+       ptid_get_pid instead of get_thread_id.
+
+2015-07-17  Yao Qi  <yao.qi@linaro.org>
+
+       * remote.c (get_current_thread): Initialise ptid to null_ptid.
+       (add_current_inferior_and_thread): Don't initialise ptid.
+
+2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
+
+       * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
+       unavailable if invalid.
+
+2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Revert the previous 6 commits:
+       Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
+       Move gdb_regex* to common/
+       Prepare linux_find_memory_regions_full & co. for move
+       Move linux_find_memory_regions_full & co.
+       gdbserver build-id attribute generator
+       Validate symbol file using build-id
+
+2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
+           Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Validate symbol file using build-id.
+       * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
+       and 'show validate-build-id'.  Add build-id attribute.
+       * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
+       * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
+       * solib-frv.c (_initialize_frv_solib): Ditto.
+       * solib-spu.c (set_spu_solib_ops): Ditto.
+       * solib-svr4.c: Include rsp-low.h.
+       (NOTE_GNU_BUILD_ID_NAME): New define.
+       (svr4_validate): New function.
+       (svr4_copy_library_list): Duplicate field build_id.
+       (library_list_start_library): Parse 'build-id' attribute.
+       (svr4_library_attributes): Add 'build-id' attribute.
+       (_initialize_svr4_solib): Assign validate value.
+       * solib-target.c (solib.h): Include.
+       (_initialize_solib_target): Assign validate value.
+       * solib.c (validate_build_id, show_validate_build_id): New.
+       (solib_map_sections): Use ops->validate.
+       (clear_so): Free build_id.
+       (default_solib_validate): New function.
+       (_initialize_solib): Add "validate-build-id".
+       * solib.h (default_solib_validate): New declaration.
+       * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
+       (target_so_ops): New field 'validate'.
+
+2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
+           Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       gdbserver build-id attribute generator.
+       * features/library-list-svr4.dtd (library-list-svr4): New
+       'build-id' attribute.
+
+2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
+           Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Move linux_find_memory_regions_full & co.
+       * linux-tdep.c (nat/linux-maps.h): Include.
+       (gdb_regex.h): Remove the include.
+       (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
+       (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
+       (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
+       (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
+       * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
+       and target/target.h.
+       (struct smaps_vmflags, read_mapping, decode_vmflags)
+       (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
+       (linux_find_memory_regions_full): Move from linux-tdep.c.
+       * nat/linux-maps.h (read_mapping): New declaration.
+       (linux_find_memory_region_ftype, enum filterflags): Moved from
+       linux-tdep.c.
+       (linux_find_memory_regions_full): New declaration.
+       * target.c (target/target-utils.h): Include.
+       (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
+       (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
+       definitions to target/target-utils.c.
+       * target.h (target_fileio_read_stralloc): Move it to target/target.h.
+       * target/target-utils.c (read_alloc, read_stralloc): Move definitions
+       from target.c.
+       * target/target-utils.h (read_alloc_pread_ftype): New typedef.
+       (read_alloc): New declaration.
+       (read_stralloc_func_ftype): New typedef.
+       (read_stralloc): New declaration.
+       * target/target.h (target_fileio_read_stralloc): Move it from target.h.
+
+2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
+           Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Prepare linux_find_memory_regions_full & co. for move.
+       * linux-tdep.c (linux_find_memory_region_ftype): Comment.
+       (linux_find_memory_regions_full): Change signature and prepare
+       for moving to linux-maps.
+       (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
+       (linux_find_memory_regions_thunk): New.
+       (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
+       (linux_find_memory_regions_gdb): New.
+       (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
+       (linux_make_mappings_corefile_notes): Use
+       linux_find_memory_regions_gdb.
+       * target.c (read_alloc_pread_ftype): New typedef.
+       (target_fileio_read_alloc_1_pread): New function.
+       (read_alloc): Refactor from target_fileio_read_alloc_1.
+       (read_stralloc_func_ftype): New typedef.
+       (target_fileio_read_alloc_1): New implementation. Use read_alloc.
+       (read_stralloc): Refactored from target_fileio_read_stralloc.
+       (target_fileio_read_stralloc): New implementation, use read_stralloc.
+
+2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
+       common/gdb_regex.h.
+       (COMMON_OBS): Add gdb_regex.o.
+       (gdb_regex.o): New.
+       * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
+       --without-included-regex and USE_INCLUDED_REGEX.
+       * common/gdb_regex.c: New file from utils.c functions.
+       * common/gdb_regex.h: Move it here from gdb_regex.h, update include
+       file wrapping define name.
+       * configure: Rebuilt.
+       * configure.ac (gdb_use_included_regex, --without-included-regex)
+       (USE_INCLUDED_REGEX): Move them to common/common.m4.
+       * gdb_regex.h: Move it to common/gdb_regex.h.
+       * utils.c: Remove include gdb_regex.h.
+       (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
+       (compile_rx_or_error): Move them to common/gdb_regex.c.
+
+2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
+           Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
+       * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
+       common/target-utils.h.
+       (COMMON_OBS): Add target-utils.o.
+       (linux-maps.o, target-utils.o): New.
+       * target/target-utils.c: New file.
+       * target/target-utils.h: New file.
+       * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
+       * config/i386/linux64.mh (NATDEPFILES): Ditto.
+       * nat/linux-maps.c: New file.
+       * nat/linux-maps.h: New file.
+
+2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
+           Pedro Alves <palves@redhat.com>
+
+       * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
+       (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
+       (perf_event_read_bts): Change the type of SIZE and READ.
+       (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
+       and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
+       to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
+       mmap page.
+       (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
+       buffer size to UINT_MAX.
+       (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
+       DATA_TAIL.
+       * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
+       <last_head>: Change type.
+       * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
+       * common/btrace-common.c (btrace_data_append): Change the type of
+       SIZE.
+       * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
+       check.
+
+2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * gdbtypes.h (CHECK_TYPEDEF): Remove.
+       * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
+       with check_typedef.
+       * ada-lang.c (decode_constrained_packed_array_type): Likewise.
+       (ada_array_length): Likewise.
+       (find_parallel_type_by_descriptive_type): Likewise.
+       (ada_check_typedef): Likewise.
+       * arm-tdep.c (arm_return_in_memory): Likewise.
+       * ax-gdb.c (gen_trace_static_fields): Likewise.
+       (gen_struct_ref_recursive): Likewise.
+       * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
+       (variable: block COLONCOLON name): Likewise.
+       (qualified_name: TYPENAME COLONCOLON name): Likewise.
+       * c-lang.c (classify_type): Likewise.
+       * c-typeprint.c (c_print_type): Likewise.
+       (c_print_typedef): Likewise.
+       (c_type_print_base): Likewise.
+       * c-valprint.c (c_val_print): Likewise.
+       * compile/compile-c-types.c (convert_type): Likewise.
+       * compile/compile-object-load.c (get_out_value_type): Likewise.
+       * completer.c (add_struct_fields): Likewise.
+       (expression_completer): Likewise.
+       * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
+       (cp_lookup_nested_symbol_1): Likewise.
+       (cp_lookup_nested_symbol): Likewise.
+       * cp-valprint.c (cp_print_value_fields): Likewise.
+       (cp_print_static_field): Likewise.
+       * d-valprint.c (d_val_print): Likewise.
+       * eval.c (evaluate_subexp_standard): Likewise.
+       (evaluate_subexp_for_sizeof): Likewise.
+       * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
+       * f-typeprint.c (f_type_print_base): Likewise.
+       * f-valprint.c (f_val_print): Likewise.
+       * gdbtypes.c (get_discrete_bounds): Likewise.
+       (create_array_type_with_stride): Likewise.
+       (type_name_no_tag_or_error): Likewise.
+       (lookup_struct_elt_type): Likewise.
+       (get_unsigned_type_max): Likewise.
+       (internal_type_vptr_fieldno): Likewise.
+       (set_type_vptr_fieldno): Likewise.
+       (internal_type_vptr_basetype): Likewise.
+       (set_type_vptr_basetype): Likewise.
+       (get_vptr_fieldno): Likewise.
+       (is_integral_type): Likewise.
+       (is_scalar_type): Likewise.
+       (is_scalar_type_recursive): Likewise.
+       (distance_to_ancestor): Likewise.
+       (is_unique_ancestor_worker): Likewise.
+       (check_types_equal): Likewise.
+       * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
+
+2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
+
+       * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
+       also test for language_d.
+       (dwarf2_compute_name): Likewise.
+       (read_func_scope): Likewise.
+       (read_structure_type): Likewise.
+       (new_symbol_full): Likewise.
+       (determine_prefix): Likewise.
+       (read_import_statement): Use dot as the separator for language_d.
+       (typename_concat): Likewise, but don't prefix the D main function.
+
 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
 
        * nat/linux-namespaces.c (setns): Rename from this ...
        (rx_frame_this_id): Rename parameter `this_prologue_cache' to
        `this_cache'.
        (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
-       `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and 
+       `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
        RX_FRAME_TYPE_FAST_INTERRUPT.
        (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
        (rx_frame_sniffer, rx_exception_sniffer): New functions.
 
 2015-03-18  Tristan Gingold  <gingold@adacore.com>
 
-        * 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.
+       * 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 <gbenson@redhat.com>
 
        * config.in: Regenerate.
        * configure: Regenerate.
        * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
-        define.
+       define.
        (fbsd_find_memory_regions): Use kinfo_getvmmap to
        enumerate memory regions if present.
 
This page took 0.029686 seconds and 4 git commands to generate.