+
+ * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
+ typo in the debugging message.
+
+
+ * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
+ (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
+ (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
+ (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
+ (btrace_maint_clear): New.
+ (btrace_fetch, btrace_clear): Call btrace_maint_clear.
+ (pt_print_packet, btrace_maint_decode_pt)
+ (btrace_maint_update_pt_packets, btrace_maint_update_packets)
+ (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
+ (maint_btrace_packet_history_cmd)
+ (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
+ (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
+ (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
+ (maint_info_btrace_cmd, _initialize_btrace): New.
+ * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
+ (btrace_maint_packet_history, btrace_maint_info): New.
+ (btrace_thread_info) <maint>: New.
+ * NEWS: Announce it.
+
+
+ * btrace.c (btrace_fetch): Append the new trace data.
+ (btrace_clear): Clear the stored trace data.
+ * btrace.h (btrace_thread_info) <data>: New.
+ * common/btrace-common.h (btrace_data_clear)
+ (btrace_data_append): New.
+ * common/btrace-common.c (btrace_data_clear)
+ (btrace_data_append): New.
+
+
+ * nat/linux-btrace.c (linux_enable_bts): Check for
+ PERF_ATTR_SIZE_VER5.
+ Check for data_offset and data_size fields. Use them.
+
+
+ * NEWS: Announce new commands "record btrace pt" and "record pt".
+ Announce new options "set|show record btrace pt buffer-size".
+ * btrace.c: Include "rsp-low.h".
+ Include "inttypes.h".
+ (btrace_add_pc): Add forward declaration.
+ (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
+ (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
+ (btrace_compute_ftrace_pt): New.
+ (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
+ (check_xml_btrace_version): Update version check.
+ (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
+ (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
+ (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
+ (btrace_pt_children): New.
+ (btrace_children): Add support for "pt".
+ (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
+ (btrace_conf_children): Add support for "pt".
+ * btrace.h: Include "intel-pt.h".
+ (btrace_pt_error): New.
+ * common/btrace-common.c (btrace_format_string, btrace_data_fini)
+ (btrace_data_empty): Support BTRACE_FORMAT_PT.
+ * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
+ (struct btrace_config_pt): New.
+ (struct btrace_config)<pt>: New.
+ (struct btrace_data_pt_config, struct btrace_data_pt): New.
+ (struct btrace_data)<pt>: New.
+ * features/btrace-conf.dtd (btrace-conf)<pt>: New.
+ (pt): New.
+ * features/btrace.dtd (btrace)<pt>: New.
+ (pt, pt-config, cpu): New.
+ * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
+ (perf_event_pt_event_type, kernel_supports_pt)
+ (linux_supports_pt): New.
+ (linux_supports_btrace): Support BTRACE_FORMAT_PT.
+ (linux_enable_bts): Free tinfo on error.
+ (linux_enable_pt): New.
+ (linux_enable_btrace): Support BTRACE_FORMAT_PT.
+ (linux_disable_pt): New.
+ (linux_disable_btrace): Support BTRACE_FORMAT_PT.
+ (linux_fill_btrace_pt_config, linux_read_pt): New.
+ (linux_read_btrace): Support BTRACE_FORMAT_PT.
+ * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
+ (struct btrace_target_info)<pt>: New.
+ * record-btrace.c (set_record_btrace_pt_cmdlist)
+ (show_record_btrace_pt_cmdlist): New.
+ (record_btrace_print_pt_conf): New.
+ (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
+ (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
+ (cmd_record_btrace_pt_start): New.
+ (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
+ (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
+ (_initialize_record_btrace): Add new commands.
+ * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
+ (remote_protocol_features): Add "Qbtrace:pt".
+ Add "Qbtrace-conf:pt:size".
+ (remote_supports_btrace): Support BTRACE_FORMAT_PT.
+ (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
+ (remote_enable_btrace): Support BTRACE_FORMAT_PT.
+ (_initialize_remote): Add new commands.
+
+
+ * configure.ac: check for libipt
+ * configure: Regenerate.
+ * config.in: Regenerate.
+ * Makefile.in (LIBIPT): New.
+ (CLIBS): Add $LIBIPT.
+ * NEWS: document new configure options
+
+
+ * compile/compile-object-load.c (compile_object_load): Replace debug
+ message "lookup undefined ELF symbol" by 3 more specific messages.
+
+
+ * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
+ (rl78_register_type): Add case for RL78_PSW_REGNUM.
+ (rl78_gdbarch_init): Initialize rl78_psw_type.
+
+
+ * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
+ Update commentary. Always refresh the registers when frame
+ information has changed.
+ * tui/tui-stack.c (tui_show_frame_info): Update commentary.
+ Change return type to int. Return 1 if frame information has
+ changed, 0 otherwise.
+ (tui_before_prompt): Update commentary.
+ * tui/tui-stack.h (tui_show_frame_info): Change return type to
+ int.
+
+
+ PR tui/13378
+ * frame.c (select_frame): Remove reference to
+ deprecated_selected_frame_level_changed_hook.
+ * frame.h (deprecated_selected_frame_level_changed_hook): Remove
+ declaration.
+ * stack.c (deprecated_selected_frame_level_changed_hook):
+ Likewise.
+ * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
+ Rename to ...
+ (tui_refresh_frame_and_register_information): ... this. Bail
+ out if there is no stack. Don't update register information
+ unless registers_too_p is true.
+ (tui_print_frame_info_listing_hook): Rename to ...
+ (tui_dummy_print_frame_info_listing_hook): ... this.
+ (tui_before_prompt): New function.
+ (tui_normal_stop): New function.
+ (tui_before_prompt_observer): New observer.
+ (tui_normal_stop_observer): New observer.
+ (tui_install_hooks): Set
+ deprecated_print_frame_info_listing_hook to
+ tui_dummy_print_frame_info_listing_hook. Register
+ tui_before_prompt_observer to call tui_before_prompt and
+ tui_normal_stop_observer to call tui_normal_stop. Remove
+ reference to deprecated_selected_frame_level_changed_hook.
+ (tui_remove_hooks): Detach and unset tui_before_prompt_observer
+ and tui_normal_stop_observer. Remove reference to
+ deprecated_selected_frame_level_changed_hook.
+
+
+ PR tui/13378
+ * tui/tui-stack.c (tui_set_locator_info): Change prototype to
+ return an int instead of void. Return whether the locator
+ window has changed.
+ (tui_show_frame_info): If the locator info has not changed, then
+ bail out early to avoid refreshing the windows.
+
+
+ * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
+ LOCATOR_WIN to tui_alloc_content.
+
+
+ PR tdep/18605
+ * arm-tdep.c (arm_get_next_pc_raw): Break for media
+ instructions.
+
+
+ * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
+ (rx_dwarf_reg_to_regnum): New function.
+ (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
+ unwinding.
+
+
+ PR threads/18127
+ * infcall.c (run_inferior_call): On infcall success, if the thread
+ was marked stopped before, reset it back to stopped.
+ * infrun.c (resume): Don't suppress the set_running calls when
+ doing an infcall.
+ (normal_stop): Only discard the finish_thread_state cleanup if the
+ infcall succeeded.
+
+
+ * MAINTAINERS (Write After Approval): Update my email address.
+
+
+ PR 16253
+ * block.c (block_lookup_symbol): For non-function blocks,
+ continue to search for a symbol with an exact domain match
+ Otherwise, return any previously found "best domain" symbol.
+ (block_lookup_symbol_primary): Likewise.
+
+
+ * NEWS: Mention the new option "history remove-duplicates".
+ * top.c (history_remove_duplicates): New static variable.
+ (show_history_remove_duplicates): New static function.
+ (gdb_add_history): Conditionally remove duplicate history
+ entries.
+ (init_main): Add "history remove-duplicates" option.
+
+
+ * tui/tui-win.c (focus_completer): New static function.
+ (_initialize_tui_win): Set the completion function of the
+ "focus" command to focus_completer.
+
+
+ * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
+ and language_asm..
+ * symtab.c (find_function_start_sal): Likewise.
+
+
+ * solib.c (solib_find_1): Set local variable sysroot to NULL if
+ it is the empty string after trailing slashes have been stripped.
+
+
+ * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
+ * infrun.c (follow_exec): Likewise.
+ * remote.c (remote_filesystem_is_local): Likewise.
+ * solib.c (solib_find_1): Likewise.
+
+
+ * build-id.c (build_id_to_debug_bfd): Add cleanup to free
+ return value from lrealpath.
+
+
+ * remote-sim.c (gdbsim_open): Move sysroot update to the top.
+
+
+ * remote-sim.c: Include gdb_bfd.h.
+ (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
+ Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
+
+
+ * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
+ set_gdbarch_get_siginfo_type.
+ * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
+ * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
+ * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
+ * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
+ * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
+ * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
+ * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
+ * linux-tdep.c (linux_get_siginfo_type): Change it to static.
+ (linux_init_abi): Call set_gdbarch_get_siginfo_type.
+ * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
+
+
+ * common/buffer.c (stdint.h): Do not include.
+ * common/print-utils.c (stdint.h): Likewise.
+ * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
+ * compile/compile-c-types.c (gdb_assert.h): Likewise.
+ * ft32-tdep.c (gdb_assert.h): Likewise.
+ * guile/scm-utils.c (stdint.h): Likewise.
+ * i386-linux-tdep.c (stdint.h): Likewise.
+ * i386-tdep.c (stdint.h): Likewise.
+ * nat/linux-btrace.c (stdint.h): Likewise.
+ * nat/linux-btrace.h (stdint.h): Likewise.
+ * nat/linux-ptrace.c (stdint.h): Likewise.
+ * nat/mips-linux-watch.h (stdint.h): Likewise.
+ * ppc-linux-nat.c (stdint.h): Likewise.
+ * python/python-internal.h (stdint.h): Likewise.
+ * stub-termcap.c (stdlib.h): Likewise.
+ * target/target.h (stdint.h): Likewise.
+ * xtensa-linux-nat.c (stdint.h): Likewise.
+
+
+ * top.c (init_history): Look at errno after calling strtol to
+ properly map large GDBHISTSIZE values to infinity.
+
+
+ * inferior.h (struct inferior_suspend_state): Delete, unused.
+ All references deleted.
+
+
+ * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
+ (microblaze_push_dummy_call): Likewise.
+ (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
+ and set_gdbarch_push_dummy_call.
+
+
+ * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
+ Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
+ (amd64_linux_store_inferior_registers): Likewise.
+ * arm-linux-nat.c (fetch_fpregister): Likewise.
+ (fetch_fpregs, store_fpregister): Likewise.
+ (store_fpregister, store_fpregs): Likewise.
+ (fetch_register, fetch_regs): Likewise.
+ (store_register, store_regs): Likewise.
+ (fetch_vfp_regs, store_vfp_regs): Likewise.
+ (arm_linux_read_description): Check have_ptrace_getregset is
+ TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
+ or TRIBOOL_FALSE.
+ * i386-linux-nat.c (fetch_xstateregs): Check
+ have_ptrace_getregset is not TRIBOOL_TRUE.
+ (store_xstateregs): Likewise.
+ * linux-nat.c (have_ptrace_getregset): Change its type to
+ enum tribool.
+ * linux-nat.h (tribool): New enum.
+ * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
+ Check whether have_ptrace_getregset is TRIBOOL_TRUE.
+
+
+ * NEWS: Mention Sun's version of stabs is no longer supported.
+ * elfread.c (free_elfinfo): Delete. All uses updated.
+ (elfstab_offset_sections): Delete. All uses updated.
+ * gdb-stabs.h (stab_section_info): Delete. All uses updated.
+ * psympriv.h (partial_symtab) <section_offsets>: Delete.
+ All uses updated.
+ * psymtab.c (start_psymtab_common): Delete arg section_offsets.
+ All callers updated.
+
+
+ * common/rsp-low.c (needs_escaping): New.
+ (remote_escape_output): Add unit_size parameter. Refactor to
+ support multi-byte addressable units. Rename parameters.
+ * common/rsp-low.h (remote_escape_output): Add unit_size
+ parameter and rename others. Update doc.
+ * remote.c (align_for_efficient_write): New.
+ (remote_write_bytes_aux): Add unit_size parameter and use it.
+ Rename some variables. Update doc.
+ (remote_xfer_partial): Get unit size and use it.
+ (remote_read_bytes_1): Add unit_size parameter and use it.
+ Rename some variables. Update doc.
+ (remote_write_bytes): Same.
+ (remote_xfer_live_readonly_partial): Same.
+ (remote_read_bytes): Same.
+ (remote_flash_write): Update call to remote_write_bytes_aux.
+ (remote_write_qxfer): Update call to remote_escape_output.
+ (remote_search_memory): Same.
+ (remote_hostio_pwrite): Same.
+
+
+ * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
+ locations as inserted.
+ Update and expand comment about permanent locations.
+ (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
+ Move comment to add_location_to_breakpoint.
+ (update_global_location_list): Don't error out if a permanent
+ breakpoint is not marked inserted.
+ Don't error out if a non-permanent breakpoint location is inserted on
+ top of a permanent breakpoint.
+
+
+ * breakpoint.c (make_breakpoint_permanent): Remove unused
+ function.
+ * breakpoint.h (make_breakpoint_permanent): Remove declaration.
+
+
+ PR gdb/16999
+ * NEWS: Mention new GDBHISTSIZE behavior.
+ * top.c (init_history): For null or out-of-range GDBHISTSIZE,
+ set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
+
+
+ * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
+ * top.c (init_history): Read from GDBHISTSIZE instead of
+ HISTSIZE.
+ (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
+
+
+ * top.c (gdb_safe_append_history): Do not call
+ history_truncate_file if the history is not stifled.
+
+
+ * syscalls/s390-linux.xml: Add syscalls 344 through 354.
+ * syscalls/s390x-linux.xml: Likewise.
+
+
+ * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
+
+
+ * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
+ target_terminal_ours_for_output() before calling
+ tui_show_frame_info(), and restore the original terminal
+ settings afterwards.
+
+
+ * arm-linux-nat.c: Include nat/linux-ptrace.h.
+
+
+ * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
+ memory unit size.
+ (mi_cmd_data_write_memory_bytes): Same.
+
+
+ * corefile.c (write_memory): Update doc.
+ * gdbcore.h (write_memory): Same.
+
* linux-tdep.c (enum filterflags): Make it from anonymous enum.