+2018-07-02 Maciej W. Rozycki <macro@mips.com>
+ Simon Marchi <simon.marchi@polymtl.ca>
+
+ PR tdep/8282
+ * disasm.h (gdb_disassembler): Add
+ `m_disassembler_options_holder'. member
+ * disasm.c (get_all_disassembler_options): New function.
+ (gdb_disassembler::gdb_disassembler): Use it.
+ (gdb_buffered_insn_length_init_dis): Likewise.
+ (gdb_buffered_insn_length): Adjust accordingly.
+ (set_disassembler_options): Handle options with arguments.
+ (show_disassembler_options_sfunc): Likewise. Add a leading new
+ line if showing options with descriptions.
+ (disassembler_options_completer): Adapt to using the
+ `disasm_options_and_args_t' structure.
+ * mips-tdep.c (mips_disassembler_options): New variable.
+ (mips_disassembler_options_o32): Likewise.
+ (mips_disassembler_options_n32): Likewise.
+ (mips_disassembler_options_n64): Likewise.
+ (gdb_print_insn_mips): Don't set `disassembler_options'.
+ (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
+ functions.
+ (mips_gdbarch_init): Always set `gdbarch_print_insn' to
+ `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
+ `gdbarch_disassembler_options_implicit' and
+ `gdbarch_valid_disassembler_options'.
+ * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
+ `disasm_options_and_args_t' structure.
+ * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
+ method.
+ (valid_disassembler_options): Switch from `disasm_options_t' to
+ the `disasm_options_and_args_t' structure.
+ * NEWS: Document `set disassembler-options' support for the MIPS
+ target.
+ * gdbarch.h: Regenerate.
+ * gdbarch.c: Regenerate.
+
+2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
+
+ * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
+
+2018-06-29 Joel Brobecker <brobecker@adacore.com>
+
+ * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
+ parameter in call to amd64_target_description.
+ * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
+ * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
+ (amd64fbsd_init_abi): Likewise.
+ * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
+ * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
+ * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
+ * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
+
+2018-06-29 Pedro Alves <palves@redhat.com>
+
+ * gdb/amd64-tdep.h (amd64_create_target_description): Add
+ "segments" parameter.
+ * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
+ (_initialize_amd64_tdep): Update call to
+ amd64_create_target_description.
+ (amd64_target_description): Add "segments" parameter. Adjust
+ the implementation to use it.
+ * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
+ call to amd64_create_target_description.
+ * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
+ * gdb/arch/amd64.h (amd64_create_target_description): Add
+ "segments" register.
+ * gdb/arch/amd64.c (amd64_create_target_description): Add
+ "segments" parameter. Call create_feature_i386_64bit_segments
+ only if SEGMENTS is true.
+ * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
+ call to amd64_create_target_description.
+
+2018-06-29 Pedro Alves <palves@redhat.com>
+
+ * thread.c (thread_target_id_str): New, factored out from ...
+ (print_thread_info_1): ... here. Use it to compute the max
+ "Target Id" column width.
+
+2018-06-29 Pedro Alves <palves@redhat.com>
+
+ * remote.c (remote_target::extra_thread_info): Delete
+ 'display_buf' and 'n' locals. from the cache, regardless of
+ packet mechanims is in use. Use cache for qThreadExtra and qP
+ methods too.
+
+2018-06-29 Pedro Alves <palves@redhat.com>
+
+ * blockframe.c (find_pc_sect_containing_function): New function.
+ * breakpoint.c (print_breakpoint_location): Don't call
+ find_pc_sect_function.
+ * linespec.c (create_sals_line_offset): Record the location's
+ symbol in the sal.
+ * linespec.c (convert_address_location_to_sals): Fill in sal's
+ symbol with find_pc_sect_containing_function.
+ * symtab.c (find_function_start_sal): Rename to ...
+ (find_function_start_sal_1): ... this.
+ (find_function_start_sal): Reimplement as wrapper around
+ find_function_start_sal_1, and use
+ find_pc_sect_containing_function to fill in the sal's symbol.
+ (find_function_start_sal(symbol*, bool)): Adjust.
+ * symtab.h (find_pc_function, find_pc_sect_function): Adjust
+ comments.
+ (find_pc_sect_containing_function): Declare.
+
+2018-06-29 Pedro Alves <palves@redhat.com>
+
+ * inline-frame.c (stopped_by_user_bp_inline_frame): Return
+ true if the the location has no symbol.
+
+2018-06-28 Tom Tromey <tom@tromey.com>
+
+ * NEWS: Mention --enable-codesign.
+ * silent-rules.mk (ECHO_SIGN): New variable.
+ * configure.ac: Add --enable-codesign.
+ * configure: Rebuild.
+ * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
+ (gdb$(EXEEXT)): Optionally invoke codesign.
+
+2018-06-28 Pedro Alves <palves@redhat.com>
+
+ * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
+ comments.
+ (switch_to_thread_no_regs): Adjust comment.
+ * infcmd.c (stop_pc): Delete.
+ (post_create_inferior, info_program_command): Replace references
+ to stop_pc with references to thread_info->suspend.stop_pc.
+ * inferior.h (stop_pc): Delete declaration.
+ * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
+ (handle_inferior_event_1, handle_signal_stop)
+ (process_event_stop_test, keep_going_stepped_thread)
+ (handle_step_into_function, handle_step_into_function_backward)
+ (print_stop_location): Replace references to stop_pc with
+ references to thread_info->suspend.stop_pc.
+ (struct infcall_suspend_state) <stop_pc>: Delete field.
+ (save_infcall_suspend_state, restore_infcall_suspend_state):
+ Remove references to inf_stat->stop_pc.
+ * linux-fork.c (fork_load_infrun_state): Likewise.
+ * record-btrace.c (record_btrace_set_replay): Likewise.
+ * record-full.c (record_full_goto_entry): Likewise.
+ * remote.c (print_one_stopped_thread): Likewise.
+ * target.c (target_resume): Extend comment.
+ * thread.c (set_executing_thread): New.
+ (set_executing): Use it.
+ (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
+ Remove references to stop_pc.
+
+2018-06-28 Pedro Alves <palves@redhat.com>
+
+ * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
+ Moving fetching stop_pc until after ecs->event_thread is refreshed.
+
+2018-06-28 Tom Tromey <tom@tromey.com>
+
+ * coffread.c (coff_symfile_finish): Update.
+ * xcoffread.c (xcoff_symfile_finish): Update.
+ * elfread.c (elf_symfile_finish): Update.
+ * symfile.h (dwarf2_free_objfile): Don't declare.
+ * dwarf2read.c (_initialize_dwarf2_read): Use
+ register_objfile_data_with_cleanup.
+ (dwarf2_free_objfile): Now static. Change signature.
+
+2018-06-28 Petr Tesarik <ptesarik@suse.cz>
+
+ * symfile.c (add_symbol_file_command, _initialize_symfile): Add
+ option "-o" to add-symbol-file-load to add an offset to each
+ section's load address.
+ * symfile.c (set_objfile_default_section_offset): New function.
+
+2018-06-28 Petr Tesarik <ptesarik@suse.cz>
+
+ * symfile.c (add_symbol_file_command): Make sure that sections
+ with the same name are sorted in the same order.
+
+2018-06-28 Petr Tesarik <ptesarik@suse.cz>
+
+ * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
+ require the second argument. If omitted, load sections at the
+ addresses specified in the file.
+
+2018-06-28 Petr Tesarik <ptesarik@suse.cz>
+
+ * symfile.c (symbol_file_command, symbol_file_add_main_1)
+ (_initialize_symfile): Add option "-o" to symbol-file to add an
+ offset to each section of the symbol file.
+
+2018-06-28 Petr Tesarik <ptesarik@suse.cz>
+
+ * MAINTAINERS (Write After Approval): Add Petr Tesarik.
+
+2018-06-27 Tom Tromey <tom@tromey.com>
+
+ * stack.c (_initialize_stack): Update "func" help text.
+
+2018-06-27 Tom Tromey <tom@tromey.com>
+
+ * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
+ std::vector.
+ (unwind_infopy_str, pyuw_create_unwind_info)
+ (unwind_infopy_add_saved_register, pyuw_sniffer)
+ (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
+ Update.
+ (struct saved_reg): Add constructor.
+ <value>: Now a gdbpy_ref<>.
+
+2018-06-27 Tom Tromey <tom@tromey.com>
+
+ * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
+
+2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gdb-gdb.py.in: Format using autopep8.
+
+2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
+ (type_lookup_function): Recognize CORE_ADDR values.
+
+2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
+ print tag_name.
+
+2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
+ <__lt__>: Add.
+
+2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gdb-gdb.py: Move to...
+ * gdb-gdb.py.in: ... here.
+ * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
+ * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
+ dependencies.
+ (distclean): Remove gdb-gdb.py when cleaning.
+ (gdb-gdb.py, gdb-gdb.gdb): New rules.
+ * configure: Re-generate.
+
+2018-06-27 Pedro Alves <palves@redhat.com>
+
+ * proc-service.c (get_ps_regcache): New.
+ (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
+ (ps_lsetfpregs): Use it.
+
2018-06-27 Omair Javaid <omair.javaid@linaro.org>
PR gdb/21695