+
+ * btrace.c: Include regcache.h.
+ (btrace_add_pc): New.
+ (btrace_enable): Call btrace_add_pc.
+ (btrace_is_empty): New.
+ * btrace.h (btrace_is_empty): New.
+ * record-btrace.c (require_btrace, record_btrace_info): Call
+ btrace_is_empty.
+
+
+ * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
+ Support delta reads.
+ (linux_disable_btrace): Change return type.
+ * common/linux-btrace.h (linux_read_btrace): Change parameters
+ and return type to allow error reporting. Update users.
+ (linux_disable_btrace): Change return type. Update users.
+ * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
+ New.
+ (btrace_error): New.
+ (btrace_block) <begin>: Comment on BEGIN == 0.
+ * btrace.c (btrace_compute_ftrace): Start from the end of
+ the current trace.
+ (btrace_stitch_trace, btrace_clear_history): New.
+ (btrace_fetch): Read delta trace, return if replaying.
+ (btrace_clear): Move clear history code to btrace_clear_history.
+ (parse_xml_btrace): Throw an error if parsing failed.
+ * target.h (struct target_ops) <to_read_btrace>: Change parameters
+ and return type to allow error reporting.
+ (target_read_btrace): Change parameters and return type to allow
+ error reporting.
+ * target.c (target_read_btrace): Update.
+ * remote.c (remote_read_btrace): Support delta reads. Pass
+ errors on.
+ * NEWS: Announce it.
+
+
+ * record.h (record_btrace_frame_unwind)
+ (record_btrace_tailcall_frame_unwind): New declarations.
+ * dwarf2-frame: Include record.h
+ (dwarf2_frame_cfa): Throw an error for btrace frames.
+ * record-btrace.c: Include hashtab.h.
+ (btrace_get_bfun_name): New.
+ (btrace_call_history): Call btrace_get_bfun_name.
+ (struct btrace_frame_cache): New.
+ (bfcache): New.
+ (bfcache_hash, bfcache_eq, bfcache_new): New.
+ (btrace_get_frame_function): New.
+ (record_btrace_frame_unwind_stop_reason): Allow unwinding.
+ (record_btrace_frame_this_id): Compute own id.
+ (record_btrace_frame_prev_register): Provide PC, throw_error
+ for all other registers.
+ (record_btrace_frame_sniffer): Detect btrace frames.
+ (record_btrace_tailcall_frame_sniffer): New.
+ (record_btrace_frame_dealloc_cache): New.
+ (record_btrace_frame_unwind): Add new functions.
+ (record_btrace_tailcall_frame_unwind): New.
+ (_initialize_record_btrace): Allocate cache.
+ * btrace.c (btrace_clear): Call reinit_frame_cache.
+ * NEWS: Announce it.
+
+
+ * record-btrace.c (record_btrace_set_replay)
+ (record_btrace_goto_begin, record_btrace_goto_end)
+ (record_btrace_goto): New.
+ (init_record_btrace_ops): Initialize them.
+ * NEWS: Announce it.
+
+
+ * record-btrace.c (record_btrace_find_new_threads)
+ (record_btrace_thread_alive): New.
+ (init_record_btrace_ops): Initialize to_find_new_threads and
+ to_thread_alive.
+
+
+ * record-btrace.c (record_btrace_resume): New.
+ (record_btrace_wait): New.
+ (init_record_btrace_ops): Initialize to_wait and to_resume.
+
+
+ * record-btrace.c (record_btrace_xfer_partial)
+ (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
+ (record_btrace_allow_memory_access): New.
+ (init_record_btrace_ops): Initialize new methods.
+ * target.c (raw_memory_xfer_partial): Bail out if target reports
+ that this memory is not available.
+
+
+ * target.h (target_ops) <to_insert_breakpoint>
+ <to_remove_breakpoint>: Add target_ops parameter.
+ (forward_target_insert_breakpoint): New.
+ (forward_target_remove_breakpoint): New.
+ (memory_remove_breakpoint, memory_insert_breakpoint):
+ Add target_ops parameter.
+ * target.c (target_insert_breakpoint): Split into this and ...
+ (forward_target_insert_breakpoint): ... this.
+ (target_remove_breakpoint): Split into this and ...
+ (forward_target_remove_breakpoint): ... this.
+ (debug_to_insert_breakpoint): Add target_ops parameter.
+ Call forward_target_insert_breakpoint.
+ (debug_to_remove_breakpoint): Add target_ops parameter.
+ Call forward_target_remove_breakpoint.
+ (update_current_target): Do not inherit or default to_insert_breakpoint
+ and to_remove_breakpoint.
+ * corelow.c (ignore): Add target_ops parameter.
+ * exec.c (ignore): Add target_ops parameter.
+ * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
+ Add target_ops parameter.
+ * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
+ Add target_ops parameter.
+ * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
+ Add target_ops parameter.
+ * record-full.c (record_full_beneath_to_insert_breakpoint)
+ (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
+ (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
+ (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
+ (record_full_core_remove_breakpoint): Add target_ops parameter.
+ Update users.
+ (record_full_beneath_to_insert_breakpoint_ops)
+ (record_full_beneath_to_remove_breakpoint_ops)
+ (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
+ (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
+ tmp_to_remove_breakpoint_ops,
+ record_full_beneath_to_insert_breakpoint_ops, and
+ record_full_beneath_to_remove_breakpoint_ops.
+ * remote-m32r-sdi.c (m32r_insert_breakpoint)
+ (m32r_remove_breakpoint): Add target_ops parameter.
+ * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
+ Add target_ops parameter.
+ * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
+ Add target_ops parameter.
+
+
+ * record-btrace.c: Include frame-unwind.h.
+ (record_btrace_frame_unwind_stop_reason)
+ (record_btrace_frame_this_id, record_btrace_frame_prev_register)
+ (record_btrace_frame_sniffer, record_btrace_frame_unwind):
+ New.
+ (init_record_btrace_ops): Install it.
+
+
+ * frame.c (get_frame_unwind_stop_reason): Unconditionally call
+ get_prev_frame_1.
+
+
+ * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
+ earlier.
+
+
+ * frame-unwind.c: Include target.h.
+ (frame_unwind_try_unwinder): New function with code from ...
+ (frame_unwind_find_by_frame): ... here. New variable
+ unwinder_from_target, call also target_get_unwinder)
+ (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
+ * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
+ * target.h (struct target_ops): New fields to_get_unwinder and
+ to_get_tailcall_unwinder.
+ (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
+
+
+ * record-btrace.c (record_btrace_fetch_registers)
+ (record_btrace_store_registers)
+ (record_btrace_to_prepare_to_store): New.
+ (init_record_btrace_ops): Add the above.
+
+
+ * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
+ * target.h (struct target_ops) <to_prepare_to_store>: Add
+ argument.
+ (target_prepare_to_store): Add argument.
+ * target.c (debug_to_prepare_to_store): Add argument.
+ (update_current_target): Update.
+ * remote.c (remote_prepare_to_store): Add 'self' argument.
+ * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
+ * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
+ * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
+ * record-full.c (record_full_core_prepare_to_store): Add 'self'
+ argument.
+ * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
+ * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
+ * monitor.c (monitor_prepare_to_store): Add 'self' argument.
+ * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
+ * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
+
+
+ * btrace.h (replay) <replay>: New.
+ (btrace_is_replaying): New.
+ * btrace.c (btrace_clear): Free replay iterator.
+ (btrace_is_replaying): New.
+ * record-btrace.c (record_btrace_is_replaying): New.
+ (record_btrace_info): Print insn number if replaying.
+ (record_btrace_insn_history): Start at replay position.
+ (record_btrace_call_history): Start at replay position.
+ (init_record_btrace_ops): Init to_record_is_replaying.
+
+
+ * record-btrace.c (record_btrace_insn_history_range): Include
+ end.
+ (record_btrace_insn_history_from): Adjust range.
+ (record_btrace_call_history_range): Include
+ end.
+ (record_btrace_call_history_from): Adjust range.
+ * NEWS: Announce changes.
+
+
+ * record.h (enum record_print_flag)
+ <record_print_indent_calls>: New.
+ * record.c (get_call_history_modifiers): Recognize /c modifier.
+ (_initialize_record): Document /c modifier.
+ * record-btrace.c (btrace_call_history): Add btinfo parameter.
+ Reorder fields. Optionally indent the function name. Update
+ all users.
+ * NEWS: Announce changes.
+
+
+ * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
+
+
+ * btrace.c (ftrace_new_function): Start counting at one.
+ * record-btrace.c (record_btrace_info): Adjust number of calls
+ and insns.
+ * NEWS: Announce it.
+
+
+ * record-btrace.c (btrace_call_history_insn_range): Print
+ insn range as [begin, end].
+
+
+ * btrace.h (struct btrace_func_link): New.
+ (enum btrace_function_flag): New.
+ (struct btrace_inst): Rename to ...
+ (struct btrace_insn): ...this. Update all users.
+ (struct btrace_func) <ibegin, iend>: Remove.
+ (struct btrace_func_link): New.
+ (struct btrace_func): Rename to ...
+ (struct btrace_function): ...this. Update all users.
+ (struct btrace_function) <segment, flow, up, insn, insn_offset)
+ (number, level, flags>: New.
+ (struct btrace_insn_iterator): Rename to ...
+ (struct btrace_insn_history): ...this.
+ Update all users.
+ (struct btrace_insn_iterator, btrace_call_iterator): New.
+ (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
+ (struct btrace_target_info) <begin, end, level>
+ <insn_history, call_history>: New.
+ (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
+ (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
+ (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
+ (btrace_call_number, btrace_call_begin, btrace_call_end)
+ (btrace_call_prev, btrace_call_next, btrace_call_cmp)
+ (btrace_find_function_by_number, btrace_set_insn_history)
+ (btrace_set_call_history): New.
+ * btrace.c (btrace_init_insn_iterator)
+ (btrace_init_func_iterator, compute_itrace): Remove.
+ (ftrace_print_function_name, ftrace_print_filename)
+ (ftrace_skip_file): Change
+ parameter to const.
+ (ftrace_init_func): Remove.
+ (ftrace_debug): Use new btrace_function fields.
+ (ftrace_function_switched): Also consider gaining and
+ losing symbol information).
+ (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
+ (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
+ (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
+ New.
+ (ftrace_new_function): Move. Remove debug print.
+ (ftrace_update_lines, ftrace_update_insns): New.
+ (ftrace_update_function): Check for call, ret, and jump.
+ (compute_ftrace): Renamed to ...
+ (btrace_compute_ftrace): ...this. Rewritten to compute call
+ stack.
+ (btrace_fetch, btrace_clear): Updated.
+ (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
+ (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
+ (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
+ (btrace_call_number, btrace_call_begin, btrace_call_end)
+ (btrace_call_prev, btrace_call_next, btrace_call_cmp)
+ (btrace_find_function_by_number, btrace_set_insn_history)
+ (btrace_set_call_history): New.
+ * record-btrace.c (require_btrace): Use new btrace thread
+ info fields.
+ (record_btrace_info, btrace_insn_history)
+ (record_btrace_insn_history, record_btrace_insn_history_range):
+ Use new btrace thread info fields and new iterator.
+ (btrace_func_history_src_line): Rename to ...
+ (btrace_call_history_src_line): ...this. Use new btrace
+ thread info fields.
+ (btrace_func_history): Rename to ...
+ (btrace_call_history): ...this. Use new btrace thread info
+ fields and new iterator.
+ (record_btrace_call_history, record_btrace_call_history_range):
+ Use new btrace thread info fields and new iterator.
+
+
+ * frame.h (frame_id_build_unavailable_stack_special): New.
+ * frame.c (frame_id_build_unavailable_stack_special): New.
+
+
+ * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
+ (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
+ (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
+ to gdbarch.
+ * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
+ (i386_insn_is_jump, i386_jmp_p): New.
+ (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
+ insn_is_jump to gdbarch.
+ * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
+ * gdbarch.h: Regenerated.
+ * gdbarch.c: Regenerated.
+ * arch-utils.h (default_insn_is_call, default_insn_is_ret)
+ (default_insn_is_jump): New.
+ * arch-utils.c (default_insn_is_call, default_insn_is_ret)
+ (default_insn_is_jump): New.
+
+
+ * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
+ Change to ...
+ (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
+ (btrace_read_type) <btrace_read_new>: Change to ...
+ (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
+
+
+ * common/linux-btrace.c (linux_read_btrace): Free trace from
+ previous iteration.
+
+
+ * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
+ uint32_t.
+
+
+ * dbxread.c (process_one_symbol): Use set_objfile_main_name.
+ * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
+ * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
+ (set_objfile_main_name): New function.
+ * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
+ language_of_main>: New fields.
+ (set_objfile_main_name): Declare.
+ * symtab.c (find_main_name): Loop over objfiles to find the main
+ name and language.
+ (set_main_name): Now static.
+ (get_main_info): Add comment.
+ * symtab.h (set_main_name): Don't declare.
+
+
+ * symtab.c (main_progspace_key): New global.
+ (struct main_info): New.
+ (name_of_main, language_of_main): Remove.
+ (get_main_info, main_info_cleanup): New function.
+ (set_main_name, main_name, main_language): Use get_main_info.
+ (_initialize_symtab): Initialize main_progspace_key.
+
+
+ * dbxread.c (process_one_symbol): Update.
+ * dwarf2read.c (read_partial_die): Update.
+ * symfile.c (set_initial_language): Call main_language.
+ * symtab.c (language_of_main): Now static.
+ (set_main_name): Add 'lang' parameter.
+ (find_main_name): Update.
+ (main_language): New function.
+ (symtab_observer_executable_changed): Update.
+ * symtab.h (set_main_name): Update.
+ (language_of_main): Remove.
+ (main_language): Declare.
+
+
+ * symfile.c (init_entry_point_info): Use new "initialized" field.
+ Update.
+ * objfiles.h (struct entry_point) <initialized>: New field.
+ (struct objfile_per_bfd_storage) <ei>: New field, moved from...
+ (struct objfile) <ei>: ...here. Remove.
+ * objfiles.c (entry_point_address_query): Update.
+
+
+ * objfiles.c (entry_point_address_query): Relocate entry point
+ address.
+ (objfile_relocate1): Do not relocate entry point address.
+ * objfiles.h (struct entry_info) <entry_point>: Update comment.
+ <the_bfd_section_index>: New field.
+ * symfile.c (init_entry_point_info): Find the entry point's
+ section.
+
+
+ * solib-frv.c (enable_break): Use entry_point_address_query.
+
+
+ * NEWS: Add note on improved process record-replay on
+ arm*-linux* targets.
+
+
+ * arm-tdep.c (enum arm_record_result): New enum.
+ (arm_record_unsupported_insn): New function.
+ (arm_record_coproc_data_proc): Removed.
+ (thumb2_record_ld_st_multiple): New function.
+ (thumb2_record_ld_st_dual_ex_tbb): New function.
+ (thumb2_record_data_proc_sreg_mimm): New function.
+ (thumb2_record_ps_dest_generic): New function.
+ (thumb2_record_branch_misc_cntrl): New function.
+ (thumb2_record_str_single_data): New function.
+ (thumb2_record_ld_mem_hints): New function.
+ (thumb2_record_ld_word): New function.
+ (thumb2_record_lmul_lmla_div): New function.
+ (thumb2_record_decode_insn_handler): New function.
+ (decode_insn): Add thumb32 instruction handlers.
+
+
+ * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
+ (struct arm_linux_record_tdep): Declare.
+ (arm_canonicalize_syscall): New function.
+ (arm_all_but_pc_registers_record): New function.
+ (arm_linux_syscall_record): New function.
+ (arm_linux_init_abi): Add syscall recording constructs.
+ * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
+ decoding. (arm_record_coproc_data_proc): Update arm syscall
+ decoding.
+ * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
+ <arm_syscall_record>: New field.
+ * configure.tgt (arm*-*-linux*): Add linux-record.o to
+ gdb_target_obs.
+
+
+ * arm-tdep.c (thumb_record_misc): Update to use sp as base
+ register for push instruction recording.
+
+
+ * arm-tdep.c (thumb_record_misc): Update to correct logical
+ error while recording ldm, ldmia and pop instructions.
+
+
+ * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
+
+
+ * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
+ (go32_resume, go32_fetch_registers, store_register)
+ (go32_store_registers, go32_prepare_to_store)
+ (go32_xfer_memory, go32_files_info, go32_kill_inferior)
+ (go32_create_inferior, go32_can_run, go32_terminal_init)
+ (go32_terminal_inferior, go32_terminal_ours): Delete forward
+ declarations.
+
+
+ * target.h (async_callback_ftype): New typedef.
+ (struct target_ops) <to_async>: Use it.
+
+
+ * python/py-value.c (get_field_type): Remove unnecessary curly
+ braces for single-statement if block.
+
+
+ * python/py-type.c (convert_field): Add missing empty line
+ after declarations.
+
+
+ * symfile.h (expand_symtabs_matching): Renamed from
+ expand_partial_symbol_names. Update prototype.
+ (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
+ * symfile.c (expand_symtabs_matching): Renamed from
+ expand_partial_symbol_names. New args file_matcher, kind.
+ Rename arg fun to symbol_matcher.
+ (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
+ * ada-lang.c (ada_complete_symbol_matcher): Renamed from
+ ada_expand_partial_symbol_name.
+ (ada_make_symbol_completion_list): Update to call
+ expand_symtabs_matching.
+ (ada_add_global_exceptions): Call expand_symtabs_matching.
+ * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
+ call map_symbol_filenames.
+ * symtab.c (sources_info): Update to call map_symbol_filenames.
+ (search_symbols): Call expand_symtabs_matching.
+ (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
+ (default_make_symbol_completion_list_break_on): Update to call
+ expand_symtabs_matching.
+ (make_source_files_completion_list): Update to call
+ map_symbol_filenames.
+
+
+ * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
+ (expand_symtabs_symbol_matcher_ftype): New typedef.
+ (quick_symbol_functions.expand_symtabs_matching): Update to use.
+ expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
+ * symfile.c (expand_partial_symbol_names): Update to use
+ expand_symtabs_symbol_matcher_ftype.
+ * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
+ expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
+ Arg name_matcher renamed to symbol_matcher.
+ * psymtab.c (recursively_search_psymtabs): Update to use
+ expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
+ sym_matcher.
+ (expand_symtabs_matching_via_partial): Update to use
+ expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
+ Arg name_matcher renamed to symbol_matcher.
+
+
+ * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
+ (map_partial_symbol_filenames): Ditto.
+ * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
+ (map_partial_symbol_filenames): Ditto.
+ * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
+ (map_partial_symbol_filenames): Ditto.
+ * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
+ (map_partial_symbol_filenames): Ditto.
+ * symtab.c: Delete #include "psymtab.h".
+
+
+ * infrun.c (use_displaced_stepping): Use find_record_target
+ instead of RECORD_IS_USED.
+ (adjust_pc_after_break): Use record_full_is_used instead of
+ RECORD_IS_USED.
+ * record-btrace.c (record_btrace_open): Call record_preopen
+ instead of checking RECORD_IS_USED.
+ * record-full.c (record_full_shortname)
+ (record_full_core_shortname): New globals.
+ (record_full_is_used): New function.
+ (find_full_open): Call record_preopen instead of checking
+ RECORD_IS_USED.
+ (init_record_full_ops): Set the target's shortname to
+ record_full_shortname.
+ (init_record_full_core_ops): Set the target's shortname to
+ record_full_core_shortname.
+ * record-full.h (record_full_is_used): Declare.
+ * record.c (find_record_target): Make extern.
+ (record_preopen): New function.
+ * record.h (RECORD_IS_USED): Delete macro.
+ (find_record_target, record_preopen): Declare functions.
+
+
+ * gdbarch.sh (core_xfer_shared_libraries): Change its argument
+ 'len''s type to ULONGEST.
+ (core_xfer_shared_libraries_aix): Likewise.
+ * gdbarch.c, gdbarch.h: Regenerated.
+ * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
+ Change type of 'len' to ULONGEST.
+ * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
+ (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
+
+
+ * common/linux-osdata.c (linux_xfer_osdata_processes): Change
+ type of 'len' to ULONGEST.
+ (linux_xfer_osdata_processgroups): Likewise.
+ (linux_xfer_osdata_threads): Likewise.
+ (linux_xfer_osdata_fds): Likewise.
+ (linux_xfer_osdata_isockets): Likewise.
+ (linux_xfer_osdata_shm): Likewise.
+ (linux_xfer_osdata_sem): Likewise.
+ (linux_xfer_osdata_msg): Likewise.
+ (linux_common_xfer_osdata): Likewise.
+ (struct osdata_type) <getter>: Likewise.
+ * common/linux-osdata.h (linux_common_xfer_osdata): Update
+ the declaration.
+
+
+ * target.h (target_xfer_partial_ftype): Update.
+ (struct target_ops) <to_xfer_partial>: Change 'len' type to
+ ULONGEST.
+ * aix-thread.c (aix_thread_xfer_partial): Change type of
+ argument 'len' to ULONGEST.
+ * auxv.c (procfs_xfer_auxv): Likewise.
+ (ld_so_xfer_auxv): Likewise.
+ (memory_xfer_auxv): Likewise.
+ * bfd-target.c (target_bfd_xfer_partial): Likewise.
+ * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
+ * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
+ * corelow.c (core_xfer_partial): Likewise.
+ * ctf.c (ctf_xfer_partial): Likewise.
+ * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
+ '%u'.
+ (darwin_read_dyld_info): Likewise.
+ (darwin_xfer_partial): Likewise.
+ * exec.c (section_table_xfer_memory_partial): Likewise.
+ (exec_xfer_partial): Likewise.
+ * exec.h (section_table_xfer_memory_partial): Update
+ declaration.
+ * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
+ instead of plongest.
+ (gnu_xfer_partial): Likewise.
+ * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
+ (ia64_hpux_xfer_solib_got): Likewise.
+ (ia64_hpux_xfer_partial): Likewise.
+ * ia64-linux-nat.c (ia64_linux_xfer_partial):
+ * inf-ptrace.c (inf_ptrace_xfer_partial):
+ * inf-ttrace.c (inf_ttrace_xfer_partial):
+ * linux-nat.c (linux_xfer_siginfo): Likewise.
+ (linux_nat_xfer_partial): Likewise.
+ (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
+ (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
+ * monitor.c (monitor_xfer_memory): Likewise.
+ (monitor_xfer_partial): Likewise.
+ * procfs.c (procfs_xfer_partial): Likewise.
+ * record-full.c (record_full_xfer_partial): Likewise.
+ (record_full_core_xfer_partial): Likewise.
+ * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
+ instead of plongest.
+ (gdbsim_xfer_partial): Likewise.
+ * remote.c (remote_xfer_partial): Likewise.
+ * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
+ * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
+ declaration.
+ * rs6000-nat.c (rs6000_xfer_partial): Likewise.
+ (rs6000_xfer_shared_libraries): Likewise.
+ * sol-thread.c (sol_thread_xfer_partial): Likewise.
+ * sparc-nat.c (sparc_xfer_wcookie): Likewise.
+ (sparc_xfer_partial): Likewise.
+ * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
+ (spu_xfer_partial): Likewise.
+ * spu-multiarch.c (spu_xfer_partial): Likewise.
+ * target.c (target_read_live_memory): Likewise.
+ (memory_xfer_live_readonly_partial): Likewise.
+ (memory_xfer_partial, memory_xfer_partial_1): Likewise.
+ (target_xfer_partial, default_xfer_partial): Likewise.
+ (current_xfer_partial): Likewise.
+ * tracepoint.c (tfile_xfer_partial): Likewise.
+ * windows-nat.c (windows_xfer_memory): Likewise. Call
+ pulongest instead of plongest.
+ (windows_xfer_partial): Likewise.
+ (windows_xfer_shared_libraries): Likewise.
+
+
+ * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
+ target_xfer_partial_ftype.
+
+
+ PR python/15464
+ PR python/16113
+ * valops.c (value_struct_elt_bitpos): New function
+ * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
+ object to 'None' if the field name is an empty string ("").
+ * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
+ attribute to look for a field when 'name' is 'None'.
+ (get_field_type): New function
+
+
+ PR symtab/16426
+ * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
+ (try_open_dwop_file): Ditto.
+ * gdb_bfd.c: #include "vec.h".
+ (bfdp): New typedef.
+ (struct gdb_bfd_data): New member included_bfds.
+ (gdb_bfd_unref): Unref all included bfds.
+ (gdb_bfd_record_inclusion): New function.
+ * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
+
+
+ * gdbcore.h (deprecated_core_resize_section_table): Remove.
+
+
+ * defs.h (use_windows): Remove.
+ * gdb.c (main): Update.
+ * main.c (captured_main, gdb_main): Update.
+ * main.h (struct captured_main_args) <use_windows>: Remove.
+ * top.c (use_windows): Remove.
+
+
+ * defs.h (deprecated_flush_hook): Remove.
+
+
+ PR threads/16216
+ * linux-thread-db.c (try_thread_db_load): Add parameter
+ check_auto_load_safe. Move here the file_is_auto_load_safe call.
+ (try_thread_db_load_from_pdir_1): Move it there from here.
+ (try_thread_db_load_from_sdir): Update caller.
+ (try_thread_db_load_from_dir): Move it there from here.
+
+
+ * regformats/regdat.sh: Always rewrite the register file.
+
+
+ * Makefile.in (CHECK_HEADERS): New variable.
+ (check-headers:): New rule.
+
+
+ * cli/cli-setshow.c (do_set_command): Update.
+ * defs.h (deprecated_set_hook): Remove.
+ * top.c (deprecated_set_hook): Remove.
+
+
+ * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
+ the tracepoint if the PC is a pseudo-register.
+
+
+ * defs.h (XCALLOC): Remove.
+ * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
+ (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
+ * dwarf2loc.c (allocate_piece_closure): Likewise.
+ * elfread.c (elf_symfile_segments): Likewise.
+ (elf_symfile_segments): Likewise.
+ * gdbtypes.c (copy_type_recursive): Likewise.
+ * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
+ * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
+ * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
+ XCALLOC.
+ * mt-tdep.c (mt_gdbarch_init): Likewise.
+ * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
+ XCALLOC.
+ * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
+ * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
+ * registry.c (registry_alloc_data): Likewise.
+ * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
+ * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
+ * serial.c (serial_fdopen_ops): Likewise.
+ * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
+ XCALLOC.
+ * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
+ * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
+ not XCALLOC.
+
+
+ * defs.h (XMALLOC): Remove.
+ * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
+ * bfin-tdep.c (bfin_gdbarch_init): Likewise.
+ * cli-out.c (struct ui_out *): Likewise.
+ * cli/cli-dump.c (add_dump_command): Likewise.
+ (add_dump_command): Likewise.
+ * complaints.c (get_complaints): Likewise.
+ (find_complaint): Likewise.
+ * dwarf2-frame.c (execute_cfa_program): Likewise.
+ * dwarf2read.c (abbrev_table_read_table): Likewise.
+ * gdbarch.sh: Likewise.
+ * gdbarch.c: Rebuild.
+ * inf-ttrace.c (inf_ttrace_add_page): Likewise.
+ * interps.c (interp_new): Likewise.
+ * lm32-tdep.c (lm32_gdbarch_init): Likewise.
+ * m32r-tdep.c (m32r_gdbarch_init): Likewise.
+ * mi/mi-console.c (mi_console_file_new): Likewise.
+ * mi/mi-interp.c (mi_interpreter_init): Likewise.
+ * mi/mi-out.c (mi_out_new): Likewise.
+ * mi/mi-parse.c (mi_parse): Likewise.
+ * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
+ * moxie-tdep.c (moxie_gdbarch_init): Likewise.
+ * observer.c (xalloc_observer_list_node): Likewise.
+ * regcache.c (regcache_xmalloc_1): Likewise.
+ * reggroups.c (reggroup_new): Likewise.
+ (_initialize_reggroup): Likewise.
+ * registry.c (register_data_with_cleanup): Likewise.
+ * remote.c (remote_notif_stop_alloc_reply): Likewise.
+ * ser-base.c (serial_ttystate): Likewise.
+ * ser-mingw.c (make_pipe_state): Likewise.
+ * ser-pipe.c (pipe_open): Likewise.
+ * serial.c (serial_open): Likewise.
+ * sh64-tdep.c (sh64_gdbarch_init): Likewise.
+ * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
+ (tui_alloc_win_info): Likewise.
+ (tui_add_content_elements): Likewise.
+ * tui/tui-file.c (tui_file_new): Likewise.
+ * tui/tui-out.c (tui_out_new): Likewise.
+ * ui-file.c (mem_file_new): Likewise.
+ * ui-out.c (push_level): Likewise.
+ (make_cleanup_ui_out_end): Likewise.
+ (append_header_to_list): Likewise.
+ (ui_out_new): Likewise.
+ * user-regs.c (user_reg_add_builtin): Likewise.
+
+
+ * defs.h (XZALLOC): Remove.
+ * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
+ * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
+ (get_ada_tasks_inferior_data): Likewise.
+ * auto-load.c (get_auto_load_pspace_data): Likewise.
+ * auxv.c (get_auxv_inferior_data): Likewise.
+ * bfd-target.c (target_bfd_reopen): Likewise.
+ * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
+ (deprecated_insert_raw_breakpoint): Likewise.
+ * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
+ * corelow.c (core_open): Likewise.
+ * darwin-nat.c (darwin_check_new_threads): Likewise.
+ (darwin_attach_pid): Likewise.
+ * dummy-frame.c (dummy_frame_push): Likewise.
+ * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
+ * dwarf2loc.c (allocate_piece_closure): Likewise.
+ * elfread.c (elf_symfile_segments): Likewise.
+ * eval.c (ptrmath_type_p): Likewise.
+ * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
+ * gdbtypes.c (alloc_type_arch): Likewise.
+ (alloc_type_instance): Likewise.
+ * hppa-tdep.c (hppa_gdbarch_init): Likewise.
+ * inf-child.c (inf_child_can_use_agent): Likewise.
+ * inflow.c (get_inflow_inferior_data): Likewise.
+ * infrun.c (save_infcall_suspend_state): Likewise.
+ * jit.c (jit_reader_load): Likewise.
+ (get_jit_objfile_data): Likewise.
+ (get_jit_program_space_data): Likewise.
+ (jit_object_open_impl): Likewise.
+ (jit_symtab_open_impl): Likewise.
+ (jit_block_open_impl): Likewise.
+ (jit_frame_sniffer): Likewise.
+ * linux-fork.c (add_fork): Likewise.
+ * maint.c (make_command_stats_cleanup): Likewise.
+ * objfiles.c (get_objfile_pspace_data): Likewise.
+ * opencl-lang.c (struct lval_closure): Likewise.
+ * osdata.c (osdata_start_osdata): Likewise.
+ * progspace.c (new_address_space): Likewise.
+ (add_program_space): Likewise.
+ * remote-sim.c (get_sim_inferior_data): Likewise.
+ * sh-tdep.c (sh_gdbarch_init): Likewise.
+ * skip.c (Ignore): Likewise.
+ (skip_delete_command): Likewise.
+ * solib-aix.c (get_solib_aix_inferior_data): Likewise.
+ (library_list_start_library): Likewise.
+ (solib_aix_current_sos): Likewise.
+ * solib-darwin.c (get_darwin_info): Likewise.
+ (darwin_current_sos): Likewise.
+ * solib-dsbt.c (get_dsbt_info): Likewise.
+ * solib-ia64-hpux.c (new_so_list): Likewise.
+ (ia64_hpux_get_solib_linkage_addr): Likewise.
+ * solib-spu.c (append_ocl_sos): Likewise.
+ (spu_current_sos): Likewise.
+ * solib-svr4.c (get_svr4_info): Likewise.
+ (svr4_keep_data_in_core): Likewise.
+ (library_list_start_library): Likewise.
+ (svr4_default_sos): Likewise.
+ (svr4_read_so_list): Likewise.
+ * solib-target.c (library_list_start_library): Likewise.
+ (solib_target_current_sos): Likewise.
+ * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
+ * symfile-debug.c (install_symfile_debug_logging): Likewise.
+ * symfile.c (default_symfile_segments): Likewise.
+ * target-descriptions.c (tdesc_data_init): Likewise.
+ (tdesc_create_reg): Likewise.
+ (struct tdesc_type *): Likewise.
+ (tdesc_create_vector): Likewise.
+ (tdesc_set_struct_size): Likewise.
+ (struct tdesc_type *): Likewise.
+ (tdesc_free_feature): Likewise.
+ (tdesc_create_feature): Likewise.
+ * windows-nat.c (windows_add_thread): Likewise.
+ (windows_make_so): Likewise.
+ * xml-support.c (gdb_xml_body_text): Likewise.
+ (gdb_xml_create_parser_and_cleanup): Likewise.
+ (xml_process_xincludes): Likewise.
+ * xml-syscall.c (allocate_syscalls_info): Likewise.
+ (syscall_create_syscall_desc): Likewise.
+
+
+ * i386-tdep.c (i386_stap_parse_special_token_triplet): New
+ function, with code from i386_stap_parse_special_token.
+ (i386_stap_parse_special_token_three_arg_disp): Likewise.
+ (i386_stap_parse_special_token): Move code to the two functions
+ above; simplify it.
+
+
+ PR gdb/16101
+ * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
+ bp_err_string. Don't mark the location shlib_disabled if the
+ error thrown wasn't a generic or memory error. Catch errors
+ thrown while inserting breakpoints in overlayed code. Output
+ error message of software breakpoints.
+ * remote.c (remote_insert_breakpoint): If this breakpoint has
+ target-side commands but this stub doesn't support Z0 packets,
+ throw NOT_SUPPORTED_ERROR error.
+ * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
+ * target.h (target_insert_breakpoint): Extend comment.
+ (target_insert_hw_breakpoint): Add comment.
+
+
+ * remote.c (remote_add_thread): Add threads silently if starting
+ up.
+ (remote_notice_new_inferior): If in all-stop, and starting up,
+ don't call notice_new_inferior.
+ (get_current_thread): New function, factored out from ...
+ (add_current_inferior_and_thread): ... this. Adjust.
+ (remote_start_remote) <all-stop>: Fetch the thread list. If we
+ found any thread, then select the remote's current thread as GDB's
+ current thread too.
+
+
+ * NEWS: Create a new section for the next release branch.
+ Rename the section of the current branch, now that it has
+ been cut.
+
+
+ GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
+ * version.in: Bump version to 7.7.50.DATE-cvs.
+
+
+ * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
+ type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
+ (spu_xfer_partial): Cast 'buf' to 'const char *'.
+
+
+ * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
+ return value of bfd_get_filename to symbol_file_add_from_bfd.
+
Fix PR16201.
* spu-linux-nat.c (_initialize_spu_nat): Declare.
+
+ * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
+ (pdc_write_regs): Likewise.
+ (fetch_regs_kernel_thread): Likewise.
+ (store_regs_kernel_thread): Likewise.
+
+
+ * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
+ tagged type objects to their actual type.
+
* ada-valprint.c (print_field_values): Add "language" parameter.