diff options
author | Joel Brobecker <brobecker@adacore.com> | 2019-01-01 09:59:27 +0400 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2019-01-01 09:59:27 +0400 |
commit | 5bbd631dca26b37b1cc7164d4499949826b8a102 (patch) | |
tree | 6b068c2711136d1d191518bfbd2a22b5abd58a32 | |
parent | bba90696229e8d7d3a37f89159d91e0906357bbe (diff) | |
download | gdb-5bbd631dca26b37b1cc7164d4499949826b8a102.zip gdb-5bbd631dca26b37b1cc7164d4499949826b8a102.tar.gz gdb-5bbd631dca26b37b1cc7164d4499949826b8a102.tar.bz2 |
rotate gdb/ChangeLog
-rw-r--r-- | gdb/ChangeLog | 17190 | ||||
-rw-r--r-- | gdb/ChangeLog-2018 | 17196 | ||||
-rw-r--r-- | gdb/config/djgpp/fnchange.lst | 1 |
3 files changed, 17201 insertions, 17186 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2f21e3f..2cfd961 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,17191 +1,8 @@ -2018-12-31 Philippe Waroquiers <philippe.waroquiers@skynet.be> +2019-01-01 Joel Brobecker <brobecker@adacore.com> - * top.c (command_line_input): Use unique_xmalloc_ptr to - manage memory allocated by readline. + * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018. -2018-12-30 Tom Tromey <tom@tromey.com> - - * event-top.h (command_line_handler): Update. - * top.c (class gdb_readline_wrapper_cleanup) <m_handler_orig>: - Update. - (gdb_readline_wrapper_line): Update. - * top.h (struct ui) <input_handler>: Take a unique_xmalloc_ptr. - (handle_line_of_input): Update. - * event-top.c: Update. - (gdb_readline_no_editing_callback): Update. - (command_line_handler): Take a unique_xmalloc_ptr. - (handle_line_of_input): Take a const char *. - (command_line_append_input_line): Take a const char *. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * source-cache.c (get_language_name): Conditionally compile. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * jit.c (free_objfile_data): Only delete breakpoint if non-null. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * NEWS: Mention terminal styling. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * utils.h (can_emit_style_escape): Declare. - * utils.c (can_emit_style_escape): No longer static. - * cli/cli-style.c (set_style_enabled): New function. - (_initialize_cli_style): Use it. - * tui/tui-winsource.c (tui_show_source_line): Use tui_puts. - (tui_alloc_source_buffer): Change how source lines are allocated. - * tui/tui-source.c (copy_source_line): New function. - (tui_set_source_content): Use source cache. - * tui/tui-io.h (tui_puts): Update. - * tui/tui-io.c (tui_puts_internal): Add window parameter. - (tui_puts): Likewise. - (tui_redisplay_readline): Update. - * tui/tui-data.c (free_content_elements): Change how source window - contents are freed. - * source.c (forget_cached_source_info): Clear the source cache. - (print_source_lines_base): Use the source cache. - * source-cache.h: New file. - * source-cache.c: New file. - * configure.ac: Check for GNU Source Highlight library. - * configure: Update. - * config.in: Update. - * Makefile.in (SRCHIGH_LIBS, SRCHIGH_CFLAGS): New variables. - (INTERNAL_CFLAGS_BASE): Add SRCHIGH_CFLAGS. - (CLIBS): Add SRCHIGH_LIBS. - (COMMON_SFILES): Add source-cache.c. - (HFILES_NO_SRCDIR): Add source-cache.h. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * tui/tui-winsource.c (tui_show_source_line): Use wclrtoeol. - -2018-12-28 Tom Tromey <tom@tromey.com> - - PR tui/14126: - * tui/tui.c (tui_enable): Call start_color and - use_default_colors. - * tui/tui-io.c (struct color_pair): New. - (color_pair_map, last_color_pair, last_style): New globals. - (tui_setup_io): Clean up color map when shutting down. - (curses_colors): New constant. - (get_color_pair, apply_ansi_escape): New functions. - (tui_write): Rewrite. - (tui_puts_internal): New function, from tui_puts. Add "height" - parameter. - (tui_puts): Use tui_puts_internal. - (tui_redisplay_readline): Use tui_puts_internal. - (_initialize_tui_io): New function. - (color_map): New globals. - (get_color): New function. - * configure.ac: Check for use_default_colors. - * config.in, configure: Rebuild. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * ui-out.h (enum class ui_out_style_kind) <ADDRESS>: New - constant. - * ui-out.c (ui_out::field_core_addr): Add styling. - * stack.c (print_frame): Add styling. - * printcmd.c (print_address): Add styling. - (print_address_demangle, info_address_command): Likewise. - * cli/cli-style.h (address_style): Declare. - * cli/cli-style.c (address_style): New global. - (_initialize_cli_style): Register new commands. - * cli-out.c (cli_ui_out::do_field_string): Update. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * symfile.c (symbol_file_add_with_addrs): Style file name. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * top.c (print_gdb_version): Style gdb version number. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * printcmd.c (print_address_symbolic): Style function name. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * breakpoint.c (say_where): Style file name. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * ui-out.h (enum class ui_out_style_kind) <VARIABLE>: New global. - * stack.c (print_frame_arg): Style name. - * printcmd.c (print_variable_and_value): Style variable name. - * cli/cli-style.h (variable_name_style): Declare. - * cli/cli-style.c (variable_name_style): New global. - (_initialize_cli_style): Update. - * cli-out.c (cli_ui_out::do_field_string): Update. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * utils.h (reset_terminal_style): Declare. - * utils.c (can_emit_style_escape): New function. - (set_output_style): Use it. - (reset_terminal_style): New function. - * printcmd.c (printf_command): Call reset_terminal_style. - * cli/cli-cmds.c (echo_command): Call reset_terminal_style. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * utils.h (set_output_style, fprintf_styled) - (fputs_styled): Declare. - * utils.c (applied_style, desired_style): New globals. - (emit_style_escape, set_output_style): New function. - (prompt_for_continue): Emit style escapes. - (fputs_maybe_filtered): Likewise. - (fputs_styled, fprintf_styled): New functions. - * ui-out.h (enum class ui_out_style_kind): New. - (class ui_out) <field_string, field_stream, do_field_string>: Add - style parameter. - * ui-out.c (ui_out::field_stream, ui_out::field_string): Add style - parameter. - * tui/tui-out.h (class tui_ui_out) <do_field_string>: Add style - parameter. - * tui/tui-out.c (tui_ui_out::do_field_string): Add style - parameter. - (tui_ui_out::do_field_string): Update. - * tracepoint.c (print_one_static_tracepoint_marker): Style - output. - * stack.c (print_frame_info, print_frame): Style output. - * source.c (print_source_lines_base): Style output. - * skip.c (info_skip_command): Style output. - * record-btrace.c (btrace_call_history_src_line): Style output. - (btrace_call_history): Likewise. - * python/py-framefilter.c (py_print_frame): Style output. - * mi/mi-out.h (class mi_ui_out) <do_field_string>: Add style - parameter. - * mi/mi-out.c (mi_ui_out::do_table_header) - (mi_ui_out::do_field_int): Update. - (mi_ui_out::do_field_string): Update. - * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): - Style output. - * cli/cli-style.h: New file. - * cli/cli-style.c: New file. - * cli-out.h (class cli_ui_out) <do_field_string>: Add style - parameter. - * cli-out.c (cli_ui_out::do_table_header) - (cli_ui_out::do_field_int, cli_ui_out::do_field_skip): Update. - (cli_ui_out::do_field_string): Add style parameter. Style the - output. - * breakpoint.c (print_breakpoint_location): Style output. - (update_static_tracepoint): Likewise. - * Makefile.in (SUBDIR_CLI_SRCS): Add cli-style.c. - (HFILES_NO_SRCDIR): Add cli-style.h. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * unittests/style-selftests.c: New file. - * ui-style.c: New file. - * ui-style.h: New file. - * ui-file.h: Include ui-style.h. - * Makefile.in (COMMON_SFILES): Add ui-style.c. - (HFILES_NO_SRCDIR): Add ui-style.h. - (SUBDIR_UNITTESTS_SRCS): Add style-selftests.c. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * command.h (add_setshow_enum_cmd): Add "context" argument. - * cli/cli-decode.c (add_setshow_enum_cmd): Add "context" - argument. Call set_cmd_context. - -2018-12-28 Tom Tromey <tom@tromey.com> - - * utils.c (filter_initialized): New global. - (wrap_buffer): Now a std::string. - (wrap_pointer): Remove. - (flush_wrap_buffer): New function. - (filtered_printing_initialized, set_width, wrap_here) - (fputs_maybe_filtered): Update. - -2018-12-28 Eli Zaretskii <eliz@gnu.org> - - * coffread.c (coff_symtab_read): Don't record in minsyms symbols - that are unresolved. This avoids triggering an internal error - when stepping outside of 'main' in MinGW programs. - -2018-12-27 Tom Tromey <tom@tromey.com> - - * python/py-utils.c (gdbpy_handle_exception): Translate - PyExc_KeyboardInterrupt to quit. - -2018-12-27 Tom Tromey <tom@tromey.com> - - * python/python-internal.h (gdbpy_print_stack_or_quit): Declare. - * python/py-unwind.c (pyuw_sniffer): Use - gdbpy_print_stack_or_quit. - * python/py-framefilter.c (throw_quit_or_print_exception): - Remove. - (gdbpy_apply_frame_filter): Use gdbpy_print_stack_or_quit. - * python/python.c (gdbpy_print_stack_or_quit): New function. - -2018-12-27 Tom Tromey <tom@tromey.com> - - * python/py-value.c (convert_value_from_python): Use - gdbpy_convert_exception. - * python/py-param.c (parmpy_init): Use gdbpy_convert_exception. - * python/py-cmd.c (cmdpy_init): Use gdbpy_convert_exception. - * python/py-breakpoint.c (bppy_init): Use - gdbpy_convert_exception. - -2018-12-27 Tom Tromey <tom@tromey.com> - - * configure.nat (NATDEPFILES): Use nat/ prefix. - * Makefile.in (CONFIG_SRC_SUBDIR): Add nat. - (%.o: ${srcdir}/nat/%.c): Remove rule. - (INIT_FILES): Do not filter out NATDEPFILES. - -2018-12-27 Tom Tromey <tom@tromey.com> - - * Makefile.in (INIT_FILES): Redefine. - (stamp-init): Remove sed, tr invocations. Use for loop. Don't - set LANG or LC_ALL. - -2018-12-27 Tom Tromey <tom@tromey.com> - - * Makefile.in (stamp-init): Remove gdbtypes special case. - -2018-12-27 John Baldwin <jhb@FreeBSD.org> - - * config/i386/nm-fbsd.h: Remove file. - * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-fbsd.h. - * configure.nat: Remove NAT_FILE for FreeBSD/i386. - -2018-12-27 Tom Tromey <tom@tromey.com> - - * minsyms.h (class minimal_symbol_reader): Use - DISABLE_COPY_AND_ASSIGN. - -2018-12-27 Tom Tromey <tom@tromey.com> - - * python/python.c (python_interactive_command): Use std::string. - (gdbpy_parameter): Likewise. - * python/py-utils.c (unicode_to_encoded_string): Update comment. - * python/py-symtab.c (salpy_str): Use PyString_FromFormat. - * python/py-record-btrace.c (recpy_bt_insn_data): Use - byte_vector. - * python/py-objfile.c (objfpy_get_build_id): Use - unique_xmalloc_ptr. - * python/py-inferior.c (infpy_read_memory): Use - unique_xmalloc_ptr. - * python/py-cmd.c (gdbpy_parse_command_name): Use std::string. - -2018-12-26 Simon Marchi <simon.marchi@polymtl.ca> - - * target.c (target_terminal::restore_inferior): Remove struct keyword. - -2018-12-26 Simon Marchi <simon.marchi@ericsson.com> - - * build-id.c (build_id_to_debug_bfd): Enhance debug output. - * symfile.c (separate_debug_file_exists): Likewise. - -2018-12-24 Andrew Burgess <andrew.burgess@embecosm.com> - - * c-exp.y (field_name): Allow DOUBLE_KEYWORD, INT_KEYWORD, LONG, - SHORT, SIGNED_KEYWORD, and UNSIGNED tokens to act as a field - names. - (typename_stoken): New function. - -2018-12-24 Andrew Burgess <andrew.burgess@embecosm.com> - - * c-exp.y (field_name): New %token, and new rule. - (exp): Replace uses of 'name' with 'field_name' where appropriate. - -2018-12-24 Andrew Burgess <andrew.burgess@embecosm.com> - - PR gdb/13368 - * c-exp.y (typebase): Extend the comment. - (ident_tokens): Likewise. - -2018-12-18 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (dwarf2_find_containing_comp_unit): Don't take - address of sect_off. - -2018-12-23 Joel Brobecker <brobecker@adacore.com> - - GDB 8.2.1 released. - -2018-12-22 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_call_arg_struct): Don't adjust size before - assigning locations. - (riscv_return_value): Take more care not to read/write outside of - argument buffer. Cast return value between the declared type and - the abi type. - -2018-12-22 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_register_reggroup_p): Save and restore fcsr, - fflags, and frm registers. - -2018-12-22 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_dwarf_reg_to_regnum): New function. - (riscv_gdbarch_init): Register new function with gdbarch. - * riscv-tdep.h: New enum to define RISC-V DWARF register numbers. - -2018-12-21 Simon Marchi <simon.marchi@ericsson.com> - - * minsyms.c (mst_str): New. - (minimal_symbol_reader::record_full): Add debug output. - -2018-12-21 John Baldwin <jhb@FreeBSD.org> - - * fbsd-nat.c (fbsd_handle_debug_trap): Require pl.pl_flags to - equal PL_FLAG_SI. - (fbsd_nat_target::stopped_by_sw_breakpoint): Likewise. - -2018-12-21 Paul Marechal <paul.marechal@ericsson.com> - - PR gdb/23974 - * target.c (target_read_stralloc): Check for empty vector. - -2018-12-21 Дилян Палаузов <dilyan.palauzov@aegee.org> - - * top.c (print_gdb_configuration): Print "--without-python" - if GDB was configured without Python. - -2018-12-21 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_scan_prologue): Use plongest to format - a signed offset as a string. - -2018-12-21 Dave Murphy <davem@devkitpro.org> - - * dtrace-probe.c (dtrace_static_probe_ops): Explicit zero - initialise. - * probe.c (any_static_probe_ops): Ditto. - * record-btrace.c (record_btrace_thread_observer_token): Ditto. - * stap-probe.c (stap_static_probe_ops): Ditto. - * tui/tui-hooks.c (tui_observers_token): Ditto. - * unittests/observable-selftests.c (token1, token2, token3): Ditto. - -2018-12-19 Andrew Burgess <andrew.burgess@embecosm.com> - - * gdb/dummy-frame.c (default_dummy_id): Defined new function. - * gdb/dummy-frame.h (default_dummy_id): Declare new function. - * gdb/frame-unwind.c (default_unwind_pc): Define new function. - (default_unwind_sp): Define new function. - * gdb/frame-unwind.h (default_unwind_pc): Declare new function. - (default_unwind_sp): Declare new function. - * gdb/frame.c (frame_unwind_pc): Assume gdbarch_unwind_pc is - available. - (get_frame_sp): Assume that gdbarch_unwind_sp is available. - * gdb/gdbarch.c: Regenerate. - * gdb/gdbarch.h: Regenerate. - * gdb/gdbarch.sh: Update definition of dummy_id, unwind_pc, and - unwind_sp. Add additional header files to be included in - generated file. - -2018-12-19 Dimitar Dimitrov <dimitar@dinux.eu> - - * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Remove - sp clobbers. - -2018-12-17 Andrew Burgess <andrew.burgess@embecosm.com> - - * dwarf2read.c (struct dwarf2_cu): Convert the fields 'mark', - 'has_loclist', 'checked_producer', 'producer_is_gxx_lt_4_6', - 'producer_is_gcc_lt_4_3', 'producer_is_icc_lt_14', - 'processing_has_namespace_info' from unsigned int to bool. Update - comments. - (producer_is_icc_lt_14): Update return type. - (producer_is_gcc_lt_4_3): Likewise. - (producer_is_gxx_lt_4_6): Likewise. - (process_die): Write true instead of 1 into predicate fields. - (dwarf2_start_symtab): Likewise. - (var_decode_location): Likewise. - (dwarf2_mark_helper): Likewise. - (dwarf2_mark): Likewise. - (dwarf2_clear_marks): Write false instead of 0 into predicate - field. - (dwarf2_cu::dwarf2_cu): Initialise predicate fields to false, not - 0. - -2018-12-17 Szabolcs Nagy <szabolcs.nagy@arm.com> - - * nat/aarch64-sve-linux-ptrace.h: Include signal.h instead of - asm/sigcontext.h. - -2018-12-17 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * nat/linux-ptrace.c (kill_child): Fix ARI warning by removing - warning trailing new line. - -2018-12-16 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * nat/linux-ptrace.c (kill_child): New function. - (linux_ptrace_test_ret_to_nx): Use kill_child instead of local code. - Add a call to kill_child in case of early return after fork. - (linux_check_ptrace_features): Use kill_child instead of local code. - (linux_test_for_tracefork): Likewise. - -2018-12-14 Tom Tromey <tom@tromey.com> - - * Makefile.in: Remove "alloca" comment. - (INFOFILES): Remove. - (local-maintainer-clean): Don't use INFOFILES. - -2018-12-13 John Baldwin <jhb@FreeBSD.org> - - * syscalls/update-freebsd.sh: New file. - * syscalls/freebsd.xml: Regenerate. - -2018-12-13 John Baldwin <jhb@FreeBSD.org> - - * NEWS: Add entry documenting system call aliases. - * break-catch-syscall.c (catch_syscall_split_args): Pass 'result' - to get_syscalls_by_name. - * gdbarch.sh (UNKNOWN_SYSCALL): Remove. - * gdbarch.h: Regenerate. - * syscalls/gdb-syscalls.dtd (syscall): Add alias attribute. - * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_name): Rename - from get_syscall_by_name. Now accepts a pointer to a vector of - integers and returns a bool. - [HAVE_LIBEXPAT] (struct syscall_desc): Add alias member. - (syscall_create_syscall_desc): Add alias parameter and pass it to - syscall_desc constructor. - (syscall_start_syscall): Handle alias attribute. - (syscall_attr): Add alias attribute. - (xml_get_syscalls_by_name): Rename from xml_get_syscall_number. - Now accepts a pointer to a vector of integers and returns a - bool. Add syscalls whose alias or name matches the requested - name. - (get_syscalls_by_name): Rename from get_syscall_by_name. Now - accepts a pointer to a vector of integers and returns a bool. - * xml-syscall.h (get_syscalls_by_name): Likewise. - -2018-12-13 John Baldwin <jhb@FreeBSD.org> - - * break-catch-syscall.c (catch_syscall_split_args): Pass 'result' - to get_syscalls_by_group. - * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_group): Return - false. - [HAVE_LIBEXPAT] (xml_list_syscalls_by_group): Append syscall - numbers to an existing vector of integers and return a bool. - (get_syscalls_by_group): Accept pointer to vector of integers - and change return type to bool. - * xml-syscall.h (get_syscalls_by_group): Likewise. - -2018-12-13 Jim Wilson <jimw@sifive.com> - - * riscv-tdep.c (riscv_print_one_register_info): For MSTATUS, add - comment for SD field, and correct xlen calculation. For MISA, add - comment for MXL field, add call to register_size, and correct base - calculation. - -2018-12-13 Stafford Horne <shorne@gmail.com> - - * NEWS(New targets): Add or1k*-*-linux*. - -2018-12-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * nat/linux-osdata.c (linux_xfer_osdata_info_os_types): Forward - declare on one line to fix ARI warning. - -2018-12-12 Andrew Burgess <andrew.burgess@embecosm.com> - - * infrun.c (infcall_suspend_state::infcall_suspend_state): New. - (infcall_suspend_state::registers): New. - (infcall_suspend_state::restore): New. - (infcall_suspend_state::thread_suspend): Rename to... - (infcall_suspend_state::m_thread_suspend): ...this. - (infcall_suspend_state::registers): Rename to... - (infcall_suspend_state::m_registers): ...this. - (infcall_suspend_state::siginfo_gdbarch): Rename to... - (infcall_suspend_state::m_siginfo_gdbarch): ...this. - (infcall_suspend_state::siginfo_data): Rename to... - (infcall_suspend_state::m_siginfo_data): ...this. - (save_infcall_suspend_state): Rewrite to use infcall_suspend_state - constructor. - (restore_infcall_suspend_state): Rewrite to use - infcall_suspend_state::restore method. - (get_infcall_suspend_state_regcache): Use - infcall_suspend_state::registers method. - -2018-12-12 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_call_arg_scalar_float): Unnamed (variadic) - arguments are passed in integer registers. - (riscv_call_arg_complex_float): Likewise. - -2018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * nat/linux-osdata.c (common_getter): New function. - (struct osdata_type): Change getter to take_snapshot. - Add LONGEST len_avail and struct buffer buffer. - Change all elements in the initializer. - Add an element for the list of types. - (linux_xfer_osdata_info_os_types): New function. - (linux_common_xfer_osdata): Use common_getter for the list of types. - Replace getter call by common_getter. - (linux_xfer_osdata_cpus): Remove args READBUF, OFFSET, LEN. - Add arg BUFFER. Only keep the code that adds data in BUFFER. - (linux_xfer_osdata_fds): Likewise. - (linux_xfer_osdata_modules): Likewise. - (linux_xfer_osdata_msg): Likewise. - (linux_xfer_osdata_processes): Likewise. - (linux_xfer_osdata_processgroups): Likewise. - (linux_xfer_osdata_sem): Likewise. - (linux_xfer_osdata_shm): Likewise. - (linux_xfer_osdata_isockets): Likewise. - (linux_xfer_osdata_threads): Likewise. - -2018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * nat/linux-osdata.c: Removed various trailing spaces. - -2018-12-10 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_register_name): Fix ARI warning by removing - leading whitespace before #include line. - -2018-12-08 Simon Marchi <simon.marchi@ericsson.com> - Дилян Палаузов <dilyan.palauzov@aegee.org> - - PR gdb/23950 - * configure.ac: Search for tgetent in libtinfow. - * configure: Re-generate. - -2018-12-08 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * linux-thread-db.c (struct thread_db_info): Add td_ta_delete_p. - (thread_db_err_str): Forward declare. - (delete_thread_db_info): Call td_ta_delete_p if available. - (try_thread_db_load_1): Acquire td_ta_delete address. - * nat/gdb_thread_db.h (td_ta_delete_ftype): Declare. - -2018-12-08 Pedro Alves <palves@redhat.com> - - * source.c (forward_search_command): Rename to ... - (search_command_helper): ... this. Add 'forward' parameter. - Tweak to use a gdb::def_vector<char> instead of a xrealloc'ed - buffer. Handle backward searches too. - (forward_search_command, reverse_search_command): Reimplement by - calling search_command_helper. - -2018-12-07 Andrew Burgess <andrew.burgess@embecosm.com> - - * .dir-locals.el: Copy most of the settings from c-mode over to - c++-mode. - -2018-12-08 Stafford Horne <shorne@gmail.com> - - * Makefile.in (ALL_TARGET_OBS): Add or1k-linux-tdep.o. - * configure.tgt: Add or1k*-*-linux*. - * or1k-linux-tdep.c: New file. - * or1k-tdep.c (or1k_gdbarch_init): Call gdbarch_init_osabi. - -2018-12-07 Pedro Alves <palves@redhat.com> - - * dwarf2read.c (get_gdb_index_contents_from_section): Use - gdb::make_array_view. - -2018-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * language.c (_initialize_language): Fix leak by assigning - a static string to language. Same for range and case_sensitive, - even if no leak is detected for these variables. - -2018-12-05 John Baldwin <jhb@FreeBSD.org> - - * configure: Re-generate. - * configure.ac: Use separate sed expressions to escape variables - in auto-load directories. - -2018-12-05 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_features_from_gdbarch_info): New function. - (riscv_find_default_target_description): Use new function to - extract feature from gdbarch_info. - (riscv_gdbarch_init): Add error checks for xlen and flen between - target description and bfd headers. Be smarter about when we - think the hardware floating point abi should be used. - -2018-12-05 Alan Hayward <alan.hayward@arm.com> - - * nat/aarch64-linux-hw-point.c - (aarch64_linux_any_set_debug_regs_state): New function. - * nat/aarch64-linux-hw-point.h - (aarch64_linux_any_set_debug_regs_state): New declaration. - * nat/aarch64-linux.c (aarch64_linux_new_thread): Check if any - BPs or WPs are set. - -2018-11-30 John Baldwin <jhb@FreeBSD.org> - - * common/filestuff.c [HAVE_KINFO_GETFILE]: Include headers. - (fdwalk) [HAVE_KINFO_GETFILE]: Use kinfo_getfile. - -2018-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be> - Simon Marchi <simon.marchi@ericsson.com> - - * linespec.c (symtab_vector_up): Remove. - (symtabs_from_filename): Change return type to std::vector. - (collect_symtabs_from_filename): Likewise. - (create_sals_line_offset): Assign return value of - collect_symtabs_from_filename to *ls->file_symtabs. - (convert_explicit_location_to_linespec): Remove call to release. - (parse_linespec): Likewise. - (symtab_collector) <symtab_collector>: Remove initialization of - m_symtabs. - <release_symtabs>: Change return type to std::vector<symtab *>. - <operator ()>: Adjust. - -2018-11-30 John Baldwin <jhb@FreeBSD.org> - - * fbsd-nat.c [__FreeBSD_version >= 700009] (USE_SIGINFO): Macro - defined. - (union sigval32, struct siginfo32, fbsd_siginfo_size) - (fbsd_convert_siginfo): Make conditional on USE_SIGINFO instead - of KERN_PROC_AUXV and PT_LWPINFO. - (fbsd_nat_target::xfer_partial): Define method unconditionally. - Make TARGET_OBJECT_SIGNAL_INFO conditional on USE_SIGINFO. - Make TARGET_OBJECT_AUXV conditional on KERN_PROC_AUXV. - Make TARGET_OBJECT_FREEBSD_VMMAP and - TARGET_OBJECT_FREEBSD_PS_STRINGS conditional on KERN_PROC_VMMAP - and KERN_PROC_PS_STRINGS. - * fbsd-nat.h: Include <sys/proc.h>. - (fbsd_nat_target::xfer_partial): Declare method unconditionally. - -2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-linux-nat.c: Add 'inferior.h' and 'target-descriptions.h' - header files. - (riscv_linux_nat_target::read_description): New method. - -2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com> - - * arch/riscv.h (riscv_gdbarch_features::hash): New method. - * arch/riscv.c (struct riscv_gdbarch_features_hasher): New. - (riscv_tdesc_cache): New global. - (riscv_create_target_description): Look in the cache before - creating a new target description. - -2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com> - - * arch/riscv.h (riscv_gdb_features::operator==): New. - (riscv_gdb_features::operator!=): New. - * riscv-tdep.c (riscv_gdbarch_init): Make use of the inequality - operator. - -2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com> - - * arch/riscv.h (riscv_create_target_description): Make return type - const. - * arch/riscv.c (riscv_create_target_description): Likewise. - * riscv-tdep.c (riscv_find_default_target_description): Likewise. - -2018-11-30 Jan Kratochvil <jan.kratochvil@redhat.com> - Keith Seitz <keiths@redhat.com> - Tom Tromey <tom@tromey.com> - Sergio Durigan Junior <sergiodj@redhat.com> - - https://bugzilla.redhat.com/show_bug.cgi?id=1613614 - * dwarf2read.c (dwarf2_find_containing_comp_unit): Add - 'mid_cu->length' to '*cu_off' when checking if 'sect_off' is - inside the CU. - -2018-11-30 Pedro Alves <palves@redhat.com> - - * aix-thread.c (aix_thread_target) <aix_thread_target>: Delete. - <stratum>: New override. - * bfd-target.c (aix_thread_target) <aix_thread_target>: Delete. - <stratum>: New override. - * bsd-uthread.c (bsd_uthread_target) <bsd_uthread_target>: Delete. - <stratum>: New override. - * exec.c (exec_target) <exec_target>: Delete. - <stratum>: New override. - * gdbarch-selftests.c (register_to_value_test): Adjust to use the - stratum method instead of the to_stratum field. - * linux-thread-db.c (thread_db_target) <thread_db_target>: Delete. - <stratum>: New override. - (thread_db_target::thread_db_target): Delete. - * make-target-delegates (print_class): Don't print a ctor - declaration. Print a stratum method override declaration. - * process-stratum-target.h (process_stratum_target) - <process_stratum_target>: Delete. - <stratum>: New override. - * ravenscar-thread.c (ravenscar_thread_target) - <ravenscar_thread_target>: Delete. - <stratum>: New override. - * record-btrace.c (record_btrace_target) - <record_btrace_target>: Delete. - <stratum>: New override. - * record-full.c (record_full_base_target) - <record_full_base_target>: Delete. - <stratum>: New override. - * record.c (record_disconnect, record_detach) - (record_mourn_inferior, record_kill): Adjust to use the stratum - method instead of the to_stratum field. - * regcache.c (cooked_read_test, cooked_write_test): Likewise. - * sol-thread.c (sol_thread_target) - <sol_thread_target>: Delete. - <stratum>: New override. - * spu-multiarch.c (spu_multiarch_target) - <spu_multiarch_target>: Delete. - <stratum>: New override. - * target-delegates.c: Regenerate. - * target.c (target_stack::push, target_stack::unpush) - (pop_all_targets_above, pop_all_targets_at_and_above) - (info_target_command, target_require_runnable) - (target_stack::find_beneath): Adjust to use the stratum method - instead of the to_stratum field. - (dummy_target::dummy_target): Delete. - (dummy_target::stratum): New. - (debug_target::debug_target): Delete. - (debug_target::stratum): New. - (maintenance_print_target_stack): Adjust to use the stratum method - instead of the to_stratum field. - * target.h (struct target_ops) <stratum>: New method. - <to_stratum>: Delete. - <is_pushed>: Adjust to use the stratum method - instead of the to_stratum field. - -2018-11-30 Pedro Alves <palves@redhat.com> - - * corelow.c (core_target) <has_all_memory, has_execution>: New - overrides. - * inf-child.c (inf_child_target::has_all_memory) - (inf_child_target::has_memory, inf_child_target::has_stack) - (inf_child_target::has_registers) - (inf_child_target::has_execution): Delete. - * inf-child.h (inf_child_target) <has_all_memory, has_memory, - has_stack, has_registers, has_execution>: Delete. - * process-stratum-target.c - (process_stratum_target::has_all_memory) - (process_stratum_target::has_memory) - (process_stratum_target::has_stack) - (process_stratum_target::has_registers) - (process_stratum_target::has_execution): New. - * process-stratum-target.h (process_stratum_target) - <has_all_memory, has_memory, has_stack, has_registers, - has_execution>: New method overrides. - * ravenscar-thread.c (ravenscar_thread_target) <has_all_memory, - has_memory, has_stack, has_registers, has_execution>: Delete. - * remote-sim.c (gdbsim_target) <has_stack, has_registers, - has_execution>: Delete. - * remote.c (remote_target) <has_all_memory, has_memory, has_stack, - has_registers, has_execution>: Delete. - * target.c (default_child_has_all_memory) - (default_child_has_memory, default_child_has_stack) - (default_child_has_registers, default_child_has_execution): - Delete. - * target.h (default_child_has_all_memory) - (default_child_has_memory, default_child_has_stack) - (default_child_has_registers, default_child_has_execution): - Delete. - * tracefile.h (tracefile_target) <has_execution>: New override. - -2018-11-30 Pedro Alves <palves@redhat.com> - - * Makefile.in (COMMON_SFILES): Add process-stratum-target.c. - * bsd-kvm.c: Include "process-stratum-target.h". - (bsd_kvm_target): Now inherits from process_stratum_target. - (bsd_kvm_target::bsd_kvm_target): Default it. - * corelow.c: Include "process-stratum-target.h". - (core_target): Now inherits from process_stratum_target. - (core_target::core_target): Don't set to_stratum here. - * inf-child.c (inf_child_target::inf_child_target): Delete. - * inf-child.h: Include "process-stratum-target.h". - (inf_child_target): Inherit from process_stratum_target. - (inf_child_target) <inf_child_target>: Default it. - <can_async_p, supports_non_stop, supports_disable_randomization>: - Delete overrides. - * process-stratum-target.c: New file. - * process-stratum-target.h: New file. - * remote-sim.c: Include "process-stratum-target.h". - (gdbsim_target): Inherit from process_stratum_target. - <gdbsim_target>: Default it. - * remote.c: Include "process-stratum-target.h". - (remote_target): Inherit from process_stratum_target. - <remote_target>: Default it. - * target.c (default_thread_address_space) - (default_thread_architecture): Delete. - * target.h (target_ops) <thread_architecture>: Now returns NULL by - default. - <thread_address_space>: Ditto. - * test-target.h: Include "process-stratum-target.h" instead of - "target.h". - (test_target_ops): Inherit from process_stratum_target. - <test_target_ops>: Default it. - * tracefile.c (tracefile_target::tracefile_target): Delete. - * tracefile.h: Include "process-stratum-target.h". - (tracefile_target): Inherit from process_stratum_target. - <tracefile_target>: Default it. - * target-delegates.c: Regenerate. - -2018-11-30 Pedro Alves <palves@redhat.com> - - * Makefile.in (COMMON_SFILES): Add test-target.c. - * gdbarch-selftests.c: Include "test-target.h". - * regcache.c: Include "test-target.h". - * target.c (test_target_info, test_target_ops::info): Move to ... - * test-target.c: ... this new file. - * target.h (test_target_ops): Move to ... - * test-target.h: ... this new file. - -2018-11-29 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * source.c (forward_search_command): Fix leak by using - xrealloc even for the first allocation in the loop, as buf - is static. - -2018-11-29 Rajendra SY <rajendra.sy@gmail.com> - - PR gdb/23093 - * gdb/fbsd-tdep.c (fbsd_gdb_signal_from_target) - (fbsd_gdb_signal_to_target): New. - (fbsd_init_abi): Install gdbarch "signal_from_target" and - "signal_to_target" methods. - -2018-11-29 Tom Tromey <tom@tromey.com> - - * valarith.c (value_x_unop): Don't set argvec[3]. - -2018-11-26 Simon Marchi <simon.marchi@ericsson.com> - - PR gdb/23917 - * sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous - semicolon. - -2018-11-26 Pedro Alves <palves@redhat.com> - - * procfs.c (procfs_notice_thread): Replace uses of - in_thread_list/is_exited with find_thread_ptid/THREAD_EXITED. - * sol-thread.c (sol_thread_target::wait) - (sol_update_thread_list_callback): Likewise. - -2018-11-25 Tom Tromey <tom@tromey.com> - - * ui-out.c (ui_out::field_fmt): Remove comment. - * tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment. - * mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment. - -2018-11-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * source.c (open_source_file): Leak fixed in '8e6a5953e1d Fix 4K - leak in open_source_file' has been partially undone by '2179fbc36d23 - Return scoped_fd from open_source_file'. Re-add the transfer of - current s->fullname to the unique_xmalloc_ptr fullname given - to find_and_open_source. - -2018-11-23 Pedro Alves <palves@redhat.com> - - * gdbthread.h (enum thread_state): Move comments here. - (is_running, is_stopped, is_exited): Remove declarations. - -2018-11-22 Pedro Alves <palves@redhat.com> - - * Makefile.in (COMMON_SFILES): Add thread-iter.c. - * breakpoint.c (breakpoints_should_be_inserted_now): Replace - ALL_NON_EXITED_THREADS with all_non_exited_threads. - (print_one_breakpoint_location): Replace ALL_INFERIORS with - all_inferiors. - * bsd-kvm.c: Include inferior.h. - * btrace.c (btrace_free_objfile): Replace ALL_NON_EXITED_THREADS - with all_non_exited_threads. - * common/filtered-iterator.h: New. - * common/safe-iterator.h: New. - * corelow.c (core_target_open): Don't call init_thread_list here. - * darwin-nat.c (thread_info_from_private_thread_info): Replace - ALL_THREADS with all_threads. - * fbsd-nat.c (fbsd_nat_target::resume): Replace - ALL_NON_EXITED_THREADS with inf->non_exited_threads. - * fbsd-tdep.c (fbsd_make_corefile_notes): Replace - ALL_NON_EXITED_THREADS with inf->non_exited_threads. - * fork-child.c (postfork_hook): Don't call init_thread_list here. - * gdbarch-selftests.c (register_to_value_test): Adjust. - * gdbthread.h: Don't include "inferior.h" here. - (struct inferior): Forward declare. - (enum step_over_calls_kind): Moved here from inferior.h. - (thread_info::deletable): Definition moved to thread.c. - (find_thread_ptid (inferior *, ptid_t)): Declare. - (ALL_THREADS, ALL_THREADS_BY_INFERIOR, ALL_THREADS_SAFE): Delete. - Include "thread-iter.h". - (all_threads, all_non_exited_threads, all_threads_safe): New. - (any_thread_p): Declare. - (thread_list): Delete. - * infcmd.c (signal_command): Replace ALL_NON_EXITED_THREADS with - all_non_exited_threads. - (proceed_after_attach_callback): Delete. - (proceed_after_attach): Take an inferior pointer instead of an - integer PID. Adjust to use range-for. - (attach_post_wait): Pass down inferior pointer instead of pid. - Use range-for instead of ALL_NON_EXITED_THREADS. - (detach_command): Remove init_thread_list call. - * inferior-iter.h: New. - * inferior.c (struct delete_thread_of_inferior_arg): Delete. - (delete_thread_of_inferior): Delete. - (delete_inferior, exit_inferior_1): Use range-for with - inf->threads_safe() instead of iterate_over_threads. - (inferior_appeared): Call init_thread_list here. - (discard_all_inferiors): Use all_non_exited_inferiors. - (find_inferior_id, find_inferior_pid): Use all_inferiors. - (iterate_over_inferiors): Use all_inferiors_safe. - (have_inferiors, number_of_live_inferiors): Use - all_non_exited_inferiors. - (number_of_inferiors): Use all_inferiors and std::distance. - (print_inferior): Use all_inferiors. - * inferior.h: Include gdbthread.h. - (enum step_over_calls_kind): Moved to gdbthread.h. - (struct inferior) <thread_list>: New field. - <threads, non_exited_threads, threads_safe>: New methods. - (ALL_INFERIORS): Delete. - Include "inferior-iter.h". - (ALL_NON_EXITED_INFERIORS): Delete. - (all_inferiors_safe, all_inferiors, all_non_exited_inferiors): New - functions. - * inflow.c (child_interrupt, child_pass_ctrlc): Replace - ALL_NON_EXITED_THREADS with all_non_exited_threads. - * infrun.c (follow_exec): Use all_threads_safe. - (clear_proceed_status, proceed): Use all_non_exited_threads. - (init_wait_for_inferior): Don't clear inline frame state here. - (infrun_thread_stop_requested, for_each_just_stopped_thread): Use - all_threads instead of ALL_NON_EXITED_THREADS. - (random_pending_event_thread): Use all_non_exited_threads instead - of ALL_NON_EXITED_THREADS. Use a lambda for repeated code. - (clean_up_just_stopped_threads_fsms): Use all_non_exited_threads - instead of ALL_NON_EXITED_THREADS. - (handle_no_resumed): Use all_non_exited_threads instead of - ALL_NON_EXITED_THREADS. Use all_inferiors instead of - ALL_INFERIORS. - (restart_threads, switch_back_to_stepped_thread): Use - all_non_exited_threads instead of ALL_NON_EXITED_THREADS. - * linux-nat.c (check_zombie_leaders): Replace ALL_INFERIORS with - all_inferiors. - (kill_unfollowed_fork_children): Use inf->non_exited_threads - instead of ALL_NON_EXITED_THREADS. - * linux-tdep.c (linux_make_corefile_notes): Use - inf->non_exited_threads instead of ALL_NON_EXITED_THREADS. - * linux-thread-db.c (thread_db_target::update_thread_list): - Replace ALL_INFERIORS with all_inferiors. - (thread_db_target::thread_handle_to_thread_info): Use - inf->non_exited_threads instead of ALL_NON_EXITED_THREADS. - * mi/mi-interp.c (multiple_inferiors_p): New. - (mi_on_resume_1): Simplify using all_non_exited_threads and - multiple_inferiors_p. - * mi/mi-main.c (mi_cmd_thread_list_ids): Use all_non_exited_threads - instead of ALL_NON_EXITED_THREADS. - * nto-procfs.c (nto_procfs_target::open): Don't call - init_thread_list here. - * record-btrace.c (record_btrace_target_open) - (record_btrace_target::stop_recording) - (record_btrace_target::close) - (record_btrace_target::record_is_replaying) - (record_btrace_target::resume, record_btrace_target::wait) - (record_btrace_target::record_stop_replaying): Use - all_non_exited_threads instead of ALL_NON_EXITED_THREADS. - * record-full.c (record_full_wait_1): Use all_non_exited_threads - instead of ALL_NON_EXITED_THREADS. - * regcache.c (cooked_read_test): Remove reference to global - thread_list. - * remote-sim.c (gdbsim_target::create_inferior): Don't call - init_thread_list here. - * remote.c (remote_target::update_thread_list): Use - all_threads_safe instead of ALL_NON_EXITED_THREADS. - (remote_target::process_initial_stop_replies): Replace - ALL_INFERIORS with all_non_exited_inferiors and use - all_non_exited_threads instead of ALL_NON_EXITED_THREADS. - (remote_target::open_1): Don't call init_thread_list here. - (remote_target::append_pending_thread_resumptions) - (remote_target::remote_resume_with_hc): Use all_non_exited_threads - instead of ALL_NON_EXITED_THREADS. - (remote_target::commit_resume) - (remote_target::remove_new_fork_children): Replace ALL_INFERIORS - with all_non_exited_inferiors and use all_non_exited_threads - instead of ALL_NON_EXITED_THREADS. - (remote_target::kill_new_fork_children): Use - all_non_exited_threads instead of ALL_NON_EXITED_THREADS. Remove - init_thread_list and init_wait_for_inferior calls. - (remote_target::remote_btrace_maybe_reopen) - (remote_target::thread_handle_to_thread_info): Use - all_non_exited_threads instead of ALL_NON_EXITED_THREADS. - * target.c (target_terminal::restore_inferior) - (target_terminal_is_ours_kind): Replace ALL_INFERIORS with - all_non_exited_inferiors. - * thread-iter.c: New file. - * thread-iter.h: New file. - * thread.c: Include "inline-frame.h". - (thread_list): Delete. - (clear_thread_inferior_resources): Call clear_inline_frame_state. - (init_thread_list): Use all_threads_safe instead of - ALL_THREADS_SAFE. Adjust to per-inferior thread lists. - (new_thread): Adjust to per-inferior thread lists. - (add_thread_silent): Pass inferior to find_thread_ptid. - (thread_info::deletable): New, moved from the header. - (delete_thread_1): Adjust to per-inferior thread lists. - (find_thread_global_id): Use inf->threads(). - (find_thread_ptid): Use find_inferior_ptid and pass inferior to - find_thread_ptid. - (find_thread_ptid(inferior*, ptid_t)): New overload. - (iterate_over_threads): Use all_threads_safe. - (any_thread_p): New. - (thread_count): Use all_threads and std::distance. - (live_threads_count): Use all_non_exited_threads and - std::distance. - (valid_global_thread_id): Use all_threads. - (in_thread_list): Use find_thread_ptid. - (first_thread_of_inferior): Adjust to per-inferior thread lists. - (any_thread_of_inferior, any_live_thread_of_inferior): Use - inf->non_exited_threads(). - (prune_threads, delete_exited_threads): Use all_threads_safe. - (thread_change_ptid): Pass inferior pointer to find_thread_ptid. - (set_resumed, set_running): Use all_non_exited_threads. - (is_thread_state, is_stopped, is_exited, is_running) - (is_executing): Delete. - (set_executing, set_stop_requested, finish_thread_state): Use - all_non_exited_threads. - (print_thread_info_1): Use all_inferiors and all_threads. - (thread_apply_all_command): Use all_non_exited_threads. - (thread_find_command): Use all_threads. - (update_threads_executing): Use all_non_exited_threads. - * tid-parse.c (parse_thread_id): Use inf->threads. - * x86-bsd-nat.c (x86bsd_dr_set): Use inf->non_exited_threads (). - -2018-11-22 Pedro Alves <palves@redhat.com> - - * infrun.c (follow_exec) <set follow-exec new>: Add thread and - switch to it before calling into try_open_exec_file. - -2018-11-22 Pedro Alves <palves@redhat.com> - - * cli/cli-interp.c (cli_on_user_selected_context_changed): Use - inferior_thread instead of find_thread_ptid, and only when - inferior_ptid is not null_ptid. - * inferior.c (add_inferior): Don't include target_pid_to_str - output when the inferior is not started. - * python/py-inferior.c (python_on_normal_stop): Don't use - find_thread_ptid. - (tui_on_user_selected_context_changed): Use inferior_thread - instead of find_thread_ptid, and only when inferior_ptid is not - null_ptid. - -2018-11-21 Benno Fünfstück <benno.fuenfstueck@gmail.com> - - PR python/23714 - * gdb/python/python.c (execute_gdb_command): Call - prevent_dont_repeat earlier to avoid affecting dont_repeat. - -2018-11-21 Andrew Burgess <andrew.burgess@embecosm.com> - - * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o. - (HFILES_NO_SRCDIR): Add arch/riscv.h. - * arch/riscv.c: New file. - * arch/riscv.h: New file. - * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into - this list, and add arch/riscv.o. - * features/Makefile: Add riscv features. - * features/riscv/32bit-cpu.c: New file. - * features/riscv/32bit-cpu.xml: New file. - * features/riscv/32bit-csr.c: New file. - * features/riscv/32bit-csr.xml: New file. - * features/riscv/32bit-fpu.c: New file. - * features/riscv/32bit-fpu.xml: New file. - * features/riscv/64bit-cpu.c: New file. - * features/riscv/64bit-cpu.xml: New file. - * features/riscv/64bit-csr.c: New file. - * features/riscv/64bit-csr.xml: New file. - * features/riscv/64bit-fpu.c: New file. - * features/riscv/64bit-fpu.xml: New file. - * features/riscv/rebuild-csr-xml.sh: New file. - * riscv-tdep.c: Add 'arch/riscv.h' include. - (riscv_gdb_reg_names): Delete. - (csr_reggroup): New global. - (struct riscv_register_alias): Delete. - (struct riscv_register_feature): New structure. - (riscv_register_aliases): Delete. - (riscv_xreg_feature): New global. - (riscv_freg_feature): New global. - (riscv_virtual_feature): New global. - (riscv_csr_feature): New global. - (riscv_create_csr_aliases): New function. - (riscv_read_misa_reg): Delete. - (riscv_has_feature): Delete. - (riscv_isa_xlen): Simplify, just return cached xlen. - (riscv_isa_flen): Simplify, just return cached flen. - (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep. - (riscv_register_name): Update to make use of tdesc_register_name. - Look up xreg and freg names in the new globals riscv_xreg_feature - and riscv_freg_feature. Don't supply csr aliases here. - (riscv_fpreg_q_type): Delete. - (riscv_register_type): Use tdesc_register_type in almost all - cases, override the returned type in a few specific cases only. - (riscv_print_one_register_info): Handle errors reading registers. - (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for - registers that are otherwise unknown to GDB. Also check the - csr_reggroup. - (riscv_print_registers_info): Remove assert about upper register - number, and use gdbarch_register_reggroup_p instead of - short-cutting. - (riscv_find_default_target_description): New function. - (riscv_check_tdesc_feature): New function. - (riscv_add_reggroups): New function. - (riscv_setup_register_aliases): New function. - (riscv_init_reggroups): New function. - (_initialize_riscv_tdep): Add calls to setup CSR aliases, and - setup register groups. Register new riscv debug variable. - * riscv-tdep.h: Add 'arch/riscv.h' include. - (struct gdbarch_tdep): Remove abi union, and add - riscv_gdbarch_features field. Remove cached quad floating point - type, and provide initialisation for double type field. - * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to - the list of targets using the feature based target descriptions. - * NEWS: Mention target description support. - -2018-11-21 Pedro Alves <palves@redhat.com> - - * valops.c (find_method_list, value_find_oload_method_list) - (find_overload_match, find_oload_champ): Rename parameters and - locals. - -2018-11-21 Pedro Alves <palves@redhat.com> - - * valops.c (find_method_list): Replace pointer and length - parameters with an gdb::array_view. Adjust. - (value_find_oload_method_list): Likewise. - (find_overload_match): Use gdb::array_view for methods list. - Adjust to find_oload_champ interface change. - (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array. - 'num_fns' parameter now a size_t. Eliminate 'fn_count' local. - -2018-11-21 Pedro Alves <palves@redhat.com> - - * gdbtypes.c (compare_badness): Change type of parameters to const - reference. Adjust to badness_vector being a std::vector now. - (rank_function): Adjust to badness_vector being a std::vector now. - * gdbtypes.h (badness_vector): Now a typedef to std::vector. - (LENGTH_MATCH): Delete. - (compare_badness): Change type of parameters to const reference. - (rank_function): Return a badness_vector by value now. - (find_overload_match): Adjust to badness_vector being a - std::vector now. Remove cleanups. - (find_oload_champ_namespace): 'oload_champ_bv' parameter now a - badness_vector pointer. - (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now - a badness_vector pointer. Adjust to badness_vector being a - std::vector now. Remove cleanups. - (find_oload_champ): 'oload_champ_bv' parameter now - a badness_vector pointer. Adjust to badness_vector being a - std::vector now. Remove cleanups. - -2018-11-21 Pedro Alves <palves@redhat.com> - - * cp-support.c (sym_return_val_size, sym_return_val_index) - (sym_return_val): Delete. - (overload_list_add_symbol): Add std::vector parameter. Adjust to - add to the vector. - (make_symbol_overload_list): Adjust to return a std::vector - instead of maintaining a global open coded vector. - (make_symbol_overload_list_block): Add std::vector parameter. - (make_symbol_overload_list_block): Rename to ... - (add_symbol_overload_list_block): ... this and add std::vector - parameter. - (make_symbol_overload_list_namespace): Rename to ... - (add_symbol_overload_list_namespace): ... this and add std::vector - parameter. - (make_symbol_overload_list_adl_namespace): Rename to ... - (add_symbol_overload_list_adl_namespace): ... this and add - std::vector parameter. - (make_symbol_overload_list_adl): Delete. - (add_symbol_overload_list_adl): New. - (make_symbol_overload_list_using): Rename to ... - (add_symbol_overload_list_using): ... this and add std::vector - parameter. - (make_symbol_overload_list_qualified): Rename to ... - (add_symbol_overload_list_qualified): ... this and add std::vector - parameter. - * cp-support.h: Include "common/array-view.h" and <vector>. - (make_symbol_overload_list): Change return type to std::vector. - (make_symbol_overload_list_adl): Delete declaration. - (add_symbol_overload_list_adl): New declaration. - * valops.c (find_overload_match): Local 'oload_syms' now a - std::vector. - (find_oload_champ_namespace): 'oload_syms' parameter now a - std::vector pointer. - (find_oload_champ_namespace_loop): 'oload_syms' parameter now a - std::vector pointer. Adjust to new make_symbol_overload_list - interface. - -2018-11-21 Pedro Alves <palves@redhat.com> - - * common/array-view.h (array_view::splice(size_type, size_t)): New. - (array_view::splice(size_type)): New. - * eval.c (eval_call, evaluate_funcall): Adjust to use array_view. - * extension.c (xmethod_worker::get_arg_types): Adjust to return an - std::vector. - (xmethod_worker::get_result_type): Adjust to use gdb::array_view. - * extension.h: Include "common/array-view.h". - (xmethod_worker::invoke): Adjust to use gdb::array_view. - (xmethod_worker::get_arg_types): Adjust to return an std::vector. - (xmethod_worker::get_result_type): Adjust to use gdb::array_view. - (xmethod_worker::do_get_arg_types): Adjust to use std::vector. - (xmethod_worker::do_get_result_type): Adjust to use - gdb::array_view. - * gdbtypes.c (rank_function): Adjust to use gdb::array_view. - * gdbtypes.h: Include "common/array-view.h". - (rank_function): Adjust to use gdb::array_view. - * python/py-xmethods.c (python_xmethod_worker::invoke) - (python_xmethod_worker::do_get_arg_types) - (python_xmethod_worker::do_get_result_type) - (python_xmethod_worker::invoke): Adjust to new interfaces. - * valarith.c (value_user_defined_cpp_op, value_user_defined_op) - (value_x_binop, value_x_unop): Adjust to use gdb::array_view. - * valops.c (find_overload_match, find_oload_champ_namespace) - (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use - gdb:array_view and the new xmethod_worker interfaces. - * value.c (result_type_of_xmethod, call_xmethod): Adjust to use - gdb::array_view. - * value.h (find_overload_match, result_type_of_xmethod) - (call_xmethod): Adjust to use gdb::array_view. - * unittests/array-view-selftests.c: Add slicing tests. - -2018-11-21 Pedro Alves <palves@redhat.com> - - * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view. - * common/array-view.h (make_array_view): New. - * compile/compile-object-run.c (compile_object_run): Adjust to - pass an array_view. - * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust. - * eval.c (eval_call): Adjust to pass an array_view. - (evaluate_subexp_standard): Adjust to pass an array_view. - * gcore.c (call_target_sbrk): Adjust to pass an array_view. - * guile/scm-value.c (gdbscm_value_call): Likewise. - * infcall.c (push_dummy_code): Replace pointer + size parameters - with an array_view parameter. - (call_function_by_hand, call_function_by_hand_dummy): Likewise and - adjust. - * infcall.h: Include "common/array-view.h". - (call_function_by_hand, call_function_by_hand_dummy): Replace - pointer + size parameters with an array_view parameter. - * linux-fork.c (inferior_call_waitpid): Adjust to use array_view. - * linux-tdep.c (linux_infcall_mmap): Likewise. - * objc-lang.c (lookup_objc_class, lookup_child_selector) - (value_nsstring, print_object_command): Likewise. - * python/py-value.c (valpy_call): Likewise. - * rust-lang.c (rust_evaluate_funcall): Likewise. - * spu-tdep.c (flush_ea_cache): Likewise. - * valarith.c (value_x_binop, value_x_unop): Likewise. - * valops.c (value_allocate_space_in_inferior): Likewise. - * unittests/array-view-selftests.c (run_tests): Add - gdb::make_array_view test. - -2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com> - - * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather - than a fixed size buffer. - -2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com> - - * breakpoint.c (print_one_breakpoint_location): Reduce whitespace, - and remove insertion of extra spaces in GDB's output. - * cli-out.c (cli_ui_out::do_field_fmt): Update header comment. - Layout field into a temporary buffer, and then output it as a - string field. - -2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * NEWS: Document the language choice done by - 'info [types|functions|variables]|rbreak'. - -2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * symtab.c (treg_matches_sym_type_name): Use - scoped_switch_to_sym_language_if_auto instead of local logic. - (print_symbol_info): Use scoped_switch_to_sym_language_if_auto - to switch to SYM language when language mode is auto. - -2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * language.h (scoped_switch_to_sym_language_if_auto): New class. - -2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * symtab.c (search_symbols): Properly check absence of type regexp - before entering the loop scanning the minimal symbols. - -2018-11-20 John Darrington <john@darrington.wattle.id.au> - - * s12z-tdep.c (s12z_extract_return_value): New function. - (inv_reg_perm) New array. - (s12z_return_value): Populate readbuf if non-null. - -2018-11-20 Eli Zaretskii <eliz@gnu.org> - - * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode - with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater - to MinGW fixed by Gnulib. - (O_NOINHERIT): Define if not defined. - -2018-11-19 John Darrington <john@darrington.wattle.id.au> - - * s12z-tdep.c (s12z_frame_cache): Add an assertion. - -2018-11-19 Simon Marchi <simon.marchi@polymtl.ca> - - * infrun.c (displaced_step_inferior_state) <next>: Remove. - -2018-11-19 Tom Tromey <tom@tromey.com> - - * source.c (get_filename_and_charpos): Return void. - -2018-11-19 Simon Marchi <simon.marchi@polymtl.ca> - - * skip.c (_initialize_step_skip): Fix "info skip" help. - -2018-11-16 Tom Tromey <tom@tromey.com> - - PR rust/23625: - * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR. - -2018-11-19 Simon Marchi <simon.marchi@ericsson.com> - - * infrun.c (displaced_step_inferior_states): Change type to - std::forward_list. - (get_displaced_stepping_state): Adjust. - (displaced_step_in_progress_any_inferior): Adjust. - (add_displaced_stepping_state): Adjust. - (remove_displaced_stepping_state): Adjust. - -2018-11-18 Tom Tromey <tom@tromey.com> - - PR build/23814: - * target-delegates.c: Rebuild. - * ia64-linux-nat.c (class ia64_linux_nat_target) - <have_steppable_watchpoint>: Use override. Return true, not 1. - (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove - "self" argument. - (ia64_linux_nat_target::low_new_thread): Rename. - (class ia64_linux_nat_target) <read_description>: Don't declare. - * target.h (struct target_ops) <have_steppable_watchpoint>: Return - bool. - -2018-11-16 Alan Hayward <alan.hayward@arm.com> - - PR gdb/22736: - * aarch64-tdep.c (aarch64_push_dummy_call): Remove - lang_struct_return code. - -2018-11-16 Alan Hayward <alan.hayward@arm.com> - - * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with - return_method. - * alpha-tdep.c (alpha_push_dummy_call): Likewise. - * amd64-tdep.c (amd64_push_arguments): Likewise. - (amd64_push_dummy_call): Likewise. - * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise. - * arc-tdep.c (arc_push_dummy_call): Likewise. - * arm-tdep.c (arm_push_dummy_call): Likewise. - * avr-tdep.c (avr_push_dummy_call): Likewise. - * bfin-tdep.c (bfin_push_dummy_call): Likewise. - * cris-tdep.c (cris_push_dummy_call): Likewise. - * csky-tdep.c (csky_push_dummy_call): Likewise. - * frv-tdep.c (frv_push_dummy_call): Likewise. - * gdbarch.c: Regenerate. - * gdbarch.h: Regenerate. - * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with - return_method. - * h8300-tdep.c (h8300_push_dummy_call): Likewise. - * hppa-tdep.c (hppa32_push_dummy_call): Likewise. - (hppa64_push_dummy_call): Likewise. - * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise. - * i386-tdep.c (i386_push_dummy_call): Likewise. - * ia64-tdep.c (ia64_push_dummy_call): Likewise. - * infcall.c (call_function_by_hand_dummy): Likewise. - * iq2000-tdep.c (iq2000_push_dummy_call): Likewise. - * lm32-tdep.c (lm32_push_dummy_call): Likewise. - * m32c-tdep.c (m32c_push_dummy_call): Likewise. - * m32r-tdep.c (m32r_push_dummy_call): Likewise. - * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise. - * m68k-tdep.c (m68k_push_dummy_call): Likewise. - * mep-tdep.c (mep_push_dummy_call): Likewise. - * mips-tdep.c (mips_eabi_push_dummy_call): Likewise. - (mips_n32n64_push_dummy_call): Likewise. - (mips_o32_push_dummy_call): Likewise. - (mips_o64_push_dummy_call): Likewise. - * mn10300-tdep.c (mn10300_push_dummy_call): Likewise. - * msp430-tdep.c (msp430_push_dummy_call): Likewise. - * nds32-tdep.c (nds32_push_dummy_call): Likewise. - * nios2-tdep.c (nios2_push_dummy_call): Likewise. - * or1k-tdep.c (or1k_push_dummy_call): Likewise. - * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise. - (ppc64_sysv_abi_push_dummy_call): Likewise. - * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise. - (ppc64_sysv_abi_push_dummy_call): Likewise. - * riscv-tdep.c (riscv_push_dummy_call): Likewise. - * rl78-tdep.c (rl78_push_dummy_call): Likewise. - * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise. - * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise. - * rx-tdep.c (rx_push_dummy_call): Likewise. - * s390-tdep.c (s390_push_dummy_call): Likewise. - * score-tdep.c (score_push_dummy_call): Likewise. - * sh-tdep.c (sh_push_dummy_call_fpu): Likewise. - (sh_push_dummy_call_nofpu): Likewise. - * sparc-tdep.c (sparc32_store_arguments): Likewise. - (sparc32_push_dummy_call): Likewise. - * sparc64-tdep.c (sparc64_store_arguments): Likewise. - (sparc64_push_dummy_call): Likewise. - * spu-tdep.c (spu_push_dummy_call): Likewise. - * tic6x-tdep.c (tic6x_push_dummy_call): Likewise. - * tilegx-tdep.c (tilegx_push_dummy_call): Likewise. - * v850-tdep.c (v850_push_dummy_call): Likewise. - * vax-tdep.c (vax_push_dummy_call): Likewise. - * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise. - * xtensa-tdep.c (xtensa_push_dummy_call): Likewise. - -2018-11-16 Alan Hayward <alan.hayward@arm.com> - - * gdbarch.sh (enum function_call_return_method): Add enum. - * gdbarch.h: Regenerate. - * infcall.c (call_function_by_hand_dummy): Replace vars with enum. - -2018-11-15 Joel Brobecker <brobecker@adacore.com> - - * unittests/copy_bitwise-selftests.c: New file. - * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise) - (selftests::copy_bitwise_tests): Delete, moving this code to - unittests/copy_bitwise-selftests.c instead. - (_initialize_utils): Do not register copy_bitwise tests. - * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add - unittests/copy_bitwise-selftests.c. - -2018-11-14 Joel Brobecker <brobecker@adacore.com> - - * ada-lang.c (move_bits): Delete. Update all callers to use - copy_bitwise instead. - * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str) - (selftests::check_copy_bitwise, selftests::copy_bitwise_tests): - Move from here to utils.c. - (_initialize_dwarf2loc): Remove call to register copy_bitwise - selftests. - * utils.h (copy_bitwise): Add declaration. - * utils.c (copy_bitwise, bits_to_str::bits_to_str) - (selftests::check_copy_bitwise, selftests::copy_bitwise_tests): - Moved here from dwarf2loc.c. - (_initialize_utils): Register copy_bitwise selftests. - -2018-11-14 Jim Wilson <jimw@sifive.com> - - * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed. - (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment, - then increment next_regnum if odd. - (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed. - (riscv_push_dummy_call): New local ftype. Call check_typedef to set - function type. Pass new arg to riscv_arg_location based on function - type. - (riscv_return_value): Pass new arg to riscv_arg_location. - - * riscv-tdep.c (BIGGEST_ALIGNMENT): New. - (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min - of TYPE_LENGTH and BIGGEST_ALIGNMENT. - - * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when - setting len. New local align, set to max of arg align and xlen, - and pass to first riscv_assign_stack_location call. - -2018-11-12 Simon Marchi <simon.marchi@polymtl.ca> - - * skip.c (complete_skip_number): New function. - (_initialize_step_skip): Add completers to some skip commands. - -2018-11-09 Tom Tromey <tom@tromey.com> - - * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC. - (struct remote_g_packet_data): Derive from allocate_on_obstack. - <guesses>: Now a std::vector. - (remote_g_packet_data_init, register_remote_g_packet_guess): - Update. - (remote_read_description_p): Update. Return bool. - (remote_target::read_description): Update. - (struct remote_g_packet_guess): Add constructor. - -2018-11-09 Tom Tromey <tom@tromey.com> - - * common/scoped_fd.h (class scoped_fd): Add move constructor and - move assignment operator. - * psymtab.c (psymtab_to_fullname): Update. - * source.h (open_source_file): Return scoped_fd. - (find_and_open_source): Likewise. - * source.c (open_source_file): Return scoped_fd. - (get_filename_and_charpos): Update. - (print_source_lines_base): Update. Use scoped_fd::to_file. - (forward_search_command): Likewise. - (reverse_search_command): Likewise. - (find_and_open_source): Return scoped_fd. - * tui/tui-source.c (tui_set_source_content): Update. Use - gdb_file_up. - -2018-11-09 John Baldwin <jhb@FreeBSD.org> - - * minsyms.c (minimal_symbol_reader::install): Fix unsigned - overflow. - -2018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com> - - * configure: Regenerate. - -2018-11-09 Tom de Vries <tdevries@suse.de> - - * symtab.c (symbol_set_names): Call symbol_find_demangled_name - unconditionally, to set the language of the symbol. Manage freeing - returned pointer using gdb::unique_xmalloc_ptr. - -2018-11-08 Tom Tromey <tom@tromey.com> - - * record.c (require_record_target): Upper-case "<TAB>". - -2018-11-08 Tom Tromey <tom@tromey.com> - - * python/lib/gdb/command/pretty_printers.py - (InfoPrettyPrinter.invoke): Don't indent "objfile" heading. - -2018-11-08 Tom Tromey <tom@tromey.com> - - PR gdb/23555: - PR gdb/23838: - * target.h (target_supports_terminal_ours): Return bool. - * target.c (target_supports_terminal_ours): Handle case where - current_top_target returns nullptr. Return bool. - -2018-11-08 Joel Brobecker <brobecker@adacore.com> - - * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): - return the correct count for potential HFAs. - -2018-11-08 Jan Beulich <jbeulich@suse.com> - - * i387-tdep.c (i387_supply_xsave): Split handling of - X86_XSTATE_ZMM_H and X86_XSTATE_ZMM. - (i387_collect_xsave): Likewise. - -2018-11-08 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_insn::decode): Update header comment. - (riscv_frame_this_id): Catch errors thrown while building the - frame cache, leave the frame id as the default, which is the outer - frame id. - -2018-11-07 Joel Brobecker <brobecker@adacore.com> - - * ada-lang.c (read_atcb): Only set task_info->called_task if - task_info->state == Entry_Caller_Sleep. - (print_ada_task_info): Do not check task_info->state before - checking task_info->called_task. - (info_task): Likewise. - -2018-11-07 Joel Brobecker <brobecker@adacore.com> - - * ada-tasks.c (read_atcb): Clear task_info before computing - the value of each of its fields. - -2018-11-07 Andrew Burgess <andrew.burgess@embecosm.com> - - * dwarf2read.c (dwarf2_init_integer_type): Check for name being - NULL before dereferencing it. - -2018-11-06 Tom de Vries <tdevries@suse.de> - - * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate - program headers. - -2018-11-06 Max Filippov <jcmvbkbc@gmail.com> - - * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux* - so that it applies to uclinux as well. - -2018-11-06 Marius Muench <marius.muench@eurecom.fr> - - * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg - when on AAPCS. - -2018-11-06 John Baldwin <jhb@FreeBSD.org> - - * riscv-fbsd-nat.c (getregs_supplies): Return true for - RISCV_CSR_SSTATUS_REGNUM. - -2018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * source.c (open_source_file): Fix leak by transferring the - current s->fullname to the unique_xmalloc_ptr fullname given - to find_and_open_source. - -2018-11-04 Tom Tromey <tom@tromey.com> - - * varobj.c (install_default_visualizer): Update. - * python/python-internal.h (gdbpy_get_varobj_pretty_printer): - Return gdbpy_ref. - * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref. - (find_pretty_printer_from_progspace) - (find_pretty_printer_from_gdb, find_pretty_printer) - (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref. - (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer): - Update. - -2018-11-04 Tom Tromey <tom@tromey.com> - - * python/python.c (gdbpy_parameter_value): Update. - * python/python-internal.h (python_string_to_unicode) - (python_string_to_target_python_string) - (host_string_to_python_string): Return gdbpy_ref. - * python/py-utils.c (python_string_to_unicode) - (unicode_to_encoded_python_string) - (unicode_to_target_python_string) - (python_string_to_target_string) - (python_string_to_target_python_string): Return gdbpy_ref. - (python_string_to_host_string): Update. - (host_string_to_python_string): Return gdbpy_ref. - * python/py-symtab.c (stpy_get_filename, stpy_get_producer) - (stpy_fullname): Update. - * python/py-progspace.c (pspy_get_filename, pspy_solib_name): - Update. - * python/py-prettyprint.c (print_string_repr): Update. - * python/py-objfile.c (objfpy_get_filename, objfpy_get_username) - (objfpy_get_build_id): Update. - * python/py-breakpoint.c (bppy_get_location) - (bppy_get_expression, bppy_get_condition, bppy_get_commands): - Update. - -2018-11-04 Tom Tromey <tom@tromey.com> - - * python/python-internal.h (gdb_py_object_from_longest) - (gdb_py_object_from_ulongest): Return gdbpy_ref. - * python/py-value.c (valpy_int): Update. - * python/py-utils.c (gdb_py_object_from_longest): Return - gdbpy_ref. - (gdb_py_object_from_ulongest): Likewise. - * python/py-type.c (typy_get_alignof): Update. - * python/py-linetable.c (ltpy_get_all_source_lines) - (ltpy_entry_get_line, ltpy_entry_get_pc): Update. - * python/py-block.c (blpy_get_start, blpy_get_end): Update. - -2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * ada-lang.c (_initialize_ada_language): Fix typo. - -2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * language.c (type): Remove. - (_initialize_language): Remove assignment to type. - -2018-11-02 Joel Brobecker <brobecker@adacore.com> - - * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files. - * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h". - (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops. - * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o. - (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h. - (ALLDEPFILES): Add aarch64-ravenscar-thread.c. - * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o - and aarch64-ravenscar-thread.o. - * NEWS: Add entry documenting Ravenscar tasking support - on AArch64 ELF. - -2018-11-02 Matthew Malcomson <matthew.malcomson@arm.com> - - * symtab.c (info_functions_command): Initialize quiet flag. - * stack.c (info_args_command): Likewise. - -2018-11-01 Jim Wilson <jimw@sifive.com> - - * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p. - Set if pcptr if unaligned. Return 2 if unaligned_p true. Update - debugging messages. - -2018-11-01 Joel Brobecker <brobecker@adacore.com> - - * ada-lang.c (ada_watch_location_expression): New function. - (ada_language_defn): Set la_watch_location_expression to - ada_watch_location_expression. - -2018-11-01 Joel Brobecker <brobecker@adacore.com> - - * print-utils.c (int_string): Remove unnecessary trailing spaces. - -2018-11-01 Joel Brobecker <brobecker@adacore.com> - - * rs6000-tdep.c (skip_prologue): Fix potential negative left - shifting. - -2018-11-01 Jerome Guitton <guitton@adacore.com> - Joel Brobecker <brobecker@adacore.com> - - * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS. - * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS. - * arm-pikeos-tdep.c: New file. - * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM - embedded system. - * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o. - -2018-11-01 Simon Marchi <simon.marchi@ericsson.com> - - * common/pathstuff.c (get_standard_temp_dir): New. - * common/pathstuff.h (get_standard_temp_dir): New. - * config.in: Re-generate. - * configure: Re-generate. - * configure.ac: Don't check for mkdtemp. - * gnulib/aclocal-m4-deps.mk: Re-generate. - * gnulib/aclocal.m4: Re-generate. - * gnulib/config.in: Re-generate. - * gnulib/configure: Re-generate. - * gnulib/import/Makefile.am: Re-generate. - * gnulib/import/Makefile.in: Re-generate. - * gnulib/import/m4/gnulib-cache.m4: Re-generate. - * gnulib/import/m4/gnulib-comp.m4: Re-generate. - * gnulib/import/m4/mkdtemp.m4: New file. - * gnulib/import/mkdtemp.c: New file. - * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): - Add mkdtemp module. - * unittests/mkdir-recursive-selftests.c (test): Use - get_standard_temp_dir. - (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP - ifdef. - * compile/compile.c (get_compile_file_tempdir): Likewise. - -2018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> - - * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h". - (SIG_FRAME_LR_OFFSET64): New define. - (SIG_FRAME_FP_OFFSET64): New define. - (aix_sighandle_frame_cache): New Function. - (aix_sighandle_frame_this_id): New Function. - (aix_sighandle_frame_prev_register): New Function. - (aix_sighandle_frame_sniffer): New Function. - (aix_sighandle_frame_unwind): New global variable. - (rs6000_aix_init_osabi): Install new frame unwinder. - -2018-10-31 Sergio Durigan Junior <sergiodj@redhat.com> - - PR gdb/23835 - * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's - already defined. - -2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * ppc-linux-nat.c: Include nat/linux-ptrace.h. - -2018-10-31 Andrew Burgess <andrew.burgess@embecosm.com> - - * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field. - (producer_is_icc): New function. - (check_producer): Set producer_is_icc field on dwarf2_cu. - (dwarf2_init_integer_type): New function. - (read_base_type): Call dwarf2_init_integer_type instead of - init_integer_type in all cases. - (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field. - * valprint.c (maybe_negate_by_bytes): Add an assertion that the - LEN is greater than 0. - -2018-10-30 Tom Tromey <tom@tromey.com> - - * main.c (captured_main_1): Check return value of bfd_init. - -2018-10-29 Sergio Durigan Junior <sergiodj@redhat.com> - - * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete. - Adjust comments. - -2018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> - - * procfs.c: Include common/pathstuff.h. - -2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers): - Add missing braces. No functional change. - -2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * macrocmd.c (info_macro_command): Use report_unrecognized_option_error - to report a bad option and fix indentation. - * demangle.c (demangle_command): Use report_unrecognized_option_error - to report a bad option and correctly report the bad option. - -2018-10-27 Tom Tromey <tom@tromey.com> - - PR cli/23364: - * darwin-nat.c (copied_shell): New global. - (may_have_sip): Rename from should_disable_startup_with_shell. - (copy_shell_to_cache, maybe_cache_shell): New functions. - (darwin_nat_target::create_inferior): Update. Use - copied_shell. - -2018-10-27 Tom Tromey <tom@tromey.com> - - * unittests/scoped_fd-selftests.c (test_to_file): New function. - (run_tests): Call test_to_file. - * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen - temporary files. - * common/scoped_fd.h (scoped_fd::to_file): New method. - -2018-10-27 Tom Tromey <tom@tromey.com> - - * unittests/scoped_mmap-selftests.c (test_normal): Use - gdb_mkostemp_cloexec. - * unittests/scoped_fd-selftests.c (test_destroy, test_release): - Use gdb_mkostemp_cloexec. - * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4, - gnulib/config.in, gnulib/configure, - gnulib/import/Makefile.am, gnulib/import/Makefile.in, - gnulib/import/m4/gnulib-cache.m4, - gnulib/import/m4/gnulib-comp.m4: Update. - * gnulib/import/m4/mkostemp.m4: New file. - * gnulib/import/m4/mkstemp.m4: Remove. - * gnulib/import/mkostemp.c: New file. - * gnulib/import/mkstemp.m4: Remove. - * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove - mkstemp, add mkostemp. Apply new patch. - * gnulib/import/stdlib.in.h: Apply patch. - * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch: - New file. - * dwarf-index-write.c (write_psymtabs_to_index): Use - gdb_mkostemp_cloexec. - * common/filestuff.h (gdb_mkostemp_cloexec): New function. - -2018-10-27 Tom Tromey <tom@tromey.com> - - * unittests/mkdir-recursive-selftests.c: New file. - * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add - unittests/mkdir-recursive-selftests.c. - * dwarf-index-cache.c (mkdir_recursive): Move to - common/filestuff.c. - (index_cache::store): Check return value of mkdir_recursive. - (create_dir_and_check, test_mkdir_recursive): Move to new file. - (_initialize_index_cache): Don't register test. - * common/filestuff.h (mkdir_recursive): Declare. - * common/filestuff.c (mkdir_recursive): Move from - dwarf-index-cache.c. Return bool. - -2018-10-27 Tom Tromey <tom@tromey.com> - - * dwarf-index-write.c (write_psymtabs_to_index): Move - make_temp_filename to common/pathstuff.c. - * common/pathstuff.h (make_temp_filename): Declare. - * common/pathstuff.c (make_temp_filename): New function, moved - from dwarf-index-write.c. - -2018-10-27 Tom Tromey <tom@tromey.com> - - * procfs.c (procfs_target::create_inferior): Use get_shell. - * cli/cli-cmds.c (shell_escape): Use get_shell. - * windows-nat.c (windows_nat_target::create_inferior): Use - get_shell. - * common/pathstuff.c (get_shell): New function. - * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove. - (fork_inferior): Use get_shell. - * common/pathstuff.h (get_shell): Declare. - -2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * NEWS: Mention changes to 'info [args|functions|locals|variables]' - -2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * stack.c (print_variable_and_value_data): Add preg and treg. - (print_frame_local_vars): Add quiet, regexp and t_regexp arguments, - and update callers. - (print_frame_arg_vars): Likewise. - (prepare_reg): New function. - (info_locals_command): Extract info print args and use them. - (info_args_command): Likewise. - (_initialize_stack): Modify on-line help. - * symtab.c (treg_matches_sym_type_name): New function. - (search_symbols): New arg t_regexp. - (symtab_symbol_info): New args quiet, regexp, t_regexp. - (info_variables_command): Extract info print args and use them. - (info_functions_command): Likewise. - (info_types_command): Update call to symtab_symbol_info. - (_initialize_symtab): Modify on-line help. - * symtab.h (treg_matches_sym_type_name): New function. - (search_symbols): New t_regexp arg. - -2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * cli-utils.c (extract_arg_maybe_quoted): New function. - (extract_info_print_args): New function. - (info_print_args_help): New function. - (report_unrecognized_option_error): New function. - * cli-utils.h (extract_arg_maybe_quoted): New function. - (extract_info_print_args): New function. - (info_print_args_help): New function. - (report_unrecognized_option_error): New function. - -2018-10-26 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (recursively_compute_inclusions): Use std::vector. - (compute_compunit_symtab_includes): Update. - * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC. - (compunit_symtab_ptr): Likewise. - -2018-10-26 John Baldwin <jhb@FreeBSD.org> - - * fbsd-tdep.c (fbsd_print_auxv_entry): Only use - default_print_auxv_entry for specific tag values. - -2018-10-26 John Baldwin <jhb@FreeBSD.org> - - * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2. - -2018-10-26 Jim Wilson <jimw@sifive.com> - - * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h. - (riscv_linux_sigframe_init): Declare. - (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New. - (riscv_linux_sigframe): New. - (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New. - (riscv_linux_sigframe_init): Define. - (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder. - - * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment. - (riscv_isa_flen): Likewise. Drop static. - * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here. - (riscv_isa_flen): Likewise. Declare. - -2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> - Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l) - (tdesc_powerpc_isa207_htm_vsx64l): Declare. - * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET) - (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET) - (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET) - (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET) - (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET): - Define. - (struct ppc_linux_features) <htm>: New field. - (ppc_linux_no_features): Add initializer for htm field. - * arch/ppc-linux-common.c (ppc_linux_match_description): Return - new tdescs. - * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR) - (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX) - (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR): - Define if not already defined. - * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l - and rs6000/powerpc-isa207-htm-vsx64l. - (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and - rs6000/powerpc-isa207-htm-vsx64l.xml. - * features/rs6000/power-htm-spr.xml: New file. - * features/rs6000/power-htm-core.xml: New file. - * features/rs6000/power64-htm-core.xml: New file. - * features/rs6000/power-htm-fpu.xml: New file. - * features/rs6000/power-htm-altivec.xml: New file. - * features/rs6000/power-htm-vsx.xml: New file. - * features/rs6000/power-htm-ppr.xml: New file. - * features/rs6000/power-htm-dscr.xml: New file. - * features/rs6000/power-htm-tar.xml: New file. - * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file. - * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file. - * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate. - * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate. - * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate. - * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate. - * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call - fetch_regset with HTM regsets. - (store_register, store_ppc_registers): Call store_regset with HTM - regsets. - (ppc_linux_nat_target::read_description): Set htm field in the - features struct if needed. - * ppc-linux-tdep.c: Include - features/rs6000/powerpc-isa207-htm-vsx32l.c and - features/rs6000/powerpc-isa207-htm-vsx64l.c. - (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr) - (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx) - (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr) - (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals. - (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset) - (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset) - (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset) - (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset) - (ppc32_linux_cpprregset, ppc32_linux_cdscrregset) - (ppc32_linux_ctarregset): New globals. - (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions. - (ppc_linux_collect_core_cpgrregset): New function. - (ppc_linux_iterate_over_regset_sections): Call back with the htm - regsets. - (ppc_linux_core_read_description): Check if the tm spr section is - present and set htm in the features struct. - (_initialize_ppc_linux_tdep): Call - initialize_tdesc_powerpc_isa207_htm_vsx32l and - initialize_tdesc_powerpc_isa207_htm_vsx64l. - * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset): - Declare. - (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset) - (ppc32_linux_cvsxregset, ppc32_linux_cpprregset) - (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare. - * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>: - New fields. - <have_htm_fpu, have_htm_altivec, have_htm_vsx>: - Likewise. - <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise. - <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise. - (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>: - New enum fields. - <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise. - <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise. - <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise. - <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise. - <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise. - <PPC_CTAR_REGNUM>: Likewise. - (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM) - (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define. - * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG) - (IS_CEFP_PSEUDOREG): Define. - (rs6000_register_name): Hide the upper halves of checkpointed VSX - registers. Return names for the checkpointed DFP, VSX, and EFP - pseudo registers. - (rs6000_pseudo_register_type): Remove initial assert and raise an - internal error in the else clause instead. Return types for the - checkpointed DFP, VSX, and EFP pseudo registers. - (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle - checkpointed DFP pseudo registers. - (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle - checkpointed VSX pseudo registers. - (efp_pseudo_register_read, efp_pseudo_register_write): Rename - from efpr_pseudo_register_read and - efpr_pseudo_register_write. Handle checkpointed EFP pseudo - registers. - (rs6000_pseudo_register_read, rs6000_pseudo_register_write): - Handle checkpointed DFP, VSX, and EFP registers. - (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect) - (efp_ax_pseudo_register_collect): New functions. - (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo - register logic to new functions. Handle checkpointed DFP, VSX, - and EFP pseudo registers. - (rs6000_gdbarch_init): Look for and validate the htm features. - Include checkpointed DFP, VSX and EFP pseudo-registers. - * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and - HTM registers. - -2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but - without altivec or fpu. - -2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> - Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET) - (PPC_LINUX_SIZEOF_PMUREGSET): Declare. - * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU): - Define if not already defined. - * features/rs6000/power-ebb.xml: New file. - * features/rs6000/power-linux-pmu.xml: New file. - * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu - features. - * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise. - * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate. - * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate. - * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate. - * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate. - * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call - fetch_regset with ebb and pmu regsets. - (store_register, store_ppc_registers): Call store_regset with ebb - and pmu regsets. - (ppc_linux_nat_target::read_description): Set isa207 field in the - features struct if ebb and pmu are avaiable. - * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu) - (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals. - (ppc_linux_iterate_over_regset_sections): Call back with the ebb - and pmu regsets. - (ppc_linux_core_read_description): Check if the pmu section is - present and set isa207 in the features struct. - * ppc-linux-tdep.h (ppc32_linux_ebbregset) - (ppc32_linux_pmuregset): Declare. - * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field. - <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields. - <ppc_sier_regnum>: New field. - (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>: - New enum values. - <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum - values. - <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values. - (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define. - * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the - ebb and pmu features. - -2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> - Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l) - (tdesc_powerpc_isa207_vsx64l): Declare. - * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define. - (struct ppc_linux_features) <isa207>: New field. - (ppc_linux_no_features): Add initializer for isa207 field. - * arch/ppc-linux-common.c (ppc_linux_match_description): Return - new tdescs. - * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR) - (NT_PPC_TAR): Define if not already defined. - * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and - rs6000/powerpc-isa207-vsx64l. - (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and - rs6000/powerpc-isa207-vsx64l.xml. - * features/rs6000/power-tar.xml: New file. - * features/rs6000/powerpc-isa207-vsx32l.xml: New file. - * features/rs6000/powerpc-isa207-vsx64l.xml: New file. - * features/rs6000/powerpc-isa207-vsx32l.c: Generate. - * features/rs6000/powerpc-isa207-vsx64l.c: Generate. - * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate. - * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate. - * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call - fetch_regset with the TAR regset. - (store_register, store_ppc_registers): Call store_regset with the - TAR regset. - (ppc_linux_nat_target::read_description): Set isa207 field in the - features struct if needed. - * ppc-linux-tdep.c: Include - features/rs6000/powerpc-isa207-vsx32l.c and - features/rs6000/powerpc-isa207-vsx64l.c. - (ppc32_regmap_tar, ppc32_linux_tarregset): New globals. - (ppc_linux_iterate_over_regset_sections): Call back with the tar - regset. - (ppc_linux_core_read_description): Check if the tar section is - present and set isa207 in the features struct. - (_initialize_ppc_linux_tdep): Call - initialize_tdesc_powerpc_isa207_vsx32l and - initialize_tdesc_powerpc_isa207_vsx64l. - * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare. - * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field. - (enum) <PPC_TAR_REGNUM>: New enum value. - * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar - feature. - (ppc_process_record_op31): Record changes to TAR. - -2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> - Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l) - (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare. - * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET) - (PPC_LINUX_SIZEOF_DSCRREGSET): Define. - (struct ppc_linux_features) <ppr_dscr>: New field. - (ppc_linux_no_features): Add initializer for ppr_dscr field. - * arch/ppc-linux-common.c (ppc_linux_match_description): Return - new tdescs. - * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR): - Define if not already defined. - * features/Makefile (WHICH): Add - rs6000/powerpc-isa205-ppr-dscr-vsx32l and - rs6000/powerpc-isa205-ppr-dscr-vsx64l. - (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and - rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml. - * features/rs6000/power-dscr.xml: New file. - * features/rs6000/power-ppr.xml: New file. - * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file. - * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file. - * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate. - * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate. - * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate. - * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate. - * ppc-linux-nat.c: Include <sys/uio.h>. - (fetch_regset, store_regset, check_regset): New functions. - (fetch_register, fetch_ppc_registers): Call fetch_regset with - DSCR and PPR regsets. - (store_register, store_ppc_registers): Call store_regset with - DSCR and PPR regsets. - (ppc_linux_get_hwcap2): New function. - (ppc_linux_nat_target::read_description): Call - ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the - features struct if needed. - * ppc-linux-tdep.c: Include - features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and - features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c. - (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset) - (ppc32_linux_dscrregset): New globals. - (ppc_linux_iterate_over_regset_sections): Call back with the ppr - and dscr regsets. - (ppc_linux_core_read_description): Check if the ppr and dscr - sections are present and set ppr_dscr in the features struct. - (_initialize_ppc_linux_tdep): Call - initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and - initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l. - * ppc-linux-tdep.h (ppc32_linux_pprregset) - (ppc32_linux_dscrregset): Declare. - * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field. - <ppc_dscr_regnum>: New field. - (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values. - * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr - and dscr features. - (ppc_process_record_op31): Record changes to PPR and DSCR. - -2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a - second initializer line for the have_* variables. Initialize - have_fpu to 0 instead of 1. - -2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * arch/ppc-linux-common.c (ppc_linux_match_description): - Parenthesize tdesc assignements and indent them properly. - -2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * ppc-linux-nat.c (fetch_register): Change if statement to else - if. - (store_register): Likewise. - -2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * rs6000-tdep.c: Remove reggroups.h include. - (rs6000_pseudo_register_reggroup_p): Remove. - (rs6000_gdbarch_init): Remove call to - set_tdesc_pseudo_register_reggroup_p. - -2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * reggroups.c (default_register_reggroup_p): Return true for - decfloat registers and float_reggroup. - -2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove. - (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace - ppc_linux_collect_vrregset by regcache_collect_regset. - -2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * linux-tdep.c (linux_collect_regset_section_cb): Use - std::vector<gdb_byte> instead of char * and malloc for buf. - Remove xfree. - -2018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> - - * xcoffread.c (read_xcoff_symtab): Pass deduced language to - symtab_start instead of always using language_unknown. - -2018-10-26 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove - READ_P parameter, catch and ignore register access errors from - either the old or new MISA location. - (riscv_has_feature): Update call to riscv_read_misa_reg. - -2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com> - - * python/py-function.c (convert_values_to_python): Return - gdbpy_ref<>. Add header comment. - (fnpy_call): Adjust. - -2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com> - - * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>. - (cmdpy_completer_handle_brkchars): Adjust. - (cmdpy_completer): Adjust. - -2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers): - Pass correct regnum to raw_supply_zeroed. - -2018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com> - - * regcache.c (cooked_read_test): Add CSKY to the list of - architectures with a save_reggroup - -2018-10-23 Simon Marchi <simon.marchi@polymtl.ca> - - PR gdb/23368 - * infrun.c (follow_exec): In the follow_exec_mode_new case, - transfer terminal state from old new new inferior. - * terminal.h (swap_terminal_info): New function. - * inflow.c (swap_terminal_info): New function. - -2018-10-23 Tom Tromey <tom@tromey.com> - - * record-btrace.c (get_thread_current_frame_id): Rename from - get_thread_current_frame. Return a frame_id. - (record_btrace_start_replaying): Update. - -2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_register_name): Use the user-friendly names - for CSRs. - -2018-10-23 Joel Brobecker <brobecker@adacore.com> - - * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's - have_nonsteppable_watchpoint attribute to 1. - -2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all - register names. - (struct register_alias): Rename to... - (struct riscv_register_alias): ...this, and update comment. - (riscv_register_aliases): Update type, and alias names. Remove - CSR names from this list. - (riscv_register_name): Use riscv_gdb_reg_names for int and float - register names. Add an extra assertion. - (riscv_is_regnum_a_named_csr): New function. - (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr. - -2018-10-23 John Darrington <john@darrington.wattle.id.au> - - * configure.tgt: Add configuration for s12z. - * s12z-tdep.c: New file. - * NEWS: Mention new target. - -2018-10-22 Jim Wilson <jimw@sifive.com> - - * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in - FP reg smaller than FP reg size, and fill with -1 instead of 0. - - * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New. - (riscv_register_type): Use them. - (riscv_print_one_register_info): Handle union of floats same as float. - * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and - riscv_fpreg_q_type fields. - -2018-10-21 Simon Marchi <simon.marchi@ericsson.com> - - * gdbarch.sh (gdbarch_num_cooked_regs): New. - * gdbarch.h: Re-generate. - * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs. - * dwarf2-frame.c (dwarf2_frame_cache): Likewise. - * eval.c (evaluate_subexp_standard): Likewise. - * findvar.c (value_of_register): Likewise. - (value_of_register_lazy): Likewise. - (address_from_register): Likewise. - * frame.c (get_frame_register_bytes): Likewise. - * gdbarch-selftests.c (register_to_value_test): Likewise. - * h8300-tdep.c (h8300_register_type): Likewise. - * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise. - (i386_svr4_reg_to_regnum): Likewise. - * infcmd.c (default_print_registers_info): Likewise. - (registers_info): Likewise. - (print_vector_info): Likewise. - (default_print_float_info): Likewise. - * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise. - * mdebugread.c (mdebug_reg_to_regnum): Likewise. - * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise. - (mi_cmd_data_list_changed_registers): Likewise. - (mi_cmd_data_list_register_values): Likewise. - (mi_cmd_data_write_register_values): Likewise. - (mi_cmd_trace_frame_collected): Likewise. - * mips-tdep.c (print_gp_register_row): Likewise. - (mips_print_registers_info): Likewise. - * nds32-tdep.c (nds32_gdbarch_init): Likewise. - * regcache.c (init_regcache_descr): Likewise. - (register_size): Likewise. - (register_dump::dump): Likewise. - (cooked_read_test): Likewise. - (cooked_write_test): Likewise. - * rs6000-tdep.c (rs6000_register_sim_regno): Likewise. - (rs6000_gdbarch_init): Likewise. - * stabsread.c (stab_reg_to_regnum): Likewise. - * stack.c (info_frame_command): Likewise. - * target-descriptions.c (tdesc_register_name): Likewise. - * trad-frame.c (trad_frame_alloc_saved_regs): Likewise. - * tui/tui-regs.c (tui_show_register_group): Likewise. - * user-regs.c (user_reg_map_name_to_regnum): Likewise. - (user_reg_map_regnum_to_name): Likewise. - (value_of_user_reg): Likewise. - (maintenance_print_user_registers): Likewise. - * xtensa-tdep.c (xtensa_find_register_by_name): Likewise. - (xtensa_register_name): Likewise. - (xtensa_register_type): Likewise. - (xtensa_reg_to_regnum): Likewise. - (xtensa_pseudo_register_read): Likewise. - (xtensa_pseudo_register_write): Likewise. - -2018-10-21 Simon Marchi <simon.marchi@polymtl.ca> - - * amd64-tdep.c (amd64_pseudo_register_read_value): Use - correctly-sized buffer with raw_read. - (amd64_pseudo_register_write): Use correctly-sized buffer for - raw_read/raw_write. - -2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg - in add_prefix_cmd of set print type. - -2018-10-19 Tom Tromey <tom@tromey.com> - - PR tui/18388: - * NEWS: Mention tabset deprecation. - * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals. - (update_tab_width): New function. - (tui_set_tab_width, tui_show_tab_width): New functions. - (tui_set_tab_width_command): Use update_tab_width. - (_initialize_tui_win): Move to end of file. Deprecate "tabset". - Add new "set tui tab-width" command. - * tui/tui-source.c (tui_set_source_content): Update. - * tui/tui-disasm.c (tui_set_disassem_content): Update. - * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len): - Don't declare. - (tui_tab_width): Declare. - * tui/tui-data.c (default_tab_len, tui_default_tab_len) - (tui_set_default_tab_len): Remove. - -2018-10-19 Tom Tromey <tom@tromey.com> - - * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence) - (key_is_backspace, tui_getc): Don't declare. - * tui/tui-io.c (key_is_start_sequence): Now static. - (key_is_end_sequence, key_is_backspace): Remove. - (tui_getc): Now static. - -2018-10-19 Tom Tromey <tom@tromey.com> - - * symfile.c (reread_symbols): Clear "static_links". - -2018-10-19 Alan Hayward <alan.hayward@arm.com> - - * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New - define. - (aarch64_linux_sigframe_init): Extra boundary checks. - -2018-10-19 Andreas Arnez <arnez@linux.ibm.com> - - * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield - the possibly non-existent tdesc type 'vec128', but the type of raw - register v16 instead. - -2018-10-19 Gary Benson <gbenson@redhat.com> - - * cli/cli-interp.c (cli_interp::~cli_interp): New function. - -2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com> - - PR cli/23785 - * cli/cli-dump.c (restore_binary_file): Check if "file" is - NULL. - -2018-10-17 Paul Koning <paul_koning@dell.com> - - * charset.c (convert_between_encodings): Fix unsigned overflow. - -2018-10-17 John Baldwin <jhb@FreeBSD.org> - - * fbsd-nat.c (fbsd_nat_target::info_proc) Use - fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry. - * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static. - (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry): - New functions. - (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header - and fbsd_info_proc_mappings_header. - * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove. - (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry): - New. - -2018-10-17 Joel Brobecker <brobecker@adacore.com> - - * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as - Solaris Maintainer. - -2018-10-15 Tom Tromey <tom@tromey.com> - - * tui/tui.c (strcat_to_buf): Remove casts. - * tui/tui-winsource.c (tui_show_source_line) - (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts. - * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts. - * tui/tui-windata.c (tui_first_data_item_displayed) - (tui_delete_data_content_windows, tui_erase_data_content) - (tui_display_all_data, tui_display_data_from) - (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts. - * tui/tui-win.c (tui_set_win_height) - (make_invisible_and_set_new_height, parse_scrolling_args): Remove - casts. - * tui/tui-win.c (tui_resize_all): Remove casts. - (tui_scroll_backward_command, tui_set_focus) - (tui_set_tab_width_command): Likewise. - * tui/tui-source.c (tui_vertical_source_scroll): Remove cast. - * tui/tui-regs.c (tui_show_register_group): Remove cast. - * tui/tui-layout.c (tui_set_layout_by_name): Remove cast. - * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast. - * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content): - Remove casts. - -2018-10-15 Simon Marchi <simon.marchi@ericsson.com> - - * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as - AArch64/ARM maintainer. - -2018-10-11 Gary Benson <gbenson@redhat.com> - - * interps.h (interp::m_name): Make private and mutable. - * interps.c (interp::~interp): Free m_name. - -2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com> - Simon Marchi <simark@simark.ca> - - * README (`configure' options): Add documentation for new - "--enable-unit-tests" option. - * acinclude.m4: Include "selftest.m4". - * configure: Regenerate. - * configure.ac: Use "GDB_AC_SELFTEST". - * maint.c (maintenance_selftest): Update message informing - that selftests have been disabled. - (maintenance_info_selftests): Likewise. - * selftest.m4: New file. - -2018-10-10 Gary Benson <gbenson@redhat.com> - - * remote.c (remote_target::remote_send_printf): Add - missing va_end found by Coverity. - -2018-10-10 Markus Metzger <markus.t.metzger@intel.com> - - * btrace.c (ftrace_update_function): Add indirect jump heuristic. - -2018-10-09 Tom Tromey <tom@tromey.com> - - * configure: Rebuild. - * sanitize.m4 (AM_GDB_UBSAN): Default to no. - * NEWS: Update --enable-ubsan documentation. - -2018-10-09 Gary Benson <gbenson@redhat.com> - - * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun - found by Coverity. - -2018-10-08 Tom Tromey <tom@tromey.com> - - * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused - variable. - (riscv_fbsd_init_abi): Likewise. - -2018-10-08 Weimin Pan <weimin.pan@oracle.com> - * valops.c (value_struct_elt_for_reference): Rename local variable - to work around the shadowing a previous local warning. - -2018-10-08 John Baldwin <jhb@FreeBSD.org> - - * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c. - * NEWS: Mention new FreeBSD/riscv native configuration. - * configure.host: Add riscv*-*-freebsd*. - * configure.nat: Likewise. - * riscv-fbsd-nat.c: New file. - -2018-10-08 John Baldwin <jhb@FreeBSD.org> - - * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o. - (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h. - (ALLDEPFILES): Add riscv-fbsd-tdep.c. - * NEWS: Mention new FreeBSD/riscv target. - * configure.tgt: Add riscv*-*-freebsd*. - * riscv-fbsd-tdep.c: New file. - * riscv-fbsd-tdep.h: New file. - -2018-10-08 John Baldwin <jhb@FreeBSD.org> - - * regcache.h (struct regcache_map_entry): Note that this type can - be used with traditional frame caches. - * trad-frame.c (trad_frame_set_reg_regmap): New. - * trad-frame.h (trad_frame_set_reg_regmap): New. - -2018-10-08 Weimin Pan <weimin.pan@oracle.com> - - PR c++/16841 - * valops.c (get_virtual_base_offset): New function. - (value_struct_elt_for_reference): Use it to get virtual base offset - and add it in calculating class member address. - -2018-10-08 John Darrington <john@darrington.wattle.id.au> - - * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field. - (check_producer): Check if the producer is codewarrior. - (producer_is_codewarrior): New function. - (lnp_state_machine::record_line): Ignore is_stmt flag for records - produced by codewarrior. - (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior. - -2018-10-06 Tom Tromey <tom@tromey.com> - - PR python/19399: - * python/py-inferior.c: Add "architecture" entry. - (infpy_architecture): New function. - -2018-10-06 Tom Tromey <tom@tromey.com> - - PR python/21765: - * python/py-symbol.c (gdbpy_initialize_symbols): Redefine - SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN, - SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN, - SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK. - -2018-10-06 Tom Tromey <tom@tromey.com> - - PR build/17077: - * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..". - * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c, - microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in - #include. - -2018-10-06 Tom Tromey <tom@tromey.com> - - * python/py-breakpoint.c (bppy_get_location): Handle a - bp_breakpoint without a location. - -2018-10-06 Tom Tromey <tom@tromey.com> - - * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq) - (_RegEx): Reformat help text. - * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches) - (AnyCallerIs, AnyCallerMatches): Reformat help text. - * python/lib/gdb/function/as_string.py (_AsString): Reformat help - text. - * python/lib/gdb/command/xmethods.py (InfoXMethod) - (EnableXMethod, DisableXMethod): Remove help indentation. - Capitalize meta-syntactic variables. - * python/lib/gdb/command/unwinders.py (InfoUnwinder) - (EnableUnwinder, DisableUnwinder): Remove help indentation. - Capitalize meta-syntactic variables. - * python/lib/gdb/command/explore.py (ExploreCommand) - (ExploreValueCommand, ExploreTypeCommand): Reformat help text. - * python/lib/gdb/command/type_printers.py (InfoTypePrinter) - (EnableTypePrinter, DisableTypePrinter): Remove help indentation. - * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter): - Remove help indentation. - (EnablePrettyPrinter, DisablePrettyPrinter): Likewise. - * python/lib/gdb/command/frame_filters.py (EnableFrameFilter) - (DisableFrameFilter, SetFrameFilterPriority) - (ShowFrameFilterPriority, InfoFrameFilter): Reword help text. - -2018-10-06 Tom Tromey <tom@tromey.com> - - PR tui/28819: - * tui/tui-io.c (gdb_wgetch): New function. - (tui_mld_getc, tui_getc): Use it. - -2018-10-05 Tom Tromey <tom@tromey.com> - - * sol-thread.c (sol_thread_target::wait): Rename inner - "save_ptid". - -2018-10-04 Tom Tromey <tom@tromey.com> - - * configure: Rebuild. - * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local. - -2018-10-04 Tom Tromey <tom@tromey.com> - - * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner - declaration of "block". - -2018-10-04 Tom Tromey <tom@tromey.com> - - * common/filestuff.c (fdwalk): Remove inner declaration of - "result". - -2018-10-04 Tom Tromey <tom@tromey.com> - - * msp430-tdep.c (msp430_push_dummy_call): Rename inner - "structs_addr" and hoist declaration. - -2018-10-04 Tom Tromey <tom@tromey.com> - - * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new - variable "size". - -2018-10-04 Tom Tromey <tom@tromey.com> - - * mdebugread.c (parse_partial_symbols): Use std::string. - -2018-10-04 Tom Tromey <tom@tromey.com> - - * ctf.c (SET_ARRAY_FIELD): Rename "u32". - * p-valprint.c (pascal_val_print): Split inner "i" variable. - * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop - header. - * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in - more inner scope. - * xcoffread.c (read_xcoff_symtab): Rename inner "symbol". - * varobj.c (varobj_update): Rename inner "newobj", - "type_changed". - * valprint.c (generic_emit_char): Rename inner "buf". - * valops.c (find_overload_match): Rename inner "temp". - (value_struct_elt_for_reference): Declare "v" in more inner - scope. - * v850-tdep.c (v850_push_dummy_call): Rename "len". - * unittests/array-view-selftests.c (run_tests): Rename inner - "vec". - * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop - header. - * tracepoint.c (merge_uploaded_trace_state_variables): Declare - "tsv" in more inner scope. - (print_one_static_tracepoint_marker): Rename inner - "tuple_emitter". - * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower. - (tic6x_push_dummy_call): Don't redeclare "addr". - * target-float.c: Declare "dto" lower. - * symtab.c (lookup_local_symbol): Rename inner "sym". - (find_pc_sect_line): Rename inner "pc". - * stack.c (print_frame): Don't redeclare "gdbarch". - (return_command): Rename inner "gdbarch". - * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner - "sp". - * rust-lang.c (rust_internal_print_type): Declare "i" in loop - header. - * rs6000-tdep.c (ppc_process_record): Rename inner "addr". - * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner - scope. - * remote.c (remote_target::update_thread_list): Don't redeclare - "tp". - (remote_target::process_initial_stop_replies): Rename inner - "thread". - (remote_target::remote_parse_stop_reply): Don't redeclare "p". - (remote_target::wait_as): Don't redeclare "stop_reply". - (remote_target::get_thread_local_address): Rename inner - "result". - (remote_target::get_tib_address): Likewise. - - * regcache.c (cooked_read_test): Rename "regnum". - * record-btrace.c (cmd_record_btrace_start): Rename inner - "exception". - * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in - loop header. - * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop - header. - (ppu2spu_sniffer): Rename inner "buf". - * parse.c (operator_check_standard): Rename inner "type", - "objfile". - * p-valprint.c (pascal_val_print): Introduce new scope for - "low_bound", "high_bound". - * p-exp.y (yylex): Declare "i" in loop header. - * objfiles.c (objfile_relocate1): Declare "i" in loop header. - Lower declaration of "s". - * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop - header. - (nios2_push_dummy_call): Rename "len". - * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static - "buf". - (linux_xfer_osdata_fds, linux_xfer_osdata_shm) - (linux_xfer_osdata_sem, linux_xfer_osdata_msg) - (linux_xfer_osdata_modules): Likewise. - * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len". - (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call) - (mips_o64_push_dummy_call): Likewise. - * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner - "op". - * mi/mi-main.c (list_available_thread_groups): Rename inner - "tuple_emitter". - (mi_cmd_data_read_memory): Rename inner "opts". - * mi/mi-cmd-var.c (varobj_update_one): Rename inner - "tuple_emitter". - * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header. - * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in - more inner scope. - (parse_partial_symbols): Rename inner "pst", "p", "name" - * main.c (captured_main_1): Rename inner "i"s. - * machoread.c (macho_symfile_read_all_oso): Don't redeclare - "oso2". - * linux-tdep.c (linux_info_proc): Rename inner "filename". - * linespec.c (linespec_lexer_lex_string): Rename inner "p". - * infrun.c (handle_no_resumed): Don't redeclare "thread". - (handle_signal_stop): Rename inner "gdbarch". - (handle_command): Declare "signum" in loop header. - * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare - "status". - (examine_prologue): Rename inner "sol" and "sof". - (ia64_extract_return_value): Rename inner "val". Declare another - "val" in a more inner scope. - * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in - inner scope. - * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner - "except". - * findvar.c (default_read_var_value): Don't redeclare "addr". - * f-exp.y (yylex): Declare "i" in loop header. - * eval.c (evaluate_subexp_standard): Don't redeclare "type". - Rename inner "type", "expect_type". - (evaluate_subexp_for_sizeof): Rename inner "pc". - * elfread.c (elf_symfile_read): Rename inner "abfd". - * dwarf2read.c (read_debug_names_from_section): Don't redeclare - "bytes_read". - (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch". - (add_partial_subprogram): Rename inner "lowpc" and "highpc". - (dwarf_decode_line_header): Rename inner "lh". - * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare - "offset". Declare "i" in loop header. - (disassemble_dwarf_expression): Rename inner "addr_size". - * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename - inner "result". - (dwarf_expr_context::execute_stack_op): Rename inner "offset". - * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s. - * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner - "inner_list_emitter". - (do_mixed_source_and_assembly): Rename inner "tuple_emitter". - * disasm-selftests.c (print_one_insn_test): Wrap "bplen" - declaration in a block. - * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower. - * cp-valprint.c (cp_print_value_fields): Don't redeclare - "obstack_final_size". - * cp-support.c (inspect_type): Declare "i" in loop header. - * compile/compile.c (compile_instance::insert_symbol_error): - Rename inner "e". - * common/agent.c (agent_run_command): Remove inner "ret" - declaration. - * coffread.c (coff_symfile_read): Rename inner "name". - (coff_symfile_read): Rename inner "abfd". - * cli/cli-utils.c (get_number_trailer): Rename inner "val". - * cli/cli-cmds.c (print_disassembly): Rename inner "low" and - "high". - * c-exp.y (lex_one_token): Move "len" declaration lower. - * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare - "gdbarch". - (create_exception_master_breakpoint): Likewise. Don't redeclare - "b". - (watch_command_1): Declare "mark" later. - (clear_command): Don't shadow "a" or "b". - (delete_command): Rename inner "b". - (delete_trace_command): Likewise. - * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner - "op". - (arm_gdbarch_init): Remove inner "e_flags". - * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare - "offset" in inner blocks. - -2018-10-04 Simon Marchi <simon.marchi@ericsson.com> - - * dwarf-index-write.c (file_write): Don't write if the vector is - empty. - -2018-10-05 Tom de Vries <tdevries@suse.de> - - * python/py-progspace.c (pspy_solib_name): Fix type mismatch in - PyArg_ParseTuple call. - -2018-10-05 Tom de Vries <tdevries@suse.de> - - * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in - PyArg_ParseTuple call. - -2018-10-04 Joel Brobecker <brobecker@adacore.com> - - * psymtab.c (recursively_search_psymtabs): Reformat parameters - to avoid exceeding 80 characters per line limit. - -2018-10-04 Tom Tromey <tom@tromey.com> - - * symfile.c (syms_from_objfile_1, finish_new_objfile) - (reread_symbols): Update. - * complaints.h (clear_complaints): Remove argument. - * complaints.c (enum complaint_series): Remove. - (series): Remove global. - (complaint_internal): Update. - (clear_complaints): Remove argument. - -2018-10-04 Tom Tromey <tom@tromey.com> - - * symfile.c (symbol_file_add_with_addrs): Do not print "no - debugging symbols" message if there is a separate debug objfile. - -2018-10-04 Tom Tromey <tom@tromey.com> - - PR cli/19551: - * symfile.c (symbol_file_add_with_addrs): Update output. - * psymtab.c (require_partial_symbols): Update output. - -2018-10-04 Tom Tromey <tom@tromey.com> - - PR cli/22234: - * complaints.c: Emit \n. - -2018-10-04 Tom Tromey <tom@tromey.com> - - * symfile.c (symbol_file_add_with_addrs, symbol_file_clear) - (separate_debug_file_exists, find_separate_debug_file) - (add_symbol_file_command, reread_symbols, allocate_symtab) - (allocate_compunit_symtab): Use filtered printing, not - unfiltered. - * psymtab.c (require_partial_symbols, dump_psymtab) - (allocate_psymtab): Use filtered printing, not unfiltered. - -2018-10-04 Tom Tromey <tom@tromey.com> - - * complaints.c (complaint_internal): Correctly check complaint - count. - -2018-10-04 Tom Tromey <tom@tromey.com> - - * complaints.h (struct complaints): Remove declaration. - * complaints.c (clear_complaints): Remove an unused variable. - -2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> - - * MAINTAINERS (Write After Approval): Add self. - -2018-10-03 Tom Tromey <tom@tromey.com> - - * guile/scm-value.c (gdbscm_value_to_string): Initialize - "buffer_contents". - * coffread.c (coff_symtab_read): Initialize "newobj". - -2018-10-03 Simon Marchi <simon.marchi@polymtl.ca> - - * dwarf2read.c (read_func_scope): Remove struct keyword in - range-based for. - -2018-10-03 Tom Tromey <tom@tromey.com> - - * README: Mention --enable-ubsan. - * NEWS: Mention --enable-ubsan. - * acinclude.m4: Include sanitize.m4. - * configure: Rebuild. - * configure.ac: Call AM_GDB_UBSAN. - * sanitize.m4: New file. - -2018-10-03 Tom Tromey <tom@tromey.com> - - * expression.h (enum exp_opcode): Use uint8_t as base type. - * expprint.c (op_name): Handle invalid opcodes. - -2018-10-03 Tom Tromey <tom@tromey.com> - - * parse.c (prefixify_expression): Add assert. - (parse_exp_in_context_1): Throw exception if the expression is - empty. - -2018-10-03 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (read_signed_leb128): Work in ULONGEST. - -2018-10-03 Tom Tromey <tom@tromey.com> - - * c-exp.y (parse_number): Work in unsigned. Remove casts. - -2018-10-03 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (read_subrange_type): Make "negative_mask" - unsigned. - -2018-10-03 Tom Tromey <tom@tromey.com> - - * findvar.c (extract_integer): Do work in an unsigned type. - -2018-10-03 Tom Tromey <tom@tromey.com> - - * common/enum-flags.h (enum_flags::operator~): Add static assert. - * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as - base type. - * objfile-flags.h (enum objfile_flag): Use unsigned as base type. - * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base - type. - * c-lang.h (enum c_string_type_values): Use unsigned as base - type. - * btrace.h (enum btrace_thread_flag): Use unsigned as base type. - -2018-10-03 Tom Tromey <tom@tromey.com> - - * dwarf2-frame.h (dwarf2_frame_state_reg_info) - <~dwarf2_frame_state_reg_info>: Update. - <dwarf2_frame_state_reg_info>: Update. - <alloc_regs>: Add assertion. Update. - <reg>: Now a std::vector. - <num_regs>: Remove. - <swap>: Update. - * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program) - (execute_cfa_program_test, dwarf2_frame_cache): Update. - -2018-10-03 Tom Tromey <tom@tromey.com> - - * namespace.c (add_using_directive): Don't pass NULL to memcpy. - -2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment. - -2018-10-02 Tom Tromey <tom@tromey.com> - - * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest. - -2018-10-02 John Darrington <john@darrington.wattle.id.au> - - * NEWS: Mention changed commands. - * ser-uds.c: New file. - * configure.ac (SER_HARDWIRE): Add ser-uds.o. - * configure: Regenerate. - * Makefile.in: Add new file. - * serial.c (serial_open): Check if filename is a socket - and lookup the appropriate interface accordingly. - -2018-10-01 Alan Hayward <alan.hayward@arm.com> - - * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add - define. - (AARCH64_EXTRA_MAGIC): Likewise. - (AARCH64_FPSIMD_MAGIC): Likewise. - (AARCH64_SVE_MAGIC): Likewise. - (AARCH64_EXTRA_DATAP_OFFSET): Likewise. - (AARCH64_FPSIMD_FPSR_OFFSET): Likewise. - (AARCH64_FPSIMD_FPCR_OFFSET): Likewise. - (AARCH64_FPSIMD_V0_OFFSET): Likewise. - (AARCH64_FPSIMD_VREG_SIZE): Likewise. - (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise. - (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise. - (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise. - (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise. - (AARCH64_SVE_CONTEXT_SIZE): Likewise. - (read_aarch64_ctx): Add function. - (aarch64_linux_sigframe_init): Detect FP registers. - -2018-10-01 Alan Hayward <alan.hayward@arm.com> - - * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here. - (AARCH64_D0_REGNUM): Likewise. - (AARCH64_S0_REGNUM): Likewise. - (AARCH64_H0_REGNUM): Likewise. - (AARCH64_B0_REGNUM): Likewise. - (AARCH64_SVE_V0_REGNUM): Likewise. - * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here. - (AARCH64_D0_REGNUM): Likewise. - (AARCH64_S0_REGNUM): Likewise. - (AARCH64_H0_REGNUM): Likewise. - (AARCH64_B0_REGNUM): Likewise. - (AARCH64_SVE_V0_REGNUM): Likewise. - -2018-10-01 Gary Benson <gbenson@redhat.com> - - * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef. - * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use - prfpregset_t instead of gdb_prfpregset_t. - * configure.ac (PRFPREGSET_T_BROKEN): Remove check. - * configure, config.in: Rebuild. - -2018-10-01 Gary Benson <gbenson@redhat.com> - - * common/gdb_proc_service.h: New file, factored out from... - * gdb_proc_service.h: Moved common code to the above file. - * Makefile.in (HFILES_NO_SRCDIR): Add the above new file. - -2018-10-01 Gary Benson <gbenson@redhat.com> - - * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is - undefined. Use elf_fpregset_t if prfpregset_t is undefined. - -2018-10-01 Gary Benson <gbenson@redhat.com> - - * configure.ac: Check if sys/procfs.h defines elf_fpregset_t. - (AC_CHECK_HEADERS): Check for linux/elf.h. - * configure, config.in: Rebuild. - * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h - doesn't define elf_fpregset_t. - -2018-10-01 Gary Benson <gbenson@redhat.com> - - * gdb_proc_service.h: Whitespace change. - -2018-10-01 Tom Tromey <tom@tromey.com> - - * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H. - * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H. - * common/scoped_fd.h: Don't check HAVE_UNISTD_H. - -2018-10-01 Tom Tromey <tom@tromey.com> - - * README: Minor change. - -2018-09-30 Pedro Alves <palves@redhat.com> - - * darwin-nat-info.c (darwin_debug_regions_recurse) - (info_mach_exceptions_command): Remove unused local variables. - * darwin-nat.c (darwin_decode_notify_message) - (darwin_nat_target::resume, darwin_nat_target::mourn_inferior) - (darwin_stop_inferior, darwin_setup_exceptions) - (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him) - (darwin_nat_target::attach, darwin_nat_target::detach) - (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused - local variables. - * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local - variables. - -2018-09-29 Tom Tromey <tom@tromey.com> - - * README: Remove some leftover text. - -2018-09-29 Tom Tromey <tom@tromey.com> - - * PROBLEMS: Rewrite. - * README: Update. - -2018-09-28 John Baldwin <jhb@FreeBSD.org> - - * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to - case with explicit breakpoint kind. - * riscv-tdep.c (show_use_compressed_breakpoints): Remove - 'additional_info' and related logic. - (riscv_debug_breakpoints): New variable. - (riscv_breakpoint_kind_from_pc): Use the length of the existing - instruction to determine the breakpoint kind. - (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints' - flag. Update description of 'set/show riscv - use-compressed-breakpoints' flag. - -2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com> - - (NEWS): Mention changes to frame related commands. - * cli/cli-decode.c (add_cmd_suppress_notification): New function. - (add_prefix_cmd_suppress_notification): New function. - (add_com_suppress_notification): Call - add_cmd_suppress_notification. - * command.h (add_cmd_suppress_notification): Declare. - (add_prefix_cmd_suppress_notification): Declare. - * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include. - (parse_frame_specification): Moved from stack.c, with - simplification to handle a single argument. - (mi_cmd_stack_select_frame): Use parse_frame_specification, the - switch to the selected frame. Add a header comment. - * stack.c: Remove 'safe-ctype.h' include. - (find_frame_for_function): Add declaration. - (find_frame_for_address): New function. - (parse_frame_specification): Moved into mi/mi-cmd-stack.c. - (frame_selection_by_function_completer): New function. - (info_frame_command): Rename to... - (info_frame_command_core): ...this, and update parameter types. - (select_frame_command): Rename to... - (select_frame_command_core): ...this, and update parameter types. - (frame_command): Rename to... - (frame_command_core): ...this, and update parameter types. - (class frame_command_helper): New class to wrap implementations of - frame related sub-commands. - (frame_apply_cmd_list): New static global. - (frame_cmd_list): Make static. - (select_frame_cmd_list): New global for sub-commands. - (info_frame_cmd_list): New global for sub-commands. - (_initialize_stack): Register sub-commands for 'frame', - 'select-frame', and 'info frame'. Update 'frame apply' commands - to use frame_apply_cmd_list. Move function local static - frame_apply_list to file static frame_apply_cmd_list for - consistency. - * stack.h (select_frame_command): Delete declarationn. - (select_frame_for_mi): Declare new function. - -2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_insn::decode): Decode c.lui. - (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI, - and NOP. - -2018-09-26 Simon Marchi <simon.marchi@ericsson.com> - - * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove. - -2018-09-26 Tom Tromey <tom@tromey.com> - - * valops.c (auto_abandon): Remove dead code. - -2018-09-26 Tom Tromey <tom@tromey.com> - - * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s. - -2018-09-24 Tom Tromey <tom@tromey.com> - - * common/pathstuff.c (get_standard_cache_dir): Make - "xdg_cache_home" and "home" const. - * top.c (init_history): Make "tmpenv" const. - * main.c (get_init_files): Make "homedir" const. - -2018-09-23 Tom Tromey <tom@tromey.com> - - PR python/18852: - * python/py-param.c (get_set_value): Use gdbpy_handle_exception. - -2018-09-23 Tom Tromey <tom@tromey.com> - - * python/py-function.c (fnpy_call): Use gdbpy_handle_exception. - * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception. - * python/python-internal.h (gdbpy_handle_exception): Declare. - * python/py-utils.c (gdbpy_handle_exception): New function. - -2018-09-23 Tom Tromey <tom@tromey.com> - - PR python/17284: - * python/py-type.c (typy_template_argument): Check for negative - argument number. - -2018-09-23 Tom Tromey <tom@tromey.com> - - PR python/14062: - * python/python.c (gdbpy_run_events): Do not ignore exceptions. - -2018-09-23 Tom Tromey <tom@tromey.com> - - PR python/18170: - * python/py-value.c (valpy_int): Allow conversion from pointer - type. - -2018-09-23 Tom Tromey <tom@tromey.com> - - PR python/20126: - * python/py-value.c (valpy_int): Respect type sign. - -2018-09-23 Tom Tromey <tom@tromey.com> - - PR python/18352; - * python/py-value.c (valpy_float): Allow conversions from int or - char. - (valpy_int, valpy_long): Allow conversions from float. - -2018-09-23 Tom Tromey <tom@tromey.com> - - * ctf.c (ctf_start): Use gdb_fopen_cloexec. - * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec. - -2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> - - * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize - __sighndlr. - * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise. - -2018-08-02 Jon Turney <jon.turney@dronecode.org.uk> - - * windows-nat.c (windows_nat_target::wait): Remove a spurious - target_terminal::ours(). - -2018-09-23 Simon Marchi <simon.marchi@ericsson.com> - - * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type - of vl to ULONGEST. - -2018-09-21 Yacov Simhony <ysimhony@gmail.com> - - * breakpoint.c (update_inserted_breakpoint_locations): Remove - redundant condition. - -2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> - - * proc-utils.h (PROC_CTL_WORD_TYPE): Remove. - - * procfs.c: Don't check for PR_MODEL_NATIVE definition. - * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references. - * sol-thread.c (ps_pdmodel): Don't guard definition. - - * procfs.c: Fix formatting. - - * procfs.c (sysset_t_alloc): Remove. - (create_procinfo): Use XNEW instead of sysset_t_alloc. - (procfs_debug_inferior): Likewise. - (procfs_set_exec_trap): Likewise. - (proc_set_traced_sysentry): Don't allocate argp dynamically. - (proc_set_traced_sysexit): Likewise. - - * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning. - (dead_procinfo): Likewise. - (proc_warn): Likewise. - (proc_error): Likewise. - (proc_get_LDT_entry): Likewise. - (do_attach): Likewise. - (procfs_target::pid_to_str): Likewise. - (iterate_over_mappings): Likewise. - - * procfs.c (create_procinfo): Fix ARI warning. - (proc_get_status): Likewise. - (proc_stop_process): Likewise. - (proc_run_process): Likewise. - (proc_kill): Likewise. - (proc_get_LDT_entry): Likewise. - (procfs_find_LDT_entry): Likewise. - (proc_update_threads): Likewise. - (proc_iterate_over_threads): Likewise. - (do_attach): Likewise. - (procfs_xfer_memory): Likewise. - (invalidate_cache): Likewise. - (procfs_target::resume): Likewise. - (procfs_init_inferior): Likewise. - (procfs_set_exec_trap): Likewise. - (procfs_target::thread_alive): Likewise. - (procfs_target::pid_to_exec_file): Likewise. - (iterate_over_mappings): Likewise. - (procfs_target::make_corefile_notes): Likewise. - * sol-thread.c (sol_thread_target::thread_alive): Likewise. - - * procfs.c (procfs_find_LDT_entry): Silence ARI warning. - (procfs_find_LDT_entry): Likewise. - * sol-thread.c (ps_lgetLDT): Likewise. - -2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> - - PR tdep/17903 - * procfs.c (procfs_target): Declare pid_to_exec_file. - (procfs_target::pid_to_exec_file): New. - -2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> - - * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1 - renaming. - Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1, - AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2. - -2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> - - * i386-v4-nat.c (regmap, supply_gregset, fill_gregset) - (supply_fpregset, fill_fpregset): Move ... - * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here. - Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards. - Remove references to ioctl-based procfs. - Include <sys/reg.h>. - Remove PR_MODEL_NATIVE guards. - * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o. - * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c. - -2018-09-19 Xavier Roirand <roirand@adacore.com> - - PR gdb/20981: - * solib-darwin.c (darwin_get_dyld_bfd): New function. - (darwin_solib_get_all_image_info_addr_at_init): Update call. - (darwin_solib_create_inferior_hook): Handle unrelocated dyld. - -2018-09-19 John Baldwin <jhb@FreeBSD.org> - - * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix. - (fbsd_print_sockaddr_in6): Likewise. - -2018-09-19 Richard Bunt <richard.bunt@arm.com> - Chris January <chris.january@arm.com> - - * eval.c (skip_undetermined_arglist): Skip argument list helper. - (evaluate_subexp_standard): Return a dummy type when - honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the - OP_F77_UNDETERMINED_ARGLIST case. - * expression.h (enum noside): Update comment. - -2018-09-19 George Vasick <george.vasick@oracle.com> - - * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1. - -2018-09-19 Stefan Teleman <stefan.teleman@oracle.com> - April Chin <april.chin@oracle.com> - Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> - - * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and - uint_t lwpid_t. - (create_procinfo): Print pids in /proc without leading zeros. - -2018-09-18 Sandra Loosemore <sandra@codesourcery.com> - - * nios2-tdep.c (nios2_gcc_target_options): New. - (nios2_gdb_arch_init): Install new hook. - -2018-09-18 Simon Marchi <simon.marchi@ericsson.com> - - * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch: - New file. - * update-gnulib.sh: Apply patch. - * configure: Re-generate. - -2018-09-18 John Baldwin <jhb@FreeBSD.org> - - * infcmd.c (_initialize_infcmd): Remove "running" from "info proc" - description. Make "info proc" command descriptions more - consistent. - -2018-09-18 John Baldwin <jhb@FreeBSD.org> - - * NEWS: Mention 'info proc files' command. - -2018-09-18 John Baldwin <jhb@FreeBSD.org> - - * fbsd-nat.c (fbsd_nat_target::info_proc): List open file - descriptors for IP_FILES and IP_ALL. - -2018-09-18 John Baldwin <jhb@FreeBSD.org> - - * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN) - (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER) - (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE) - (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE) - (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE) - (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS) - (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT) - (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE) - (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ) - (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND) - (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC) - (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT) - (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC) - (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR) - (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK) - (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX) - (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM) - (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP) - (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines. - (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6) - (struct fbsd_sockaddr_un): New types. - (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto) - (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6) - (fbsd_info_proc_files_header, fbsd_info_proc_files_entry) - (fbsd_core_info_proc_files): New functions. - (fbsd_core_info_proc): List open file descriptors for IP_FILES and - IP_ALL. - * fbsd-tdep.h (fbsd_info_proc_files_header) - (fbsd_info_proc_files_entry): New. - -2018-09-18 John Baldwin <jhb@FreeBSD.org> - - * defs.h (enum info_proc_what) [IP_FILES]: New value. - * infcmd.c (info_proc_cmd_files): New function. - (_initialize_infcmd): Register 'info proc files' command. - -2018-09-18 John Baldwin <jhb@FreeBSD.org> - - * gnulib/aclocal-m4-deps.mk: Re-generate. - * gnulib/aclocal.m4: Re-generate. - * gnulib/config.in: Re-generate. - * gnulib/configure: Re-generate. - * gnulib/import/Makefile.am: Re-generate. - * gnulib/import/Makefile.in: Re-generate. - * gnulib/import/m4/gnulib-cache.m4: Re-generate. - * gnulib/import/m4/gnulib-comp.m4: Re-generate. - * gnulib/import/arpa_inet.in.h: New file. - * gnulib/import/inet_ntop.c: New file. - * gnulib/import/m4/arpa_inet_h.m4: New file. - * gnulib/import/m4/inet_ntop.m4: New file. - * gnulib/import/m4/netinet_in_h.m4: New file. - * gnulib/import/m4/socklen.m4: New file. - * gnulib/import/m4/sockpfaf.m4: New file. - * gnulib/import/m4/stdalign.m4: New file. - * gnulib/import/m4/sys_uio_h.m4: New file. - * gnulib/import/netinet_in.in.h: New file. - * gnulib/import/stdalign.in.h: New file. - * gnulib/import/sys_socket.c: New file. - * gnulib/import/sys_socket.in.h: New file. - * gnulib/import/sys_uio.in.h: New file. - * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop - module. - -2018-09-18 John Baldwin <jhb@FreeBSD.org> - - * gnulib/aclocal-m4-deps.mk: New file. - * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk" - deterministically. - -2018-09-18 John Baldwin <jhb@FreeBSD.org> - - * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of - KVE_PATH. - -2018-09-18 Tom Tromey <tom@tromey.com> - - * compile/compile-object-load.c (struct - link_hash_table_cleanup_data): Add constructor and destructor. - Use DISABLE_COPY_AND_ASSIGN. - (~link_hash_table_cleanup_data): Rename from - link_hash_table_free. Now a destructor. - (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups. - -2018-09-18 Tom Tromey <tom@tromey.com> - - * compile/compile-object-run.c (do_module_cleanup): Use delete. - * compile/compile-object-load.c (struct munmap_list): Move to - header file. - (munmap_list::add): Rename from munmap_list_add; rewrite. - (munmap_list::~munmap_list): Rename from munmap_list_free. - (munmap_listp_free_cleanup): Remove. - (compile_object_load): Update. - * compile/compile-object-load.h (struct munmap_list): Move from - compile-object-load.c. Rewrite. - -2018-09-18 Alan Hayward <alan.hayward@arm.com> - - * aarch64-tdep.c (pass_in_v): Use register size. - (aarch64_extract_return_value): Likewise. - (aarch64_store_return_value): Likewise. - -2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> - - * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to - rlim_t. - -2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * python/lib/gdb/command/frame_filters.py (EnableFrameFilter): - Fix short help line. - -2018-09-17 Tom Tromey <tom@tromey.com> - - PR python/20445: - * configure: Rebuild. - * configure.ac: Conditionally use -DNDEBUG for Python. - -2018-09-17 Tom Tromey <tom@tromey.com> - - * configure: Rebuild. - * configure.ac: Use gmp as a library dependency when checking for - mpfr. - -2018-09-17 Pedro Alves <palves@redhat.com> - - * python/py-inferior.c (find_inferior_object): Delete. - -2018-09-17 Simon Marchi <simon.marchi@ericsson.com> - - * compile/compile-cplus-types.c - (compile_cplus_instance::enter_scope): Don't use new_scope after - std::move. - -2018-09-17 Tom Tromey <tom@tromey.com> - - * common/pathstuff.c (get_standard_cache_dir): Use - ~/Library/Caches on macOS. - * common/pathstuff.h (get_standard_cache_dir): Update comment. - -2018-09-17 Simon Marchi <simon.marchi@polymtl.ca> - - PR python/23669 - * breakpoint.c (commands_cmd_element): New. - (_initialize_breakpoint): Assign commands_cmd_element. - * breakpoint.h (commands_cmd_element): New. - * cli/cli-script.c (while_cmd_element, if_command, - define_cmd_element): New. - (command_name_equals): Remove. - (process_next_line): Compare commands by pointer, not by name. - (_initialize_cli_script): Assign the various cmd_list_element - variables. - * compile/compile.c (compile_cmd_element): New. - (_initialize_compile): Assign compile_cmd_element. - * compile/compile.h (compile_cmd_element): New. - * guile/guile.c (guile_cmd_element): New. - (install_gdb_commands): Assign guile_cmd_element. - * guile/guile.h (guile_cmd_element): New. - * python/python.c (python_cmd_element): New. - (_initialize_python): Assign python_cmd_element. - * python/python.h (python_cmd_element): New. - * tracepoint.c (while_stepping_cmd_element): New. - (_initialize_tracepoint): Assign while_stepping_cmd_element. - * tracepoint.h (while_stepping_cmd_element): New. - -2018-09-17 Tom Tromey <tom@tromey.com> - - * infrun.c (save_infcall_suspend_state): Return - infcall_suspend_state_up. - (save_infcall_control_state): Return infcall_control_state_up. - * inferior.h (save_infcall_suspend_state) - (save_infcall_control_state): Declare later. Return unique - pointers. - -2018-09-17 Tom Tromey <tom@tromey.com> - - * infrun.c (struct stop_context): Declare constructor, - destructor, "changed" method. - (stop_context::stop_context): Rename from save_stop_context. - (stop_context::~stop_context): Rename from - release_stop_context_cleanup. - (normal_stop): Update. - (stop_context::changed): Rename from stop_context_changed. Return - bool. - -2018-09-17 Tom Tromey <tom@tromey.com> - - * inferior.h (struct infcall_suspend_state_deleter): New. - (infcall_suspend_state_up): New typedef. - (struct infcall_control_state_deleter): New. - (infcall_control_state_up): New typedef. - (make_cleanup_restore_infcall_suspend_state) - (make_cleanup_restore_infcall_control_state): Don't declare. - * infcall.c (call_function_by_hand_dummy): Update. - * infrun.c (do_restore_infcall_suspend_state_cleanup) - (make_cleanup_restore_infcall_suspend_state): Remove. - (do_restore_infcall_control_state_cleanup) - (make_cleanup_restore_infcall_control_state): Remove. - -2018-09-17 Tom Tromey <tom@tromey.com> - - * gdbthread.h (struct thread_control_state): Add initializer. - (class thread_info) <control>: Remove initializer. - * inferior.h (struct inferior_control_state): Add initializer. - (class inferior) <control>: Remove initializer. - (exit_inferior_1): Update. - * infrun.c (struct infcall_control_state): Add constructors. - (save_infcall_control_state): Use new. - (restore_infcall_control_state, discard_infcall_control_state): - Use delete. - -2018-09-17 Tom Tromey <tom@tromey.com> - - * infrun.c (struct infcall_suspend_state) <registers>: Now a - unique_ptr. - <siginfo_data>: Now a unique_xmalloc_ptr. - (save_infcall_suspend_state, restore_infcall_suspend_state) - (discard_infcall_suspend_state) - (get_infcall_suspend_state_regcache): Update. - -2018-09-17 Tom Tromey <tom@tromey.com> - - * gdbthread.h (struct thread_suspend_state): Add initializers. - (class thread_info) <suspend>: Remove initializer. - * infrun.c (struct infcall_suspend_state): Add initializers. - (save_infcall_suspend_state): Use new. - (discard_infcall_suspend_state): Use delete. - -2018-09-16 Tom Tromey <tom@tromey.com> - - * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG): - Remove. - * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to - rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG. - (py_varobj_iter_new): Likewise. - (py_varobj_get_iterator): Use gdbpy_ref. - -2018-09-16 Tom Tromey <tom@tromey.com> - - * python/py-threadevent.c (py_get_event_thread): Simplify. - * python/py-inferior.c (infpy_thread_from_thread_handle): - Return immediately after calling thread_to_thread_object. Use - Py_RETURN_NONE. - (thread_to_thread_object): Set the exception on a NULL return. - -2018-09-16 Simon Marchi <simon.marchi@polymtl.ca> - - * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS. - -2018-09-16 Tom Tromey <tom@tromey.com> - - * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF): - Remove. - -2018-09-16 Tom Tromey <tom@tromey.com> - - * python/python-internal.h (thread_to_thread_object): Change - return type. - * python/py-inferior.c (thread_to_thread_object): Return a new - reference. - (infpy_thread_from_thread_handle): Update. - * python/py-infthread.c (gdbpy_selected_thread): Update. - * python/py-stopevent.c (create_stop_event_object): Update. - * python/py-threadevent.c (py_get_event_thread): Return a new - reference. - (py_get_event_thread): Update. - * python/py-event.h (py_get_event_thread): Change return type. - * python/py-continueevent.c (create_continue_event_object): - Update. - -2018-09-16 Tom Tromey <tom@tromey.com> - - * python/py-progspace.c (pspy_get_objfiles): Update. - * python/python-internal.h (objfile_to_objfile_object): Change - return type. - * python/py-newobjfileevent.c (create_new_objfile_event_object): - Update. - * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): - Update. - * python/python.c (gdbpy_get_current_objfile): Update. - (gdbpy_objfiles): Update. - * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile): - Update. - (objfile_to_objfile_object): Return a new reference. - * python/py-symtab.c (stpy_get_objfile): Update. - * python/py-prettyprint.c (find_pretty_printer_from_objfiles): - Update. - -2018-09-16 Tom Tromey <tom@tromey.com> - - * python/py-inferior.c (infpy_get_progspace): Update. - * python/python-internal.h (pspace_to_pspace_object): Change - return type. - * python/py-newobjfileevent.c - (create_clear_objfiles_event_object): Update. - * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): - Update. - * python/python.c (gdbpy_get_current_progspace): Update. - (gdbpy_progspaces): Update. - * python/py-progspace.c (pspace_to_pspace_object): Return a new - reference. - * python/py-objfile.c (objfpy_get_progspace): Update. - * python/py-prettyprint.c (find_pretty_printer_from_progspace): - Update. - -2018-09-16 Tom Tromey <tom@tromey.com> - - * python/lib/gdb/__init__.py (current_progspace, objfiles) - (solib_name, block_for_pc, find_pc_line): New functions. - (execute_unwinders): Update. - * python/py-block.c (gdbpy_block_for_pc): Remove. - * python/py-inferior.c (infpy_get_progspace): New function. - (inferior_object_getset) <progspace>: Add. - * python/py-progspace.c (pspy_objfiles): Rewrite. - (pspy_solib_name, pspy_block_for_pc) - (pspy_find_pc_line, pspy_is_valid): New functions. - (progspace_object_methods): Add entries for solib_name, - block_for_pc, find_pc_line, is_valid. - * python/python-internal.h (gdbpy_block_for_pc) - (build_objfiles_list): Don't declare. - * python/python.c: Don't include solib.h. - (gdbpy_solib_name, gdbpy_find_pc_line) - (gdbpy_get_current_progspace, build_objfiles_list) - (gdbpy_objfiles): Remove. - (GdbMethods) <current_progspace, objfiles, block_for_pc, - solib_name, find_pc_line>: Remove entries. - -2018-09-16 Tom Tromey <tom@tromey.com> - - * top.c (new_ui_command): Use GNU style for metasyntactic - variables. - * breakpoint.c (stopat_command): Use GNU style for metasyntactic - variables. - * maint.c (maintenance_translate_address): Remove "<>" around - text. - * interps.c (interpreter_exec_cmd): Use GNU style for - metasyntactic variables. - * nto-procfs.c (nto_procfs_target_info): Use GNU style for - metasyntactic variables. - * tracepoint.c (tfind_range_command): Use GNU style for - metasyntactic variables. - (tfind_outside_command): Likewise. - (_initialize_tracepoint): Likewise. - * remote.c (extended_remote_target::create_inferior): Use GNU - style for metasyntactic variables. - * sparc64-tdep.c (adi_examine_command): Use GNU style for - metasyntactic variables. - (adi_assign_command): Likewise. - -2018-09-16 Tom Tromey <tom@tromey.com> - - * disasm.c (show_disassembler_options_sfunc): Use GNU style for - metasyntactic variables. Print message if no disassembler options - are available. - -2018-09-15 Tom Tromey <tom@tromey.com> - - * infcmd.c (get_inferior_args): Return const char *. - * inferior.h (get_inferior_args): Return type now const. - * linux-tdep.c (linux_fill_prpsinfo): Update. - * procfs.c (procfs_target::make_corefile_notes): Update. - -2018-09-07 Tom Tromey <tom@tromey.com> - - * python/python.c (execute_gdb_command): Call bpstat_do_actions - inside the TRY. - -2018-09-14 Sandra Loosemore <sandra@codesourcery.com> - - * nios2-tdep.c (nios2_type_align): New. - (nios2_gdb_arch_init): Install type_align hook. - -2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com> - - * eval.c (fake_method::fake_method): Call xzalloc directly for a - type that is neither object file owned, nor gdbarch owned. - * gdbtypes.c (get_type_gdbarch): Add an assert that returned - gdbarch is non-NULL. - (alloc_type_instance): Allocate non-objfile owned types on the - gdbarch obstack. - (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA - using TYPE_ALLOC to ensure memory is allocated on the correct - obstack. - * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile - obstack, or the gdbarch obstack. - (TYPE_ZALLOC): Rewrite using TYPE_ALLOC. - -2018-09-14 Tom Tromey <tom@tromey.com> - - * infcall.c (call_function_by_hand_dummy): Remove unnecessary - block. - -2018-09-14 Tom Tromey <tom@tromey.com> - - * nat/fork-inferior.c (get_startup_shell): Remove "static". - -2018-09-13 Tom Tromey <tom@tromey.com> - - * python/py-inferior.c (infpy_thread_from_thread_handle): Now - static. - -2018-09-13 Tom Tromey <tom@tromey.com> - - * exec.c (try_open_exec_file): Use std::string. - -2018-09-13 Tom Tromey <tom@tromey.com> - - * utils.h (gdb_bfd_errmsg): Return std::string. - * exec.c (exec_file_attach): Update. - * compile/compile-object-load.c (compile_object_load): Update. - * utils.c (gdb_bfd_errmsg): Return std::string. - -2018-09-13 Tom Tromey <tom@tromey.com> - - * procfs.c (struct procinfo_deleter): New. - (procinfo_up): New typedef. - (do_destroy_procinfo_cleanup): Remove. - (procfs_target::info_proc): Use procinfo_up. Remove cleanups. - -2018-09-13 Tom Tromey <tom@tromey.com> - - * source.c (add_path): Use gdb::unique_xmalloc_ptr. - -2018-09-13 Simon Marchi <simon.marchi@ericsson.com> -2018-09-13 Tom Tromey <tom@tromey.com> - - * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro. - (pspy_get_objfiles): New function. - (progspace_object_methods): New. - (pspace_object_type): Add tp_methods callback. - * python/python-internal.h (build_objfiles_list): New - declaration. - * python/python.c (build_objfiles_list): New function. - (gdbpy_objfiles): Implement using build_objfiles_list. - * NEWS: Mention the Progspace.objfiles method. - -2018-09-13 Simon Marchi <simon.marchi@ericsson.com> - - * python/py-inferior.c (infpy_get_progspace): New function. - (inferior_object_getset): Add progspace property. - * NEWS: Mention the new property. - -2018-09-13 Tom Tromey <tom@tromey.com> - - PR rust/23650: - * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo". - -2018-09-13 Tom Tromey <tom@tromey.com> - - PR rust/23626: - * rust-lang.c (rust_enum_variant): Now static. - (rust_empty_enum_p): New function. - (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def): - Handle empty enum. - -2018-09-13 Simon Marchi <simon.marchi@ericsson.com> - - * python/py-inferior.c (infpy_repr): New. - (inferior_object_type): Register infpy_repr. - * python/py-objfile.c (objfpy_repr): New. - (objfile_object_type): Register objfpy_repr. - -2018-09-12 John Baldwin <jhb@FreeBSD.org> - - * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable. - -2018-09-12 John Baldwin <jhb@FreeBSD.org> - - * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment - typo. - -2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com> - - * common/common-utils.c: Don't include '<sys/stat.h>'. - (is_regular_file): Move to... - * common/filestuff.c (is_regular_file): ... here. - * common/common-utils.h (is_regular_file): Move to... - * common/filestuff.h (is_regular_file): ... here. - -2018-09-12 Simon Marchi <simon.marchi@ericsson.com> - - * skip.c (debug_skip): New variable. - (skiplist_entry::do_skip_file_p): Add debug output. - (skiplist_entry::do_skip_gfile_p): Likewise. - (skiplist_entry::skip_function_p): Likewise. - (_initialize_step_skip): Create debug command. - * NEWS: Mention set/show debug skip. - -2018-09-11 Xavier Roirand <roirand@adacore.com> - - * darwin-nat.c (should_disable_startup_with_shell): - New function. - (darwin_nat_target::create_inferior): Add call. - -2018-09-11 Xavier Roirand <roirand@adacore.com> - - * darwin-nat.h (struct darwin_thread_info) <gdb_port, - inf_port, msg_state>: Initialize. - (struct darwin_thread_info) <signaled, single_step>: Change - type and initialize. - (struct darwin_thread_info) <event>: Initialize. - -2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com> - - PR gdb/23555 - PR gdb/23558 - * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation - guesses. - -2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com> - - Revert: - 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com> - - PR gdb/23555 - PR gdb/23558 - * gnulib/aclocal.m4: Regenerate. - * gnulib/config.in: Regenerate. - * gnulib/configure: Regenerate. - * gnulib/import/Makefile.am: Update. - * gnulib/import/Makefile.in: Update. - * gnulib/import/extra/snippet/_Noreturn.h: Rename to... - * gnulib/import/_Noreturn.h: ... this. - * gnulib/import/alloca.in.h: Update. - * gnulib/import/extra/snippet/arg-nonnull.h: Rename to... - * gnulib/import/arg-nonnull.h: ... this. - * gnulib/import/assure.h: Update. - * gnulib/import/at-func.c: Update. - * gnulib/import/basename-lgpl.c: Update. - * gnulib/import/extra/snippet/c++defs.h: Rename to... - * gnulib/import/c++defs.h: ... this. - * gnulib/import/canonicalize-lgpl.c: Update. - * gnulib/import/cdefs.h: Update. - * gnulib/import/chdir-long.c: Update. - * gnulib/import/chdir-long.h: Update. - * gnulib/import/cloexec.c: Update. - * gnulib/import/cloexec.h: Update. - * gnulib/import/close.c: Update. - * gnulib/import/closedir.c: Update. - * gnulib/import/config.charset: Update. - * gnulib/import/dirent-private.h: Update. - * gnulib/import/dirent.in.h: Update. - * gnulib/import/dirfd.c: Update. - * gnulib/import/dirname-lgpl.c: Update. - * gnulib/import/dirname.h: Update. - * gnulib/import/dosname.h: Update. - * gnulib/import/dup-safer-flag.c: Update. - * gnulib/import/dup-safer.c: Update. - * gnulib/import/dup.c: Update. - * gnulib/import/dup2.c: Update. - * gnulib/import/errno.in.h: Update. - * gnulib/import/error.c: Update. - * gnulib/import/error.h: Update. - * gnulib/import/exitfail.c: Update. - * gnulib/import/exitfail.h: Update. - * gnulib/import/extra/update-copyright: Update. - * gnulib/import/fchdir.c: Update. - * gnulib/import/fcntl.c: Update. - * gnulib/import/fcntl.in.h: Update. - * gnulib/import/fd-hook.c: Update. - * gnulib/import/fd-hook.h: Update. - * gnulib/import/fd-safer-flag.c: Update. - * gnulib/import/fd-safer.c: Update. - * gnulib/import/fdopendir.c: Update. - * gnulib/import/filename.h: Update. - * gnulib/import/filenamecat-lgpl.c: Update. - * gnulib/import/filenamecat.h: Update. - * gnulib/import/flexmember.h: Update. - * gnulib/import/float+.h: Update. - * gnulib/import/float.c: Update. - * gnulib/import/float.in.h: Update. - * gnulib/import/fnmatch.c: Update. - * gnulib/import/fnmatch.in.h: Update. - * gnulib/import/fnmatch_loop.c: Update. - * gnulib/import/fpucw.h: Update. - * gnulib/import/frexp.c: Update. - * gnulib/import/frexpl.c: Update. - * gnulib/import/fstat.c: Update. - * gnulib/import/fstatat.c: Update. - * gnulib/import/getcwd-lgpl.c: Update. - * gnulib/import/getcwd.c: Update. - * gnulib/import/getdtablesize.c: Update. - * gnulib/import/getlogin_r.c: Update. - * gnulib/import/getprogname.c: Update. - * gnulib/import/getprogname.h: Update. - * gnulib/import/gettext.h: Update. - * gnulib/import/gettimeofday.c: Update. - * gnulib/import/glob-libc.h: Update. - * gnulib/import/glob.c: Update. - * gnulib/import/glob.in.h: Update. - * gnulib/import/glob_internal.h: Update. - * gnulib/import/glob_pattern_p.c: Update. - * gnulib/import/globfree.c: Update. - * gnulib/import/hard-locale.c: Update. - * gnulib/import/hard-locale.h: Update. - * gnulib/import/intprops.h: Update. - * gnulib/import/inttypes.in.h: Update. - * gnulib/import/isnan.c: Update. - * gnulib/import/isnand-nolibm.h: Update. - * gnulib/import/isnand.c: Update. - * gnulib/import/isnanl-nolibm.h: Update. - * gnulib/import/isnanl.c: Update. - * gnulib/import/itold.c: Update. - * gnulib/import/libc-config.h: Update. - * gnulib/import/limits.in.h: Update. - * gnulib/import/localcharset.c: Update. - * gnulib/import/localcharset.h: Update. - * gnulib/import/localtime-buffer.c: Update. - * gnulib/import/localtime-buffer.h: Update. - * gnulib/import/lstat.c: Update. - * gnulib/import/m4/00gnulib.m4: Update. - * gnulib/import/m4/__inline.m4: Update. - * gnulib/import/m4/absolute-header.m4: Update. - * gnulib/import/m4/alloca.m4: Update. - * gnulib/import/m4/builtin-expect.m4: Update. - * gnulib/import/m4/canonicalize.m4: Update. - * gnulib/import/m4/chdir-long.m4: Update. - * gnulib/import/m4/close.m4: Update. - * gnulib/import/m4/closedir.m4: Update. - * gnulib/import/m4/configmake.m4: Update. - * gnulib/import/m4/d-ino.m4: Update. - * gnulib/import/m4/d-type.m4: Update. - * gnulib/import/m4/dirent_h.m4: Update. - * gnulib/import/m4/dirfd.m4: Update. - * gnulib/import/m4/dirname.m4: Update. - * gnulib/import/m4/double-slash-root.m4: Update. - * gnulib/import/m4/dup.m4: Update. - * gnulib/import/m4/dup2.m4: Update. - * gnulib/import/m4/eealloc.m4: Update. - * gnulib/import/m4/environ.m4: Update. - * gnulib/import/m4/errno_h.m4: Update. - * gnulib/import/m4/error.m4: Update. - * gnulib/import/m4/exponentd.m4: Update. - * gnulib/import/m4/exponentl.m4: Update. - * gnulib/import/m4/extensions.m4: Update. - * gnulib/import/m4/extern-inline.m4: Update. - * gnulib/import/m4/fchdir.m4: Update. - * gnulib/import/m4/fcntl-o.m4: Update. - * gnulib/import/m4/fcntl.m4: Update. - * gnulib/import/m4/fcntl_h.m4: Update. - * gnulib/import/m4/fdopendir.m4: Update. - * gnulib/import/m4/filenamecat.m4: Update. - * gnulib/import/m4/flexmember.m4: Update. - * gnulib/import/m4/float_h.m4: Update. - * gnulib/import/m4/fnmatch.m4: Update. - * gnulib/import/m4/fnmatch_h.m4: Update. - * gnulib/import/m4/fpieee.m4: Update. - * gnulib/import/m4/frexp.m4: Update. - * gnulib/import/m4/frexpl.m4: Update. - * gnulib/import/m4/fstat.m4: Update. - * gnulib/import/m4/fstatat.m4: Update. - * gnulib/import/m4/getcwd-abort-bug.m4: Update. - * gnulib/import/m4/getcwd-path-max.m4: Update. - * gnulib/import/m4/getcwd.m4: Update. - * gnulib/import/m4/getdtablesize.m4: Update. - * gnulib/import/m4/getlogin.m4: Update. - * gnulib/import/m4/getlogin_r.m4: Update. - * gnulib/import/m4/getpagesize.m4: Update. - * gnulib/import/m4/getprogname.m4: Update. - * gnulib/import/m4/gettimeofday.m4: Update. - * gnulib/import/m4/glibc21.m4: Update. - * gnulib/import/m4/glob.m4: Update. - * gnulib/import/m4/glob_h.m4: Update. - * gnulib/import/m4/gnulib-cache.m4: Update. - * gnulib/import/m4/gnulib-common.m4: Update. - * gnulib/import/m4/gnulib-comp.m4: Update. - * gnulib/import/m4/gnulib-tool.m4: Update. - * gnulib/import/m4/hard-locale.m4: Update. - * gnulib/import/m4/include_next.m4: Update. - * gnulib/import/m4/inttypes-pri.m4: Update. - * gnulib/import/m4/inttypes.m4: Update. - * gnulib/import/m4/isnand.m4: Update. - * gnulib/import/m4/isnanl.m4: Update. - * gnulib/import/m4/largefile.m4: Update. - * gnulib/import/m4/limits-h.m4: Update. - * gnulib/import/m4/localcharset.m4: Update. - * gnulib/import/m4/locale-fr.m4: Update. - * gnulib/import/m4/locale-ja.m4: Update. - * gnulib/import/m4/locale-zh.m4: Update. - * gnulib/import/m4/localtime-buffer.m4: Update. - * gnulib/import/m4/longlong.m4: Update. - * gnulib/import/m4/lstat.m4: Update. - * gnulib/import/m4/malloc.m4: Update. - * gnulib/import/m4/malloca.m4: Update. - * gnulib/import/m4/math_h.m4: Update. - * gnulib/import/m4/mbrtowc.m4: Update. - * gnulib/import/m4/mbsinit.m4: Update. - * gnulib/import/m4/mbsrtowcs.m4: Update. - * gnulib/import/m4/mbstate_t.m4: Update. - * gnulib/import/m4/memchr.m4: Update. - * gnulib/import/m4/memmem.m4: Update. - * gnulib/import/m4/mempcpy.m4: Update. - * gnulib/import/m4/memrchr.m4: Update. - * gnulib/import/m4/mkdir.m4: Update. - * gnulib/import/m4/mkstemp.m4: Update. - * gnulib/import/m4/mmap-anon.m4: Update. - * gnulib/import/m4/mode_t.m4: Update. - * gnulib/import/m4/msvc-inval.m4: Update. - * gnulib/import/m4/msvc-nothrow.m4: Update. - * gnulib/import/m4/multiarch.m4: Update. - * gnulib/import/m4/nocrash.m4: Update. - * gnulib/import/m4/off_t.m4: Update. - * gnulib/import/m4/onceonly.m4: Update. - * gnulib/import/m4/open-cloexec.m4: Update. - * gnulib/import/m4/open.m4: Update. - * gnulib/import/m4/openat.m4: Update. - * gnulib/import/m4/opendir.m4: Update. - * gnulib/import/m4/pathmax.m4: Update. - * gnulib/import/m4/rawmemchr.m4: Update. - * gnulib/import/m4/readdir.m4: Update. - * gnulib/import/m4/readlink.m4: Update. - * gnulib/import/m4/realloc.m4: Update. - * gnulib/import/m4/rename.m4: Update. - * gnulib/import/m4/rewinddir.m4: Update. - * gnulib/import/m4/rmdir.m4: Update. - * gnulib/import/m4/save-cwd.m4: Update. - * gnulib/import/m4/secure_getenv.m4: Update. - * gnulib/import/m4/setenv.m4: Update. - * gnulib/import/m4/signal_h.m4: Update. - * gnulib/import/m4/ssize_t.m4: Update. - * gnulib/import/m4/stat-time.m4: Update. - * gnulib/import/m4/stat.m4: Update. - * gnulib/import/m4/std-gnu11.m4: Update. - * gnulib/import/m4/stdbool.m4: Update. - * gnulib/import/m4/stddef_h.m4: Update. - * gnulib/import/m4/stdint.m4: Update. - * gnulib/import/m4/stdio_h.m4: Update. - * gnulib/import/m4/stdlib_h.m4: Update. - * gnulib/import/m4/strchrnul.m4: Update. - * gnulib/import/m4/strdup.m4: Update. - * gnulib/import/m4/strerror.m4: Update. - * gnulib/import/m4/string_h.m4: Update. - * gnulib/import/m4/strstr.m4: Update. - * gnulib/import/m4/strtok_r.m4: Update. - * gnulib/import/m4/sys_socket_h.m4: Update. - * gnulib/import/m4/sys_stat_h.m4: Update. - * gnulib/import/m4/sys_time_h.m4: Update. - * gnulib/import/m4/sys_types_h.m4: Update. - * gnulib/import/m4/tempname.m4: Update. - * gnulib/import/m4/time_h.m4: Update. - * gnulib/import/m4/unistd-safer.m4: Update. - * gnulib/import/m4/unistd_h.m4: Update. - * gnulib/import/m4/warn-on-use.m4: Update. - * gnulib/import/m4/wchar_h.m4: Update. - * gnulib/import/m4/wchar_t.m4: Update. - * gnulib/import/m4/wctype_h.m4: Update. - * gnulib/import/m4/wint_t.m4: Update. - * gnulib/import/malloc.c: Update. - * gnulib/import/malloc/scratch_buffer.h: Update. - * gnulib/import/malloc/scratch_buffer_grow.c: Update. - * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update. - * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update. - * gnulib/import/malloca.c: Update. - * gnulib/import/malloca.h: Update. - * gnulib/import/malloca.valgrind: Update. - * gnulib/import/math.in.h: Update. - * gnulib/import/mbrtowc.c: Update. - * gnulib/import/mbsinit.c: Update. - * gnulib/import/mbsrtowcs-impl.h: Update. - * gnulib/import/mbsrtowcs-state.c: Update. - * gnulib/import/mbsrtowcs.c: Update. - * gnulib/import/memchr.c: Update. - * gnulib/import/memmem.c: Update. - * gnulib/import/mempcpy.c: Update. - * gnulib/import/memrchr.c: Update. - * gnulib/import/mkdir.c: Update. - * gnulib/import/mkstemp.c: Update. - * gnulib/import/msvc-inval.c: Update. - * gnulib/import/msvc-inval.h: Update. - * gnulib/import/msvc-nothrow.c: Update. - * gnulib/import/msvc-nothrow.h: Update. - * gnulib/import/open.c: Update. - * gnulib/import/openat-die.c: Update. - * gnulib/import/openat-priv.h: Update. - * gnulib/import/openat-proc.c: Update. - * gnulib/import/openat.c: Update. - * gnulib/import/openat.h: Update. - * gnulib/import/opendir.c: Update. - * gnulib/import/pathmax.h: Update. - * gnulib/import/pipe-safer.c: Update. - * gnulib/import/rawmemchr.c: Update. - * gnulib/import/readdir.c: Update. - * gnulib/import/readlink.c: Update. - * gnulib/import/realloc.c: Update. - * gnulib/import/ref-add.sin: Update. - * gnulib/import/ref-del.sin: Update. - * gnulib/import/rename.c: Update. - * gnulib/import/rewinddir.c: Update. - * gnulib/import/rmdir.c: Update. - * gnulib/import/same-inode.h: Update. - * gnulib/import/save-cwd.c: Update. - * gnulib/import/save-cwd.h: Update. - * gnulib/import/scratch_buffer.h: Update. - * gnulib/import/secure_getenv.c: Update. - * gnulib/import/setenv.c: Update. - * gnulib/import/signal.in.h: Update. - * gnulib/import/stat-time.c: Update. - * gnulib/import/stat-time.h: Update. - * gnulib/import/stat-w32.c: Update. - * gnulib/import/stat-w32.h: Update. - * gnulib/import/stat.c: Update. - * gnulib/import/stdbool.in.h: Update. - * gnulib/import/stddef.in.h: Update. - * gnulib/import/stdint.in.h: Update. - * gnulib/import/stdio.in.h: Update. - * gnulib/import/stdlib.in.h: Update. - * gnulib/import/str-two-way.h: Update. - * gnulib/import/strchrnul.c: Update. - * gnulib/import/strdup.c: Update. - * gnulib/import/streq.h: Update. - * gnulib/import/strerror-override.c: Update. - * gnulib/import/strerror-override.h: Update. - * gnulib/import/strerror.c: Update. - * gnulib/import/string.in.h: Update. - * gnulib/import/stripslash.c: Update. - * gnulib/import/strnlen1.c: Update. - * gnulib/import/strnlen1.h: Update. - * gnulib/import/strstr.c: Update. - * gnulib/import/strtok_r.c: Update. - * gnulib/import/sys_stat.in.h: Update. - * gnulib/import/sys_time.in.h: Update. - * gnulib/import/sys_types.in.h: Update. - * gnulib/import/tempname.c: Update. - * gnulib/import/tempname.h: Update. - * gnulib/import/time.in.h: Update. - * gnulib/import/unistd--.h: Update. - * gnulib/import/unistd-safer.h: Update. - * gnulib/import/unistd.in.h: Update. - * gnulib/import/unsetenv.c: Update. - * gnulib/import/verify.h: Update. - * gnulib/import/extra/snippet/warn-on-use.h: Update. - * gnulib/import/wchar.in.h: Update. - * gnulib/import/wctype.in.h: Update. - * gnulib/import/xalloc-oversized.h: Update. - * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to - "53e2c179f26a890fa6685af4b6c1397ee370433b". - -2018-09-10 Simon Marchi <simon.marchi@ericsson.com> - - * record-btrace.c (get_thread_current_frame): Remove - old_inferior_ptid. - -2018-09-10 Jerome Guitton <guitton@adacore.com> - - * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type - with check_tag to 1 if and only if the type is tagged and the - component being searched cannot been found in the current - view. Otherwise, always call ada_to_fixed_type with - check_tag to 0. - -2018-09-10 Xavier Roirand <roirand@adacore.com> - - * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static - declaration. - * ada-lang.h: add ada_is_access_to_unconstrained_array prototype. - * ada-varobj.c (ada_varobj_get_number_of_children, - ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code. - -2018-09-10 Xavier Roirand <roirand@adacore.com> - - * ada-valprint.c (ada_value_print): Use type instead of - enclosing type. - -2018-09-10 Xavier Roirand <roirand@adacore.com> - - * ada-lang.c (ada_value_subscript): Handle case when parameter is - an array of access to unconstrained array. - -2018-09-10 Xavier Roirand <roirand@adacore.com> - - * ada-lang.c (ada_is_access_to_unconstrained_array): New function. - (ada_check_typedef): Use it. - -2018-09-10 Xavier Roirand <roirand@adacore.com> - - * ada-varobj.c (ada_varobj_describe_struct_child) - (ada_varobj_describe_child): Handle union case like struct one. - -2018-09-10 Tom Tromey <tom@tromey.com> - - PR python/18380: - * python/python.c (_initialize_python): Make example in "python" - help work in Python 3. - -2018-09-10 Eli Zaretskii <eliz@gnu.org> - - * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of - INSTALL_PROGRAM to install gdb-add-index.sh. Don't append - $(EXEEXT) to the script, as it is not a program. - -2018-09-09 Simon Marchi <simon.marchi@ericsson.com> - - * python/py-prettyprint.c (pretty_print_one_value): Return - gdbpy_ref<>. - (print_string_repr): Adjust. - (apply_varobj_pretty_printer): Return gdbpy_ref<>. - * python/python-internal.h (apply_varobj_pretty_printer): Return - gdbpy_ref<>. - * varobj.c (varobj_value_get_print_value): Adjust. - -2018-09-08 Tom Tromey <tom@tromey.com> - - PR python/16047: - * python/py-prettyprint.c (pretty_print_one_value): Check for - to_string method. - -2018-09-08 Joel Brobecker <brobecker@adacore.com> - - * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to - replace_operator_with_call. - -2018-09-08 Joel Brobecker <brobecker@adacore.com> - - * ada-lang.c (ada_value_cast): Remove unnecessary parentheses. - -2018-09-08 Joel Brobecker <brobecker@adacore.com> - - * ada-typeprint.c (print_range): Print the bounds using TYPE - rather than its TYPE_TARGET_TYPE. - -2018-09-08 Joel Brobecker <brobecker@adacore.com> - - * ada-lang.c (ada_to_fixed_value): Minor reformatting in - call to ada_to_fixed_value_create. - -2018-09-08 Jerome Guitton <guitton@adacore.com> - - * ada-lang.c (ada_decode): strip dot prefix in symbol name. - -2018-09-08 Joel Brobecker <brobecker@adacore.com> - - * ada-lang.c (ada_exception_sal): Replace gdb_assert calls - by calls to error. - -2018-09-08 Joel Brobecker <brobecker@adacore.com> - - * ada-lang.c (ada_unhandled_exception_name_addr_from_raise): - Move update of loop variable "fi". - -2018-09-08 Joel Brobecker <brobecker@adacore.com> - - * ada-lang.c (value_assign_to_component): In the case of - big-endian targets, extract the bits of the given VAL - using an src_offset of zero if container is not a scalar. - -2018-09-06 Simon Ser <contact@emersion.fr> - - PR gdb/23105 - * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for - TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS. - * fbsd-tdep.c (fbsd_make_note_desc): New. - (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV, - NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes. - * target.h (enum target_object) Add FreeBSD-specific - TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS. - -2018-09-06 Simon Marchi <simon.marchi@ericsson.com> - - * compile/compile-c.h (generate_c_for_variable_locations): - Change reference to pointer. - * compile/compile-c-support.c (compile_program) <compute>: - Likewise. - * compile/compile-c-symbols.c (generate_vla_size): Likewise. - (generate_c_for_for_one_variable): Likewise - (generate_c_for_variable_locations): Likewise - * compile/compile-c-types.c (compile_c_instance::convert_type): - Likewise - * compile/compile-cplus-symbols.c (convert_one_symbol): - std::move the scope passed to enter_scope. - * compile/compile-cplus-types.c - (compile_cplus_instance::enter_scope): Make parameter - rvalue-reference. - (compile_cplus_instance::new_scope): Change reference to - pointer. - (compile_cplus_instance::convert_type): Likewise - (compile_cplus_convert_typedef): std::move the scope passed to - enter_scope. - (compile_cplus_convert_struct_or_union): Likewise. - (compile_cplus_convert_enum): Likewise. - (compile_cplus_convert_namespace): Likewise. - * compile/compile-cplus.h (compile_cplus_instance) - <enter_scope>: Make parameter rvalue-reference. - * compile/compile-internal.h (compile_instance) - <get_cached_type>: Likewise - * compile/compile-loc2c.c (push): Likewise - (pushf): Likewise - (unary): Likewise - (binary): Likewise - (print_label): Likewise - (pushf_register_address): Likewise - (pushf_register): Likewise - (do_compile_dwarf_expr_to_c): Likewise - (compile_dwarf_expr_to_c): Likewise - (compile_dwarf_bounds_to_c): Likewise - * compile/compile.c (compile_instance::get_cached_type): - Likewise - * compile/compile.h (compile_dwarf_expr_to_c): Likewise. - (compile_dwarf_bounds_to_c): Likewise - * dwarf2loc.c (locexpr_generate_c_location): Likewise. - (dwarf2_compile_property_to_c): Likewise - * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise - * symtab.h (struct symbol_computed_ops) <generate_c_location>: - Likewise - -2018-09-06 Simon Marchi <simon.marchi@ericsson.com> - - * tui/tui-data.h (struct tui_win_element) <highlight>: Remove. - * tui/tui-data.c (init_content_element): Don't initialize it. - -2018-09-06 Simon Marchi <simon.marchi@ericsson.com> - - * tui/tui-data.h (struct tui_win_info) - <detail::opaque>: Remove. - * tui/tui-data.c (init_win_info): Remove assignment. - -2018-09-05 Tom Tromey <tom@tromey.com> - - * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing - -Wformat-nonliteral. - * target-float.c (host_float_ops<T>::to_string) - (host_float_ops<T>::from_string): Use - DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL. - * configure: Rebuild. - -2018-09-05 Simon Marchi <simon.marchi@ericsson.com> - - * printcmd.c (printf_c_string): Use - DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL. - (printf_wide_c_string, printf_pointer, ui_printf): Likewise. - -2018-09-05 Tom Tromey <tom@tromey.com> - - * cli/cli-cmds.c (shell_escape, edit_command): Remove cast. - -2018-09-05 Tom de Vries <tdevries@suse.de> - - * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer - with resolve_abstract_p == true. - (indirect_synthetic_pointer): Add resolve_abstract_p parameter, - defaulting to false. Propagate resolve_abstract_p to - dwarf2_fetch_die_loc_sect_off. - * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p - parameter, defaulting to false. - * dwarf2read.c (read_variable): Add variable to abstract_to_concrete. - (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p - parameter. - * dwarf2read.h (struct die_info): Forward-declare. - (die_info_ptr): New typedef. - (struct dwarf2_per_objfile): Add abstract_to_concrete field. - -2018-09-05 Joel Brobecker <brobecker@adacore.com> - - GDB 8.2 released. - -2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com> - Pedro Alves <palves@redhat.com> - - * gnulib/Makefile.in (aclocal_m4_deps): Move to - "aclocal-m4-deps.mk". Include file here. - $(srcdir)/aclocal.m4: Add "configure.ac". - * gnulib/aclocal-m4-deps.mk: New file. - * gnulib/update-gnulib.sh: Automatically update - "aclocal-m4-deps.mk". - -2018-09-04 Tom Tromey <tom@tromey.com> - - * configure: Rebuild. - * configure.ac: Remove multi-ice code. - -2018-09-04 Tom Tromey <tom@tromey.com> - - * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove. - (ada-exp.o): Update. - -2018-09-04 Tom Tromey <tom@tromey.com> - - * Makefile.in (printcmd.o, target-float.o): Remove. - (GDB_WARN_CFLAGS_NO_FORMAT): Remove. - -2018-09-04 Tom Tromey <tom@tromey.com> - - * gnulib/Makefile.in: Remove obsolete comment. - * Makefile.in: Remove obsolete comment. - -2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a - line with '+'. - -2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c: Add 'prologue-value.h' include. - (struct riscv_unwind_cache): New struct. - (riscv_debug_unwinder): New global. - (riscv_scan_prologue): Update arguments, capture register details - from prologue scan. - (riscv_skip_prologue): Reformat arguments line, move end of - prologue calculation into riscv_scan_prologue. - (riscv_frame_cache): Update return type, create - riscv_unwind_cache, scan the prologue, and fill in remaining cache - details. - (riscv_frame_this_id): Use frame id computed in riscv_frame_cache. - (riscv_frame_prev_register): Use the trad_frame within the - riscv_unwind_cache. - (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder' - flag. - -2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com> - - * trad-frame.h (trad_frame_set_realreg): Declare. - (trad_frame_set_addr): Declare. - * trad-frame.c (trad_frame_set_realreg): Define new function. - (trad_frame_set_addr): Define new function. - (trad_frame_set_reg_realreg): Use new function. - (trad_frame_set_reg_addr): Use new function. - -2018-09-01 Keith Seitz <keiths@redhat.com> - - * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use - pulongest instead of "%lld". - * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove - ATTRIBUTE_UNUSED. - -2018-08-31 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the - variant part type. - -2018-08-31 Pedro Alves <palves@redhat.com> - - * gdbarch.h: Regenerate. - -2018-08-31 Pedro Alves <palves@redhat.com> - - * gdbarch.sh (have_nonsteppable_watchpoint): Add comment. - * target.h (Hardware watchpoint interfaces): Describe - continuable/steppable/non-steppable watchpoints. - * gdbarch.h, gdbarch.c: Regenerate. - -2018-08-31 Pedro Alves <palves@redhat.com> - - * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint): - Delete. - * s390-linux-nat.c - (s390_linux_nat_target::have_continuable_watchpoint): Delete. - * target.h (target_ops::have_continuable_watchpoint): Delete. - (target_have_continuable_watchpoint): Delete. - * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete. - * target-delegates.c: Regenerate. - -2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com> - - * gnulib/Makefile.in (aclocal_m4_deps): Update according to - the files present in "gnulib/import/m4/". - -2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd, - c.sw, c.swsp, and c.sdsp. - -2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (struct riscv_inferior_data): Delete. - (riscv_read_misa_reg): Don't cache value read into inferior data. - (riscv_new_inferior_data): Delete. - (riscv_inferior_data_cleanup): Delete. - (riscv_inferior_data): Delete. - (riscv_invalidate_inferior_data): Delete. - (_initialize_riscv_tdep): Remove initialisation of inferior data. - -2018-08-30 Simon Marchi <simon.marchi@ericsson.com> - - * compile/compile-cplus-types.c - (compile_cplus_instance::leave_scope): Take the address of scope - object. - (compile_cplus_instance::convert_qualified_base): Compare quals - to 0. - -2018-08-30 Keith Seitz <keiths@redhat.com> - - * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope): - Use "%s" and host_address_to_string instead of "%p" in printf. - -2018-08-29 Keith Seitz <keiths@redhat.com> - - * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c - and compile-cplus-types.c. - (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h. - * c-lang.c (cplus_language_defn): Set C++ compile functions. - * c-lang.h (cplus_get_compile_context, cplus_compute_program): - Declare. - * compile/compile-c-support.c: Include compile-cplus.h. - (load_libcompile): Templatize. - (get_compile_context): "New" function. - (c_get_compile_context): Use get_compile_context. - (cplus_get_compile_context): New function. - (cplus_push_user_expression, cplus_pop_user_expression) - (cplus_add_code_header, cplus_add_input, cplus_compile_program) - (cplus_compute_program): Define new structs/functions. - * compile/compile-cplus-symmbols.c: New file. - * compile/compile-cplus-types.c: New file. - * compile/compile-cplus.h: New file. - * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE): - Declare. - * compile/compile-object-load.c (get_out_value_type): Use - strncmp_iw when comparing symbol names. - (compile_object_load): Add mst_bss and mst_data. - * compile/compile.c (_initialize_compile): Remove - -Wno-implicit-function-declaration from `compile_args'. - * compile/gcc-cp-plugin.h: New file. - * NEWS: Mention C++ compile support and new debug options. - -2018-08-29 Keith Seitz <keiths@redhat.com> - - * linespec.c (collect_info::add_symbol): Make virtual. - (struct symbol_searcher_collect_info): New struct. - (symbol_searcher::find_all_symbols): New method. - * symtab.h (class symbol_searcher): New class. - -2018-08-29 Keith Seitz <keiths@redhat.com> - - * linespec.c (struct linespec) <function_symbols, label_symbols>: - Change to vector of block_symbol. Update all users. - (struct collect_info) <symbols>: Likewise. - (collect_info::add_symbol): Take block_symbol as argument. - Update all callers. - (decode_compound_collector) <m_symbols>: Change type to vector - of block_symbol. Update all users. - (decode_compound_collector::operator ()): Change parameter type - to block_symbol. - (find_method, find_function_symbols, find_linespec_symbols) - (find_label_symbols_in_block, find_label_symbols): Change symbol - vectors to block_symbol vectors. - * symtab.h (symbol_found_callback_ftype): Change parameter type to - block_symbol. - -2018-08-29 Keith Seitz <keiths@redhat.com> - - * linespec.c (symbolp): Remove typedef and VEC definitions. - (bound_minimal_symbol_d): Likewise. - -2018-08-29 Keith Seitz <keiths@redhat.com> - - * linespec.c (decode_compound_collector::decode_compound_collector): - Remove initialization for `m_symtabs'. - (decode_compound_collector::release_symbols): Change return type - to std::vector. Update all callers. - (class decode_compound_collector) <m_symbols>: Change type to - std::vector. - (lookup_prefix_sym): Change return type to std::vector. Update all - callers. - (compare_symbols): Remove. - (std_compare_symbols): Rename to `compare_symbols'. - (find_method): Change `sym_classes' parameter to std::vector. - Update all callers. Use std::sort to sort sym_classes. - (find_linespec_symbols): Remove cleanup. - -2018-08-29 Keith Seitz <keiths@redhat.com> - - * linespec.c (struct linespec) <minimal_symbols>: Change type to - std::vector. Update all users. - (convert_linespec_to_sals): Use std::sort to sort minimal symbols. - (struct collect_info) <minimal_symbols>: Likewise. - (compare_msymbols): Return bool. Change parameters to const - bound_minimal_symbol references. - (find_method, find_function_symbols, find_linespec_symbols): Change - `minsyms' parameter to std::vector. Update all callers. - -2018-08-29 Keith Seitz <keiths@redhat.com> - - * linespec.c (struct linespec) <label_symbols>: Change type to - std::vector. Update all users. - (find_label_symbols_in_block): Change `result' parameter to - std::vector. Update all callers. - (find_label_symbols): Return std::vector. Update all callers. - -2018-08-29 Keith Seitz <keiths@redhat.com> - - * linespec.c (struct linespec) <function_symbols>: Change type to - std::vector. Update all users. - (struct collect_info) <function_symbols>: Likewise. - (convert_linespec_to_sals): Use std::sort to sort function_symbols. - (std_compare_symbols): New function. - (find_method, find_function_symbols, find_linespec_symbols) - (find_label_symbols_in_block): Change `symbols' parameter to - std::vector. Update all callers. - (find_label_symbols): Likewise for `function_symbols' and - `label_funcs_ret'. - -2018-08-29 Keith Seitz <keiths@redhat.com> - - * linespec.c (symtab_vector_up): Define. - (struct linespec) <file_symtabs>: Change type to std::vector *. - Update all uses. - (struct collect_info) <file_symtabs>: Likewise. - (collect_symtabs_from_filename): Return symtab_vector_up. - Update all callers. - (decode_objc): Remove cleanup. - (symtab_collector::symtab_collector): Initialize `m_symtabs'. - (symtab_collector::release_symtabs): Return symtab_vector_up. - Update all callers. - (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up. - Update all users. - (collect_symtabs_from_filename, symtabs_from_filename): Return - symtab_vector_up. Update all callers. - -2018-08-29 Tom Tromey <tom@tromey.com> - - * csky-tdep.c (csky_analyze_prologue): Use - core_addr_to_string_nz. - -2018-08-29 Tom Tromey <tom@tromey.com> - - * windows-nat.c (struct xlate_exception) <them>: Change type to - DWORD. - (xlate): Fix formatting. Remove last entry. - (struct xlate_exception, xlate): Comment out. - (windows_nat_target::resume): Use ranged for. - -2018-08-29 Jim Wilson <jimw@sifive.com> - - * riscv-linux-nat.c: Include elf/common.h instead of elf.h. - (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead - of NT_PRFPREG. - (riscv_linux_nat_target::store_registers): Likewise. - -2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com> - - PR gdb/23555 - PR gdb/23558 - * gnulib/aclocal.m4: Regenerate. - * gnulib/config.in: Regenerate. - * gnulib/configure: Regenerate. - * gnulib/import/Makefile.am: Update. - * gnulib/import/Makefile.in: Update. - * gnulib/import/extra/snippet/_Noreturn.h: Rename to... - * gnulib/import/_Noreturn.h: ... this. - * gnulib/import/alloca.in.h: Update. - * gnulib/import/extra/snippet/arg-nonnull.h: Rename to... - * gnulib/import/arg-nonnull.h: ... this. - * gnulib/import/assure.h: Update. - * gnulib/import/at-func.c: Update. - * gnulib/import/basename-lgpl.c: Update. - * gnulib/import/extra/snippet/c++defs.h: Rename to... - * gnulib/import/c++defs.h: ... this. - * gnulib/import/canonicalize-lgpl.c: Update. - * gnulib/import/cdefs.h: Update. - * gnulib/import/chdir-long.c: Update. - * gnulib/import/chdir-long.h: Update. - * gnulib/import/cloexec.c: Update. - * gnulib/import/cloexec.h: Update. - * gnulib/import/close.c: Update. - * gnulib/import/closedir.c: Update. - * gnulib/import/config.charset: Update. - * gnulib/import/dirent-private.h: Update. - * gnulib/import/dirent.in.h: Update. - * gnulib/import/dirfd.c: Update. - * gnulib/import/dirname-lgpl.c: Update. - * gnulib/import/dirname.h: Update. - * gnulib/import/dosname.h: Update. - * gnulib/import/dup-safer-flag.c: Update. - * gnulib/import/dup-safer.c: Update. - * gnulib/import/dup.c: Update. - * gnulib/import/dup2.c: Update. - * gnulib/import/errno.in.h: Update. - * gnulib/import/error.c: Update. - * gnulib/import/error.h: Update. - * gnulib/import/exitfail.c: Update. - * gnulib/import/exitfail.h: Update. - * gnulib/import/extra/update-copyright: Update. - * gnulib/import/fchdir.c: Update. - * gnulib/import/fcntl.c: Update. - * gnulib/import/fcntl.in.h: Update. - * gnulib/import/fd-hook.c: Update. - * gnulib/import/fd-hook.h: Update. - * gnulib/import/fd-safer-flag.c: Update. - * gnulib/import/fd-safer.c: Update. - * gnulib/import/fdopendir.c: Update. - * gnulib/import/filename.h: Update. - * gnulib/import/filenamecat-lgpl.c: Update. - * gnulib/import/filenamecat.h: Update. - * gnulib/import/flexmember.h: Update. - * gnulib/import/float+.h: Update. - * gnulib/import/float.c: Update. - * gnulib/import/float.in.h: Update. - * gnulib/import/fnmatch.c: Update. - * gnulib/import/fnmatch.in.h: Update. - * gnulib/import/fnmatch_loop.c: Update. - * gnulib/import/fpucw.h: Update. - * gnulib/import/frexp.c: Update. - * gnulib/import/frexpl.c: Update. - * gnulib/import/fstat.c: Update. - * gnulib/import/fstatat.c: Update. - * gnulib/import/getcwd-lgpl.c: Update. - * gnulib/import/getcwd.c: Update. - * gnulib/import/getdtablesize.c: Update. - * gnulib/import/getlogin_r.c: Update. - * gnulib/import/getprogname.c: Update. - * gnulib/import/getprogname.h: Update. - * gnulib/import/gettext.h: Update. - * gnulib/import/gettimeofday.c: Update. - * gnulib/import/glob-libc.h: Update. - * gnulib/import/glob.c: Update. - * gnulib/import/glob.in.h: Update. - * gnulib/import/glob_internal.h: Update. - * gnulib/import/glob_pattern_p.c: Update. - * gnulib/import/globfree.c: Update. - * gnulib/import/hard-locale.c: Update. - * gnulib/import/hard-locale.h: Update. - * gnulib/import/intprops.h: Update. - * gnulib/import/inttypes.in.h: Update. - * gnulib/import/isnan.c: Update. - * gnulib/import/isnand-nolibm.h: Update. - * gnulib/import/isnand.c: Update. - * gnulib/import/isnanl-nolibm.h: Update. - * gnulib/import/isnanl.c: Update. - * gnulib/import/itold.c: Update. - * gnulib/import/libc-config.h: Update. - * gnulib/import/limits.in.h: Update. - * gnulib/import/localcharset.c: Update. - * gnulib/import/localcharset.h: Update. - * gnulib/import/localtime-buffer.c: Update. - * gnulib/import/localtime-buffer.h: Update. - * gnulib/import/lstat.c: Update. - * gnulib/import/m4/00gnulib.m4: Update. - * gnulib/import/m4/__inline.m4: Update. - * gnulib/import/m4/absolute-header.m4: Update. - * gnulib/import/m4/alloca.m4: Update. - * gnulib/import/m4/builtin-expect.m4: Update. - * gnulib/import/m4/canonicalize.m4: Update. - * gnulib/import/m4/chdir-long.m4: Update. - * gnulib/import/m4/close.m4: Update. - * gnulib/import/m4/closedir.m4: Update. - * gnulib/import/m4/configmake.m4: Update. - * gnulib/import/m4/d-ino.m4: Update. - * gnulib/import/m4/d-type.m4: Update. - * gnulib/import/m4/dirent_h.m4: Update. - * gnulib/import/m4/dirfd.m4: Update. - * gnulib/import/m4/dirname.m4: Update. - * gnulib/import/m4/double-slash-root.m4: Update. - * gnulib/import/m4/dup.m4: Update. - * gnulib/import/m4/dup2.m4: Update. - * gnulib/import/m4/eealloc.m4: Update. - * gnulib/import/m4/environ.m4: Update. - * gnulib/import/m4/errno_h.m4: Update. - * gnulib/import/m4/error.m4: Update. - * gnulib/import/m4/exponentd.m4: Update. - * gnulib/import/m4/exponentl.m4: Update. - * gnulib/import/m4/extensions.m4: Update. - * gnulib/import/m4/extern-inline.m4: Update. - * gnulib/import/m4/fchdir.m4: Update. - * gnulib/import/m4/fcntl-o.m4: Update. - * gnulib/import/m4/fcntl.m4: Update. - * gnulib/import/m4/fcntl_h.m4: Update. - * gnulib/import/m4/fdopendir.m4: Update. - * gnulib/import/m4/filenamecat.m4: Update. - * gnulib/import/m4/flexmember.m4: Update. - * gnulib/import/m4/float_h.m4: Update. - * gnulib/import/m4/fnmatch.m4: Update. - * gnulib/import/m4/fnmatch_h.m4: Update. - * gnulib/import/m4/fpieee.m4: Update. - * gnulib/import/m4/frexp.m4: Update. - * gnulib/import/m4/frexpl.m4: Update. - * gnulib/import/m4/fstat.m4: Update. - * gnulib/import/m4/fstatat.m4: Update. - * gnulib/import/m4/getcwd-abort-bug.m4: Update. - * gnulib/import/m4/getcwd-path-max.m4: Update. - * gnulib/import/m4/getcwd.m4: Update. - * gnulib/import/m4/getdtablesize.m4: Update. - * gnulib/import/m4/getlogin.m4: Update. - * gnulib/import/m4/getlogin_r.m4: Update. - * gnulib/import/m4/getpagesize.m4: Update. - * gnulib/import/m4/getprogname.m4: Update. - * gnulib/import/m4/gettimeofday.m4: Update. - * gnulib/import/m4/glibc21.m4: Update. - * gnulib/import/m4/glob.m4: Update. - * gnulib/import/m4/glob_h.m4: Update. - * gnulib/import/m4/gnulib-cache.m4: Update. - * gnulib/import/m4/gnulib-common.m4: Update. - * gnulib/import/m4/gnulib-comp.m4: Update. - * gnulib/import/m4/gnulib-tool.m4: Update. - * gnulib/import/m4/hard-locale.m4: Update. - * gnulib/import/m4/include_next.m4: Update. - * gnulib/import/m4/inttypes-pri.m4: Update. - * gnulib/import/m4/inttypes.m4: Update. - * gnulib/import/m4/isnand.m4: Update. - * gnulib/import/m4/isnanl.m4: Update. - * gnulib/import/m4/largefile.m4: Update. - * gnulib/import/m4/limits-h.m4: Update. - * gnulib/import/m4/localcharset.m4: Update. - * gnulib/import/m4/locale-fr.m4: Update. - * gnulib/import/m4/locale-ja.m4: Update. - * gnulib/import/m4/locale-zh.m4: Update. - * gnulib/import/m4/localtime-buffer.m4: Update. - * gnulib/import/m4/longlong.m4: Update. - * gnulib/import/m4/lstat.m4: Update. - * gnulib/import/m4/malloc.m4: Update. - * gnulib/import/m4/malloca.m4: Update. - * gnulib/import/m4/math_h.m4: Update. - * gnulib/import/m4/mbrtowc.m4: Update. - * gnulib/import/m4/mbsinit.m4: Update. - * gnulib/import/m4/mbsrtowcs.m4: Update. - * gnulib/import/m4/mbstate_t.m4: Update. - * gnulib/import/m4/memchr.m4: Update. - * gnulib/import/m4/memmem.m4: Update. - * gnulib/import/m4/mempcpy.m4: Update. - * gnulib/import/m4/memrchr.m4: Update. - * gnulib/import/m4/mkdir.m4: Update. - * gnulib/import/m4/mkstemp.m4: Update. - * gnulib/import/m4/mmap-anon.m4: Update. - * gnulib/import/m4/mode_t.m4: Update. - * gnulib/import/m4/msvc-inval.m4: Update. - * gnulib/import/m4/msvc-nothrow.m4: Update. - * gnulib/import/m4/multiarch.m4: Update. - * gnulib/import/m4/nocrash.m4: Update. - * gnulib/import/m4/off_t.m4: Update. - * gnulib/import/m4/onceonly.m4: Update. - * gnulib/import/m4/open-cloexec.m4: Update. - * gnulib/import/m4/open.m4: Update. - * gnulib/import/m4/openat.m4: Update. - * gnulib/import/m4/opendir.m4: Update. - * gnulib/import/m4/pathmax.m4: Update. - * gnulib/import/m4/rawmemchr.m4: Update. - * gnulib/import/m4/readdir.m4: Update. - * gnulib/import/m4/readlink.m4: Update. - * gnulib/import/m4/realloc.m4: Update. - * gnulib/import/m4/rename.m4: Update. - * gnulib/import/m4/rewinddir.m4: Update. - * gnulib/import/m4/rmdir.m4: Update. - * gnulib/import/m4/save-cwd.m4: Update. - * gnulib/import/m4/secure_getenv.m4: Update. - * gnulib/import/m4/setenv.m4: Update. - * gnulib/import/m4/signal_h.m4: Update. - * gnulib/import/m4/ssize_t.m4: Update. - * gnulib/import/m4/stat-time.m4: Update. - * gnulib/import/m4/stat.m4: Update. - * gnulib/import/m4/std-gnu11.m4: Update. - * gnulib/import/m4/stdbool.m4: Update. - * gnulib/import/m4/stddef_h.m4: Update. - * gnulib/import/m4/stdint.m4: Update. - * gnulib/import/m4/stdio_h.m4: Update. - * gnulib/import/m4/stdlib_h.m4: Update. - * gnulib/import/m4/strchrnul.m4: Update. - * gnulib/import/m4/strdup.m4: Update. - * gnulib/import/m4/strerror.m4: Update. - * gnulib/import/m4/string_h.m4: Update. - * gnulib/import/m4/strstr.m4: Update. - * gnulib/import/m4/strtok_r.m4: Update. - * gnulib/import/m4/sys_socket_h.m4: Update. - * gnulib/import/m4/sys_stat_h.m4: Update. - * gnulib/import/m4/sys_time_h.m4: Update. - * gnulib/import/m4/sys_types_h.m4: Update. - * gnulib/import/m4/tempname.m4: Update. - * gnulib/import/m4/time_h.m4: Update. - * gnulib/import/m4/unistd-safer.m4: Update. - * gnulib/import/m4/unistd_h.m4: Update. - * gnulib/import/m4/warn-on-use.m4: Update. - * gnulib/import/m4/wchar_h.m4: Update. - * gnulib/import/m4/wchar_t.m4: Update. - * gnulib/import/m4/wctype_h.m4: Update. - * gnulib/import/m4/wint_t.m4: Update. - * gnulib/import/malloc.c: Update. - * gnulib/import/malloc/scratch_buffer.h: Update. - * gnulib/import/malloc/scratch_buffer_grow.c: Update. - * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update. - * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update. - * gnulib/import/malloca.c: Update. - * gnulib/import/malloca.h: Update. - * gnulib/import/malloca.valgrind: Update. - * gnulib/import/math.in.h: Update. - * gnulib/import/mbrtowc.c: Update. - * gnulib/import/mbsinit.c: Update. - * gnulib/import/mbsrtowcs-impl.h: Update. - * gnulib/import/mbsrtowcs-state.c: Update. - * gnulib/import/mbsrtowcs.c: Update. - * gnulib/import/memchr.c: Update. - * gnulib/import/memmem.c: Update. - * gnulib/import/mempcpy.c: Update. - * gnulib/import/memrchr.c: Update. - * gnulib/import/mkdir.c: Update. - * gnulib/import/mkstemp.c: Update. - * gnulib/import/msvc-inval.c: Update. - * gnulib/import/msvc-inval.h: Update. - * gnulib/import/msvc-nothrow.c: Update. - * gnulib/import/msvc-nothrow.h: Update. - * gnulib/import/open.c: Update. - * gnulib/import/openat-die.c: Update. - * gnulib/import/openat-priv.h: Update. - * gnulib/import/openat-proc.c: Update. - * gnulib/import/openat.c: Update. - * gnulib/import/openat.h: Update. - * gnulib/import/opendir.c: Update. - * gnulib/import/pathmax.h: Update. - * gnulib/import/pipe-safer.c: Update. - * gnulib/import/rawmemchr.c: Update. - * gnulib/import/readdir.c: Update. - * gnulib/import/readlink.c: Update. - * gnulib/import/realloc.c: Update. - * gnulib/import/ref-add.sin: Update. - * gnulib/import/ref-del.sin: Update. - * gnulib/import/rename.c: Update. - * gnulib/import/rewinddir.c: Update. - * gnulib/import/rmdir.c: Update. - * gnulib/import/same-inode.h: Update. - * gnulib/import/save-cwd.c: Update. - * gnulib/import/save-cwd.h: Update. - * gnulib/import/scratch_buffer.h: Update. - * gnulib/import/secure_getenv.c: Update. - * gnulib/import/setenv.c: Update. - * gnulib/import/signal.in.h: Update. - * gnulib/import/stat-time.c: Update. - * gnulib/import/stat-time.h: Update. - * gnulib/import/stat-w32.c: Update. - * gnulib/import/stat-w32.h: Update. - * gnulib/import/stat.c: Update. - * gnulib/import/stdbool.in.h: Update. - * gnulib/import/stddef.in.h: Update. - * gnulib/import/stdint.in.h: Update. - * gnulib/import/stdio.in.h: Update. - * gnulib/import/stdlib.in.h: Update. - * gnulib/import/str-two-way.h: Update. - * gnulib/import/strchrnul.c: Update. - * gnulib/import/strdup.c: Update. - * gnulib/import/streq.h: Update. - * gnulib/import/strerror-override.c: Update. - * gnulib/import/strerror-override.h: Update. - * gnulib/import/strerror.c: Update. - * gnulib/import/string.in.h: Update. - * gnulib/import/stripslash.c: Update. - * gnulib/import/strnlen1.c: Update. - * gnulib/import/strnlen1.h: Update. - * gnulib/import/strstr.c: Update. - * gnulib/import/strtok_r.c: Update. - * gnulib/import/sys_stat.in.h: Update. - * gnulib/import/sys_time.in.h: Update. - * gnulib/import/sys_types.in.h: Update. - * gnulib/import/tempname.c: Update. - * gnulib/import/tempname.h: Update. - * gnulib/import/time.in.h: Update. - * gnulib/import/unistd--.h: Update. - * gnulib/import/unistd-safer.h: Update. - * gnulib/import/unistd.in.h: Update. - * gnulib/import/unsetenv.c: Update. - * gnulib/import/verify.h: Update. - * gnulib/import/extra/snippet/warn-on-use.h: Update. - * gnulib/import/wchar.in.h: Update. - * gnulib/import/wctype.in.h: Update. - * gnulib/import/xalloc-oversized.h: Update. - * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to - "53e2c179f26a890fa6685af4b6c1397ee370433b". - -2018-08-16 Gary Benson <gbenson@redhat.com> - - PR gdb/13000: - * gdb/main.c (captured_main_1): Exit with nonzero status - in batch mode if the last command to be executed failed. - * NEWS: Mention the above. - -2018-08-29 Simon Marchi <simon.marchi@ericsson.com> - - * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at - end of warning message. - -2018-08-29 Alan Hayward <alan.hayward@arm.com> - - PR gdb/22943: - * aarch64-tdep.c (is_hfa_or_hva): Remove function. - (aarch64_extract_return_value): Use - aapcs_is_vfp_call_or_return_candidate. - (aarch64_return_in_memory): Likewise. - (aarch64_store_return_value): Likewise. - -2018-08-29 Alan Hayward <alan.hayward@arm.com> - - * aarch64-tdep.c - (aapcs_is_vfp_call_or_return_candidate): Make static - (pass_in_v_or_stack): Remove function. - (pass_in_v_vfp_candidate): New function. - (aarch64_push_dummy_call): Check for float register candidates. - -2018-08-29 Alan Hayward <alan.hayward@arm.com> - - * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro. - (aapcs_is_vfp_call_or_return_candidate_1): New function. - (aapcs_is_vfp_call_or_return_candidate): Likewise. - -2018-08-28 Simon Marchi <simon.marchi@polymtl.ca> - - PR build/23399 - * common/agent.c (IPA_SYM_STRUCT_NAME): Define. - (struct ipa_sym_addresses): Rename to... - (struct ipa_sym_addresses_common): ... this. - * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME. - -2018-08-28 Tom Tromey <tom@tromey.com> - - * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC. - (token_fifo): Now a std::vector. - (yylex, c_parse): Update. - * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC. - (token_fifo): Now a std::vector. - (yylex, d_parse): Update. - * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC. - (token_fifo): Now a std::vector. - (yylex, go_parse): Update. - -2018-08-28 Simon Marchi <simon.marchi@ericsson.com> - - * parser-defs.h (struct type_stack) <elements>: Change type to - std::vector<union type_stack_elt>. - <depth, size>: Remove. - * parse.c (parse_exp_in_context_1): Adjust. - (type_stack_reserve): Remove. - (check_type_stack_depth): Remove. - (insert_into_type_stack): Adjust to std::vector. - (insert_type): Likewise. - (push_type): Likewise. - (push_type_int): Likewise. - (insert_type_address_space): Likewise. - (pop_type): Likewise. - (pop_type_int): Likewise. - (pop_typelist): Likewise. - (pop_type_stack): Likewise. - (append_type_stack): Likewise. - (push_type_stack): Likewise. - (get_type_stack): Likewise. - (type_stack_cleanup): Likewise. - (push_typelist): Likewise. - (follow_types): Likewise. - (_initialize_parse): Likewise. - -2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com> - - * NEWS: Mention csky target. - -2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com> - Hafiz Abid Qadeer <abidh@codesourcery.com> - Don Breazeal <donb@codesourcery.com> - - * csky-linux-tdep.c: New file. - * csky-tdep.c: Likewise. - * csky-tdep.h: Likewise. - * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and - csky-tdep.o. - (HFILES_NO_SRCDIR): Add csky-tdep.h. - (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c - * configure.tgt: Add csky support. - -2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz> - - * python/py-framefilter.c (py_print_frame): Print frame architecture - when printing on an MI output. - -2018-08-27 Tom Tromey <tom@tromey.com> - - PR build/23087: - * configure: Rebuild. - * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing. - -2018-08-27 Tom Tromey <tom@tromey.com> - - * aarch64-linux-tdep.c - (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add - casts to int. - -2018-08-27 Tom Tromey <tom@tromey.com> - - * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to - unsigned. - (ppc64_standard_linkage1, ppc64_standard_linkage2) - (ppc64_standard_linkage3, ppc64_standard_linkage4) - (ppc64_standard_linkage5, ppc64_standard_linkage6) - (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to - unsigned. - -2018-08-27 Tom Tromey <tom@tromey.com> - - * xtensa-tdep.h (XTREG_END): Add cast to unsigned. - (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise. - -2018-08-27 Tom Tromey <tom@tromey.com> - - * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine. - * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use - ULONGEST_MAX. - * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use - ULONGEST_MAX. - * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use - ULONGEST_MAX. - * sparc-linux-tdep.c (sparc32_linux_sigframe) - (sparc32_linux_rt_sigframe): Use ULONGEST_MAX. - * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use - ULONGEST_MAX. - * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame) - (ppc64_linux_sigaction_tramp_frame) - (ppc32_linux_sighandler_tramp_frame) - (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX. - * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame) - (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX. - * mn10300-linux-tdep.c (am33_linux_sigframe) - (am33_linux_rt_sigframe): Use ULONGEST_MAX. - * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX. - * mips-linux-tdep.c (mips_linux_o32_sigframe) - (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe) - (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe) - (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe) - (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX. - * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe) - (mips64_fbsd_sigframe): Use ULONGEST_MAX. - * microblaze-linux-tdep.c - (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX. - * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2) - (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31) - (i386nbsd_sigtramp_si4): Use ULONGEST_MAX. - * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX. - * common/common-types.h (ULONGEST_MAX): New define. - (CORE_ADDR_MAX): Fix formatting. - * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX. - * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX. - * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame) - (arm_linux_rt_sigreturn_tramp_frame) - (arm_eabi_linux_sigreturn_tramp_frame) - (arm_eabi_linux_rt_sigreturn_tramp_frame) - (thumb2_eabi_linux_sigreturn_tramp_frame) - (thumb2_eabi_linux_rt_sigreturn_tramp_frame) - (arm_linux_restart_syscall_tramp_frame) - (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX. - * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX. - * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use - ULONGEST_MAX. - * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX. - -2018-08-27 Tom Tromey <tom@tromey.com> - - * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use - CORE_ADDR_MAX. - * mips-tdep.c (mips_deal_with_atomic_sequence) - (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX. - * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw) - (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX. - * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use - CORE_ADDR_MAX. - * aarch64-tdep.c (aarch64_software_single_step): Use - CORE_ADDR_MAX. - -2018-08-27 Tom Tromey <tom@tromey.com> - - * linespec.c (complete_linespec_component): Add cast to "char". - * completer.c (completion_tracker::build_completion_result): Add - cast to "char". - -2018-08-26 Simon Marchi <simon.marchi@polymtl.ca> - - * solist.h (struct solist, struct target_so_ops): Fix - indentation. - -2018-08-26 Simon Marchi <simon.marchi@polymtl.ca> - - * ada-tasks.c (ada_task_info_s): Remove typedef. - (DEF_VEC_O(ada_task_info_s)): Remove. - (struct ada_tasks_inferior_data): Initialize fields. - <task_list>: Make an std::vector. - (get_ada_tasks_inferior_data): Allocate with new. - (ada_get_task_number): Adjust. - (get_task_number_from_id): Likewise. - (valid_task_id): Likewise. - (ada_get_task_info_from_ptid): Likewise. - (iterate_over_live_ada_tasks): Likewise. - (add_ada_task): Likewise. - (read_known_tasks): Likewise. - (ada_build_task_list): Likewise. - (print_ada_task_info): Likewise. - (info_task): Likewise. - (task_command_1): Likewise. - -2018-08-26 Simon Marchi <simon.marchi@polymtl.ca> - - * ada-lang.c (add_angle_brackets): Return std::string. - -2018-08-25 Simon Marchi <simon.marchi@polymtl.ca> - - * python/py-threadevent.c (py_get_event_thread): Initialize - pythread. - -2018-08-24 Pedro Alves <palves@redhat.com> - - * python/py-bpevent.c (create_breakpoint_event_object): Use - copy-initialization. - * python/py-continueevent.c (emit_continue_event): Use - copy-initialization. - * python/py-exitedevent.c (create_exited_event_object): Return a - gdbpy_ref<>. - (emit_exited_event): Use copy-initialization. - * python/py-inferior.c (python_new_inferior) - (python_inferior_deleted, add_thread_object): Use - copy-initialization. - * python/py-infevents.c (create_inferior_call_event_object) - (create_register_changed_event_object) - (create_memory_changed_event_object): Return a gdbpy_ref<>. - (emit_inferior_call_event, emit_memory_changed_event) - (emit_register_changed_event): Use copy-initialization. - * python/py-newobjfileevent.c (create_new_objfile_event_object): - Return a gdbpy_ref<>. - (emit_new_objfile_event): Use copy-initialization. - (create_clear_objfiles_event_object): Return a gdbpy_ref<>. - (emit_clear_objfiles_event): Use copy-initialization. - * python/py-signalevent.c (create_signal_event_object): Use - copy-initialization. - * python/py-threadevent.c (create_thread_event_object): Use - copy-initialization. - -2018-08-24 Pedro Alves <palves@redhat.com> - Simon Marchi <simon.marchi@ericsson.com> - - PR gdb/23379 - * python/py-continueevent.c: Include "gdbthread.h". - (create_continue_event_object): Add intro comment. Add 'ptid' - parameter. Use it to find thread to pass to - create_thread_event_object. - (emit_continue_event): Pass PTID down to - create_continue_event_object. - * python/py-event.h (py_get_event_thread): Declare. - (create_thread_event_object): Remove default from 'thread' - parameter. - * python/py-stopevent.c (create_stop_event_object): Use - py_get_event_thread. - * python/py-threadevent.c (get_event_thread): Rename to ... - (py_get_event_thread): ... this, make extern, add 'ptid' parameter - and use it to find the thread. - (create_thread_event_object): Assert that THREAD isn't null. - Don't find the event thread here. - -2018-08-23 Kevin Buettner <kevinb@redhat.com> - - * block.h (blockrange, blockranges): New struct declarations. - (struct block): Add new field named `ranges'. - (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P) - (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New - macros for accessing ranges in struct block. - (make_blockranges): New declaration. - block.c (make_blockranges): New function. - * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES - for block. - * symtab.h (find_pc_partial_function): Add new parameter `block'. - * blockframe.c (cache_pc_function_block): New static global. - (clear_pc_function_cache): Clear cache_pc_function_block. - (find_pc_partial_function): Move comment to symtab.h. Add - support for non-contiguous blocks. - * cli/cli-cmds.c (block.h): Include. - (print_disassembly): Handle printing of non-contiguous blocks. - (disassemble_current_function): Likewise. - (disassemble_command): Likewise. - - * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of - BLOCK_START. - * blockframe.c (get_pc_function_start): Likewise. - * compile/compile-c-symbols.c (convert_one_symbol): Likewise. - (gcc_symbol_address): Likewise. - * compile/compile-object-run.c (compile_object_run): Likewise. - * compile/compile.c (get_expr_block_and_pc): Likewise. - * dwarf2loc.c (dwarf2_find_location_expression): Likewise. - (func_addr_to_tail_call_list): Likewise. - * findvar.c (default_read_var_value): Likewise. - * inline-frame.c (inline_frame_this_id): Likewise. - (skip-inline_frames): Likewise. - * infcmd.c (until_next_command): Likewise. - * linespec.c (convert_linespec_to_sals): Likewise. - * parse.c (parse_exp_in_context_1): Likewise. - * printcmd.c (build_address_symbolic): likewise. - (info_address_command): Likewise. - symtab.c (find_function_start_sal): Likewise. - (skip_prologue_sal): Likewise. - (find_function_alias_target): Likewise. - (find_gnu_ifunc): Likewise. - * stack.c (find_frame_funname): Likewise. - * symtab.c (fixup_symbol_section): Likewise. - (find_function_start_sal): Likewise. - (skip_prologue_sal): Likewsie. - (find_function_alias_target): Likewise. - (find_gnu_ifunc): Likewise. - * tracepoint.c (info_scope_command): Likewise. - * value.c (value_fn_field): Likewise. - - * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc - in place of find_pc_partial_function. - * blockframe.c (find_function_entry_range_from_pc): New function. - * symtab.h (find_function_entry_range_from_pc): Declare and document. - * objfiles.c (objfile_relocate1): Relocate start and end addresses - for each range in a block. - - -2018-08-23 Xavier Roirand <roirand@adacore.com> - - * machoread.c (macho_symfile_read_all_oso): Remove uneeded - incrementation. - -2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> - - * solib-svr4.c (read_program_headers_from_bfd): Return - gdb::optional<gdb::byte_vector>. - (svr4_exec_displacement): Adjust. - -2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> - - * solib-svr4.c (read_program_header): Return - gdb::optional<gdb::byte_vector>, remove p_sect_size param. - (find_program_interpreter): Return - gdb::optional<gdb::byte_vector>. - (scan_dyntag_auxv): Adjust. - (enable_break): Adjust. - (svr4_exec_displacement): Adjust. - -2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> - - * inf-child.h (inf_child_target) <terminal_save_inferior>: New. - * inf-child.c (inf_child_target::terminal_save_inferior): New. - -2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> - - * guile/scm-string.c (gdbscm_scm_from_printf): Use - string_vprintf. - * guile/scm-utils.c (gdbscm_printf): Likewise. - * serial.c (serial_printf): Likewise. - * xml-support.c (gdb_xml_parser::vdebug): Likewise. - -2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz> - - * stack.c (print_frame): Print frame architecture when printing on - an MI output. - * NEWS: Mention new "arch" attribute in frame output. - -2018-08-21 Alan Hayward <alan.hayward@arm.com> - - * arch/aarch64.h (aarch64_regnum): Update comment. - -2018-08-21 Alan Hayward <alan.hayward@arm.com> - - * NEWS: Add SVE to 8.2 section. - -2018-08-21 Pedro Alves <palves@redhat.com> - - * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored - out from gdbscm_parse_function_args. - (gdbscm_parse_function_args): Rework to use gdbscm_wrap and - gdbscm_parse_function_args_1. - -2018-08-21 Simon Marchi <simon.marchi@ericsson.com> - - PR gdb/17816 - * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary - operator. - -2018-08-19 Simon Marchi <simon.marchi@polymtl.ca> - - * solib-svr4.c (svr4_exec_displacement): Fix formatting. - -2018-08-19 Michael Spang <spang@google.com> - - PR gdb/11786 - * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields - for PT_TLS segments. - -2018-08-18 Kevin Buettner <kevinb@redhat.com> - - * dwarf2expr.h (struct dwarf_expr_context): Add virtual method - dwarf_variable_value. - * dwarf2-frame.c (class dwarf_expr_executor): - Add override for dwarf_variable_value. - * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise. - (class symbol_needs_eval_context): Likewise. - (indirect_synthetic_pointer): Add forward declaration. - (sect_variable_value): New function. - (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value. - * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case - for DW_OP_GNU_variable_value. - -2018-08-16 Tom Tromey <tom@tromey.com> - - * top.c (read_command_file): Update. - (command_line_input): Remove "repeat" argument. - * ada-lang.c (get_selections): Update. - * linespec.c (decode_line_2): Update. - * defs.h (command_line_input): Remove argument. - * cli/cli-script.c (read_next_line): Update. - * python/py-gdb-readline.c: Update. - -2018-08-17 Tom Tromey <tom@tromey.com> - - * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to - command_line_input. - -2018-08-15 Tom Tromey <tom@tromey.com> - - * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest. - -2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz> - - * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option. - If used, use find_pc_partial_function to find address range - to disassemble. - * mi/mi-main.c (mi_cmd_list_features): Report - "data-disassemble-a-option" feature. - * NEWS: Mention new -data-disassemble option -a. - -2018-08-13 Tom Tromey <tom@tromey.com> - - * common/common-defs.h (_FORTIFY_SOURCE): Define. - -2018-08-13 Alan Hayward <alan.hayward@arm.com> - - * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function. - (aarch64_linux_collect_sve_regset): Likewise. - (aarch64_linux_iterate_over_regset_sections): Check for SVE. - * regcache.h (regcache_map_entry_size): New function. - -2018-08-13 Alan Hayward <alan.hayward@arm.com> - - * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define. - (SVE_HEADER_MAX_SIZE_LENGTH): Likewise. - (SVE_HEADER_VL_LENGTH): Likewise. - (SVE_HEADER_MAX_VL_LENGTH): Likewise. - (SVE_HEADER_FLAGS_LENGTH): Likewise. - (SVE_HEADER_RESERVED_LENGTH): Likewise. - (SVE_HEADER_SIZE_OFFSET): Likewise. - (SVE_HEADER_MAX_SIZE_OFFSET): Likewise. - (SVE_HEADER_VL_OFFSET): Likewise. - (SVE_HEADER_MAX_VL_OFFSET): Likewise. - (SVE_HEADER_FLAGS_OFFSET): Likewise. - (SVE_HEADER_RESERVED_OFFSET): Likewise. - (SVE_HEADER_SIZE): Likewise. - (aarch64_linux_core_read_vq): Add function. - (aarch64_linux_core_read_description): Check for SVE section. - -2018-08-13 Alan Hayward <alan.hayward@arm.com> - - * aarch64-fbsd-tdep.c - (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and - collect_size. - * aarch64-linux-tdep.c - (aarch64_linux_iterate_over_regset_sections): Likewise. - * alpha-linux-tdep.c - (alpha_linux_iterate_over_regset_sections): - * alpha-nbsd-tdep.c - (alphanbsd_iterate_over_regset_sections): Likewise. - * amd64-fbsd-tdep.c - (amd64fbsd_iterate_over_regset_sections): Likewise. - * amd64-linux-tdep.c - (amd64_linux_iterate_over_regset_sections): Likewise. - * arm-bsd-tdep.c - (armbsd_iterate_over_regset_sections): Likewise. - * arm-fbsd-tdep.c - (arm_fbsd_iterate_over_regset_sections): Likewise. - * arm-linux-tdep.c - (arm_linux_iterate_over_regset_sections): Likewise. - * corelow.c (get_core_registers_cb): Likewise. - (core_target::fetch_registers): Likewise. - * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise. - * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise. - * gdbarch.h (void): Regenerate. - * gdbarch.sh: Add supply_size and collect_size. - * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise. - * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise. - * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise. - * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise. - * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise. - * i386-tdep.c (i386_iterate_over_regset_sections): Likewise. - * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise. - * linux-tdep.c (linux_collect_regset_section_cb): Likewise. - * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise. - * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise. - * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise. - * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise. - * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise. - * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise. - * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): - Likewise. - * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise. - * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise. - * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise. - * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise. - * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise. - * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise. - * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): - Likewise. - * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise. - * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise. - * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise. - * sh-tdep.c (sh_iterate_over_regset_sections): Likewise. - * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise. - * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise. - * vax-tdep.c (vax_iterate_over_regset_sections): Likewise. - * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise. - -2018-08-10 Simon Marchi <simon.marchi@ericsson.com> - - * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf - with string_printf. - -2018-08-10 Keith Seitz <keiths@redhat.com> - - * compile/compile-c-support.c (add_code_header, add_code_footer): - Move into policy class. - (c_push_user_expression, pop_user_expression_nop) - (c_add_code_header, c_add_code_footer, c_add_input): New policy class. - (compile_program): New host class. - (c_compile_program): New typedef. - (c_compute_porgram): Use c_compile_program. - -2018-08-10 Keith Seitz <keiths@redhat.com> - - * compile/compile-internal.h (compile_instance::~compile_instance): - Remove calls to htab_delete. - <m_type_map, m_symbol_err_map>: Switch type to htab_up. - * compile.c (compile_instance::compile_instance): Initialize - htab unique pointers. - (compile_instance::get_cached_type, compile_instance::insert_type) - (compile_instance::error_symbol_once): Update for unique_ptr. - -2018-08-10 Keith Seitz <keiths@redhat.com> - - * compile/compile-c-symbols.c (struct symbol_error) - (hash_symbol_error, eq_symbol_error, del_symbol_error) - (compile_instance::insert_symbol_error) - (compile_instance::error_symbol_once): Move to ... - * compile/compile.c: ... here. - -2018-08-10 Keith Seitz <keiths@redhat.com> - - * compile/compile-c-support.c (c_get_compile_context): Use `new' - instead of `new_compile_instance'. - * compile/compile-c-symbols.c (compile_instance::insert_symbol_error): - Update description. - If the symbol error map is not initialized, create it. - (generate_c_for_for_one_symbol): Do not check/initialize - the symbol error map. - * compile/compile-c-types.c (compile_c_instance): Make a class. - Update all callers. - (compile_instance::compile_instance): Initialize the type cache. - (get_cached_type): New function. - (insert_type): Update description. - (compile_c_instance::m_default_cflags): Define. - (convert_type): Update description. Use get_cached_type. - (delete_instance): Moved to destructor. - (new_compile_instance): Moved to constructor. - * compile/compile-c.h (compile_c_instance): Make class inheriting - from compile_instance. - <base>: Remove field. - <type_map, symbol_err_map>: Move to base class. - <c_plugin>: Rename to `m_plugin' and remove pointer type. - * compile/compile-internal.h (compile_instance): Make class. - <type_map_t, symbol_err_map_t>: Define. - <fe>: Rename to `m_gcc_fe'. - <scope, block, gcc_target_options>: Add `m_' prefix. - <m_type_map, m_symbol_err_map>: New fields, moved from - compile_c_instance. - <destroy>: Remove. - (convert_type, new_compile_instance): Remove. - * compile/compile.c (cleanup_compile_instance): Remove. - (compile_to_object): Use unique_ptr to eliminate cleanups. - (compile_instance::set_print_callback, compile_instance::version) - (compile_instance::set_verbose) - (compile_instance::set_driver_filename) - (compile_instance::set_triplet_regexp) - (compile_instance::set_arguments) - (compile_instance::set_source_file) - (compile_instance::compile): Define. - -2018-08-10 Keith Seitz <keiths@redhat.com> - - * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h. - * compile/compile-c-types.c: Define GCC_METHODN macros and include - gcc-c-fe.def to define C plugin. - (delete_instance): Delete `c_plugin'. - (new_compile_instance): Initialize `c_plugin'. - * compile/compile-c.h: Include gcc_c_plugin.h. - (struct compile_c_instance) <c_plugin>: New member. - * gcc-c-plugin.h: New file. - Update all callers with API change. - -2018-08-10 Keith Seitz <keiths@redhat.com> - - * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ... - (HFILES_NO_SRCDIR): ... to here. - Add compile-internal.h and compile-c.h. - * compile/compile-c-support.c: Include compile-c.h. - * compile/compile-c-symbols.c: Include compile-c.h. - (generate_c_for_variable_locations): Update comment. - * compile/compile-c-types.c: Include compile-c.h. - * compile/compile-c.h: New file -- moved C language declarations - from other files here. - * compile/compile-internal.h: Do not include hashtab.h or - common/enum-flags.h. - (gcc_qualifiers_flags, struct compile_c_instance, C_CTX) - (gcc_convert_symbol, gcc_symbol_address) - (generate_c_for_variable_locations, c_get_mode_for_size) - (c_get_range_decl_name): Definitions moved to compile-c.h. - * compile/compile-loc2c.c: Include compile-c.h. - -2018-08-10 Keith Seitz <keiths@redhat.com> - - * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ... - (c_symbol_substitution_name): ... this. - Update all callers. - -2018-08-10 Keith Seitz <keiths@redhat.com> - - * compile/compile-c-support.c (c_compute_program): Use - unique_xmalloc_ptr to eliminate cleanup. - * compile/compile-c-symbols.c (generate_c_for_variable_locations): - Return a unique_xmalloc_ptr and eliminate cleanup. - * compile/compile-internal.h (generate_c_for_variable_locations): - Return unique_xmalloc_ptr and update description. - -2018-08-10 Alan Hayward <alan.hayward@arm.com> - - * corelow.c (core_target::get_core_register_section): Rename - min_size to section_min_size. - -2018-08-09 Jim Wilson <jimw@sifive.com> - - * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c. - (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c. - * NEWS: Mention new GNU/Linux RISC-V target. - * configure.host: Add riscv*-*-linux*. - * configure.nat: Add riscv*. - * configure.tgt: Add riscv*-*-linux*. - * riscv-linux-nat.c: New file. - * riscv-linux-tdep.c: New file. - -2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com> - - * infrun.c (resume): Make static, add forward declaration. - (proceed): Update header comment. - * infrun.h (resume): Delete declaration. - -2018-08-09 Tom Tromey <tom@tromey.com> - - * riscv-tdep.h: Minor formatting fixes. - -2018-08-09 Simon Marchi <simon.marchi@ericsson.com> - - * common/scoped_mmap.c (mmap_file): Silence ARI warning. - * dwarf-index-cache.c (create_dir_and_check): Likewise. - (test_mkdir_recursive): Likewise. - * dwarf-index-write.c (write_psymtabs_to_index): Likewise. - -2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com> - - * valarith.c (value_subscripted_rvalue): If an array is not in - memory, and we don't know the upper bound, then we can't know that - the requested element exists or not. - -2018-08-08 Simon Marchi <simon.marchi@ericsson.com> - - * target.c (str_comma_list_concat_elem): Fix typo in comment. - (target_options_to_string): Add comment. - -2018-08-08 Tom Tromey <tom@tromey.com> - - * unittests/scoped_mmap-selftests.c: Check result of "write". - -2018-08-08 Jim Wilson <jimw@sifive.com> - - * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes. - (decode_register_index_short): New. - (decode_j_type_insn, decode_cj_type_insn): New. - (decode_b_type_insn, decode_cb_type_insn): New. - (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New - local xlen. Check xlen when decoding ambiguous compressed insns. In - compressed decode, use is_c_lui_insn instead of is_lui_insn, and - is_c_sw_insn instead of is_sw_insn. - (riscv_next_pc, riscv_next_pc_atomic_sequence): New. - (riscv_software_single_step): New. - * riscv-tdep.h (riscv_software_single_step): Declare. - - * riscv-tdep.c (riscv_isa_xlen): Drop static. - * riscv-tdep.h (riscv_isa_xlen): Add extern declaration. - -2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com> - - PR gdb/18050: - * target.c (dispose_inferior): Don't dispose of inferiors that are - already killed. - -2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com> - - * remote.c (remote_target::download_tracepoint): Change char* to - const char*. - -2018-08-07 Simon Marchi <simon.marchi@polymtl.ca> - - * target.h (target_options_to_string): Return an std::string. - * target.c (str_comma_list_concat_elem): Return void, use - std::string. - (do_option): Likewise. - (target_options_to_string): Return an std::string. - * linux-nat.c (linux_nat_target::wait): Adjust. - * target-debug.h (target_debug_print_options): Adjust. - -2018-08-07 Tom Tromey <tom@tromey.com> - - * Makefile.in (CPPFLAGS): New variable. - (INTERNAL_CPPFLAGS): Use it. - -2018-08-07 Simon Marchi <simon.marchi@ericsson.com> - - * NEWS: Mention the index cache. - -2018-08-07 Simon Marchi <simon.marchi@ericsson.com> - - * common/pathstuff.h (get_standard_cache_dir): New. - * common/pathstuff.c (get_standard_cache_dir): New. - * build-id.h (build_id_to_string): New. - * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX, - DEBUG_STR_SUFFIX): Move to here. - * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX, - DEBUG_STR_SUFFIX): Move from there. - (write_psymtabs_to_index): Make non-static, add basename - parameter. Write to temporary files, rename when done. - (save_gdb_index_command): Adjust call to - write_psymtabs_to_index. - * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New - field. - * dwarf2read.c (dwz_file) <index_cache_res>: New field. - (get_gdb_index_contents_from_cache): New. - (get_gdb_index_contents_from_cache_dwz): New. - (dwarf2_initialize_objfile): Read index from cache. - (dwarf2_build_psymtabs): Save to index. - * dwarf-index-cache.h: New file. - * dwarf-index-cache.c: New file. - * dwarf-index-write.h: New file. - -2018-08-07 Simon Marchi <simon.marchi@ericsson.com> - - * gnulib/aclocal.m4: Re-generate. - * gnulib/config.in: Re-generate. - * gnulib/configure: Re-generate. - * gnulib/import/Makefile.am: Re-generate. - * gnulib/import/Makefile.in: Re-generate. - * gnulib/import/m4/gnulib-cache.m4: Re-generate. - * gnulib/import/m4/gnulib-comp.m4: Re-generate. - * gnulib/import/m4/mkdir.m4: New file. - * gnulib/import/mkdir.c: New file. - * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir - module. - -2018-08-07 Simon Marchi <simon.marchi@ericsson.com> - - * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c. - * common/scoped_mmap.c: New file. - * common/scoped_mmap.h (destroy): New method. - (~scoped_mmap, reset): Use destroy. - (scoped_mmap): New move constructor. - (mmap_file): New declaration. - * unittests/scoped_mmap-selftests.c (test_normal, - test_invalid_filename, run_tests): New functions. - (_initialize_scoped_mmap_selftests): Register selftest. - -2018-08-07 Simon Marchi <simon.marchi@ericsson.com> - - * dwarf2read.c (read_gdb_index_from_section): Rename to... - (read_gdb_index_from_buffer): ... this. Remove section - parameter, add buffer parameter. - (get_gdb_index_contents_ftype, - get_gdb_index_contents_dwz_ftype): New typedefs. - (dwarf2_read_gdb_index): Add callback parameters to get the - index contents. - (get_gdb_index_contents_from_section): New. - (dwarf2_initialize_objfile): Update call to - dwarf2_read_gdb_index. - -2018-08-07 Simon Marchi <simon.marchi@ericsson.com> - - * common/filestuff.h (gdb_fopen_cloexec): New overload. - (gdb_open_cloexec): Likewise. - * nat/linux-osdata.c (command_from_pid): Use string_printf. - (commandline_from_pid): Likewise. - (linux_xfer_osdata_threads): Likewise. - (linux_xfer_osdata_fds): Likewise. - * ada-lang.c (is_package_name): Likewise. - * auxv.c (procfs_xfer_auxv): Likewise. - * breakpoint.c (print_one_breakpoint_location): Use - uiout::field_fmt. - (print_one_catch_solib): Use string_printf. - * coff-pe-read.c (add_pe_exported_sym): Likewise. - (add_pe_forwarded_sym): Likewise. - * dwarf2read.c (create_type_unit_group): Likewise. - (build_error_marker_type): Likewise. - * infcall.c (get_function_name): Likewise. - * valprint.c (print_converted_chars_to_obstack): Likewise. - * xtensa-tdep.c (xtensa_register_type): Likewise. - -2018-08-06 Simon Marchi <simon.marchi@ericsson.com> - - * remote.c (remote_target::download_tracepoint): Fix format - string errors. - -2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * tracefile.c: Include common/byte-vector.h. - (trace_save): Change type of buf to gdb::byte_vector. Initialize - with trace_regblock_size if needed. Update uses of buf. - -2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * tracepoint.h (collection_list) <m_regs_mask>: Change type to - std::vector<unsigned char>. - * tracepoint.c (collection_list::collection_list): Remove - m_regs_mask initializer from initializer list. Resize - m_regs_mask using the largest remote register number. - (collection_list::add_remote_register): Remove size check on - m_regs_mask. Use at to access element. - (collection_list::stringify): Change type of temp_buf to - gdb::char_vector. Update uses of temp_buf. Resize if needed to - stringify the register mask. Use pack_hex_byte for the register - mask. - -2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * tracepoint.h (class collection_list) <add_register>: Remove. - <add_remote_register, add_ax_registers, add_local_register>: - Declare. - <add_memrange>: Add scope parameter. - * tracepoint.c (encode_actions_1): Likewise. - (collection_list::add_register): Rename to ... - (collection_list::add_remote_register): ... this. Update - comment. - (collection_list::add_ax_registers, add_local_register): New - methods. - (collection_list::add_memrange): Add scope parameter. Call - add_local_register instead of add_register. - (finalize_tracepoint_aexpr): New function. - (collection_list::collect_symbol): Update calls to add_memrange. - Call add_local_register instead of add_register. Call - add_ax_registers. Call finalize_tracepoint_aexpr. - (encode_actions_1): Get remote regnos for $reg action. Call - add_remote_register, add_ax_registers, and add_local_register. - Update call to add_memrange. Call finalize_tracepoint_aexpr. - (validate_actionline): Call finalize_tracepoint_aexpr. - -2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE. - Replace array buf with gdb::char_vector buf, of size - get_remote_packet_size (). Replace references to buf and - BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat - and xsnprintf with snprintf. Raise errors if the buffer is too - small. - -2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * remote.c (remote_target::download_tracepoint): Fix the has_more - predicate in the QTDP action list iteration. - -2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> - - * remote.c (remote_target::download_tracepoint): Fix indentation - in for block. - -2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> - - * proc-api.c (_initialize_proc_api): Remove c, unused. - * procfs.c (procfs_init_inferior): Remove signals, unused. - (procfs_target::make_corefile_notes): Remove old_chain, fpregs, - unused. - -2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com> - Andrew Burgess <andrew.burgess@embecosm.com> - - * linux-nat.c (linux_nat_target::follow_fork): Avoid using - 'W_STOPCODE (0)' as this could be ambiguous. - -2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com> - - * ser-tcp.c (net_open): Fix thinko when deciding whether to - disable TCP's Nagle algorithm (use "ai_protocol" instead of - "ai_socktype"). - -2018-08-02 Tom Tromey <tom@tromey.com> - - PR symtab/16842. - * dwarf2read.c (read_func_scope): Set symtab on template parameter - symbols. - (process_structure_scope): Likewise. - -2018-08-02 Xavier Roirand <roirand@adacore.com> - - PR gdb/22629: - * darwin-nat.c (darwin_kill_inferior): Fix handling of - kill inferior. - -2018-08-02 Tom Tromey <tom@tromey.com> - - * darwin-nat.c (find_inferior_task_it, darwin_find_thread) - (darwin_suspend_inferior, darwin_resume_inferior) - (darwin_decode_notify_message, darwin_resume_inferior_threads) - (darwin_check_new_threads): Check result of get_darwin_inferior. - -2018-07-31 Joel Brobecker <brobecker@adacore.com> - - GDB 8.1.1 released. - -2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz> - - * varobj.c (varobj_get_path_expr_parent): Report an error if - parent is a dynamic varobj. - -2018-07-31 Simon Marchi <simon.marchi@ericsson.com> - - * gnulib/aclocal.m4: Re-generate. - * gnulib/config.in: Re-generate. - * gnulib/configure: Re-generate. - * gnulib/import/Makefile.in: Re-generate. - * gnulib/import/m4/gnulib-comp.m4: Re-generate. - * gnulib/import/m4/onceonly.m4: Re-generate. - -2018-07-31 Simon Marchi <simon.marchi@ericsson.com> - - * target-descriptions.c (struct xml_test_tdesc): New. - (xml_tdesc): Change type to std::vector<xml_test_tdesc>. - (record_xml_tdesc): Update. - (maintenance_check_xml_descriptions): Update. - * target-descriptions.h (record_xml_tdesc): Update comment. - -2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com> - - * eval.c (evaluate_subexp_for_sizeof): Check for array type before - checking array bounds are defined. - -2018-07-30 Tom Tromey <tom@tromey.com> - - * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix - irreflexivity violation. - -2018-07-30 Tom Tromey <tom@tromey.com> - - * cli/cli-decode.c (lookup_cmd): Remove lint code. - * value.c (unpack_long): Remove lint code. - * valops.c (value_ind): Remove lint code. - * valarith.c (value_x_binop, value_x_unop, value_equal) - (value_pos): Remove lint code. - -2018-07-28 Tom de Vries <tdevries@suse.de> - - * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type - with undefined upper bound as <optimized out>. - -2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com> - - * gcore.in: Rename variable "name" to "prefix". Expand - "usage" text. - -2018-07-14 Jon Turney <jon.turney@dronecode.org.uk> - - * windows-nat.c (windows_nat_target::create_inferior): Update to - call close() in global namespace. - -2018-07-26 Tom Tromey <tom@tromey.com> - - * dwarf-index-write.c (add_address_entry): Don't add objfile - offsets. - * dbxread.c (find_stab_function): Rename from - find_stab_function_addr. Return a bound_minimal_symbol. - (read_dbx_symtab): Use raw_text_low, raw_text_high. - Don't add objfile offsets. - (end_psymtab): Use raw_text_low, raw_text_high, - MSYMBOL_VALUE_RAW_ADDRESS. - (read_ofile_symtab): Update. - (process_one_symbol): Update. - * dwarf2read.c (create_addrmap_from_index): Don't add objfile - offsets. - (dw2_relocate): Remove. - (dw2_find_pc_sect_symtab): Bias PC by the text offset before - searching addrmap. - (dwarf2_gdb_index_functions, dwarf2_debug_names_functions): - Update. - (process_psymtab_comp_unit_reader, add_partial_symbol) - (add_partial_subprogram, dwarf2_ranges_read): Update. - (load_partial_dies): Update. - (add_address_entry): Don't add objfile offsets. - (dwarf2_build_include_psymtabs): Update. - (create_addrmap_from_aranges): Don't add objfile offsets. - (dw2_find_pc_sect_compunit_symtab): Update. - * mdebugread.c (parse_symbol): Don't add objfile offsets. - (parse_lines): Remove 'pst' parameter, replace with 'textlow'. - Update. - (parse_partial_symbols): Don't add objfile offsets. Use - raw_text_low, raw_text_high. Update. - (handle_psymbol_enumerators, psymtab_to_symtab_1): Update. - * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap - or call 'relocate' quick function. Clear psymbol_map. - * psympriv.h (struct partial_symbol) <address>: Add section - offset. - <set_unrelocated_address>: Rename from set_address. - <raw_text_low, raw_text_high>: New methods. - <text_low, text_high>: Add objfile parameter. - (add_psymbol_to_bcache): Add 'section' parameter. Call - set_unrelocated_address. - * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) - (find_pc_psymbol): Update. - (fixup_psymbol_section, relocate_psymtabs): Remove. - (dump_psymtab, psym_functions): Update. - (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section' - parameter. - (maintenance_info_psymtabs, maintenance_check_psymtabs): Update. - (start_psymtab_common): Update. - * symfile-debug.c (debug_qf_relocate): Remove. - (debug_sym_quick_functions): Update. - * symfile.h (struct quick_symbol_functions) <relocate>: Remove. - * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets. - Update. - -2018-07-26 Tom Tromey <tromey@redhat.com> - - * dbxread.c (end_psymtab): Use text_high_valid and - text_low_valid. - * mdebugread.c (parse_partial_symbols): Use text_low_valid. - (psymtab_to_symtab_1): Use text_high_valid and text_low_valid. - * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>: - Update comment. - <text_low_valid, text_high_valid>: New fields. - <set_text_low, set_text_high>: Update. - * xcoffread.c (scan_xcoff_symtab): Use text_low_valid. - -2018-07-26 Tom Tromey <tom@tromey.com> - - * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): - Update. - * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize - textlow and texthigh fields. - (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs): - Update. - * mdebugread.c (parse_lines, parse_partial_symbols) - (psymtab_to_symtab_1): Update. - * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>: - Rename fields. Update comment. Now private. - <text_low, text_high, set_text_low, set_text_high>: New methods. - * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) - (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab) - (start_psymtab_common, maintenance_info_psymtabs) - (maintenance_check_psymtabs): Update. - * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and - texthigh fields. - (scan_xcoff_symtab): Update. - -2018-07-26 Tom Tromey <tromey@redhat.com> - - * psympriv.h (struct partial_symbol) <unrelocated_address, - address, set_address>: New methods. - * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol) - (fixup_psymbol_section, relocate_psymtabs): Update. - (print_partial_symbols): Add 'objfile' parameter. Update. - (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map): - Update. - -2018-07-26 Tom Tromey <tom@tromey.com> - - * dwarf-index-write.c (write_psymbols, debug_names::insert) - (debug_names::write_psymbols): Update. - * psympriv.h (struct partial_symbol): Derive from - general_symbol_info. - <obj_section>: New method. - (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n - * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) - (find_pc_sect_psymbol, fixup_psymbol_section) - (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs) - (print_partial_symbols, recursively_search_psymtabs) - (compare_psymbols, psymbol_hash, psymbol_compare) - (add_psymbol_to_bcache, maintenance_check_psymtabs) - (psymbol_name_matches, psym_fill_psymbol_map): Update. - -2018-07-26 Tom Tromey <tromey@redhat.com> - - * dbxread.c (end_psymtab): Remove dead code. - -2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com> - - * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if - DWARF unwinders are disabled. - * dwarf2-frame.c: Add dwarf2read.h include. - (dwarf2_frame_sniffer): Exit early if DWARF unwinders are - disabled. - (dwarf2_frame_unwinders_enabled_p): Define. - (show_dwarf_unwinders_enabled_p): New function. - (_initialize_dwarf2_frame): Register switch to control DWARF - unwinder use. - * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare. - * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword. - (show_dwarf_cmdlist): Remove static keyword. - * dwarf2read.h (set_dwarf_cmdlist): Declare. - (show_dwarf_cmdlist): Declare. - * NEWS: Document new feature. - -2018-07-26 Tom de Vries <tdevries@suse.de> - - PR breakpoints/23366 - * infcmd.c (info_program_command): Handle ptid == minus_one_ptid. - -2018-07-26 Tom de Vries <tdevries@suse.de> - - * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or - DW_AT_count can't be translated to a dynamic prop. - -2018-07-25 Tom de Vries <tdevries@suse.de> - - * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in - try/catch. - -2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz> - - * breakpoint.c (enable_disable_bp_num_loc): Notify observers. - -2018-07-25 Joel Brobecker <brobecker@adacore.com> - - * MAINTAINERS (Global Maintainers): Add Tom Tromey. - -2018-07-24 Keith Seitz <keiths@redhat.comt - - PR symtab/23010 - * dwarf2read.c (dw2_add_symbol_to_list): New function. - (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list - instead of add_symbol_to_list. - (read_file_scope): Call prepare_one_comp_unit before reading - any other DIEs. - -2018-07-24 Simon Marchi <simon.marchi@ericsson.com> - - * common/scoped_mmap.h (class scoped_mmap): Fix indentation. - -2018-07-24 Tom Tromey <tom@tromey.com> - - * utils.c (malloc, realloc, free): Don't declare. - * configure, config.in: Rebuild. - * configure.ac: Don't check for declarations of free, malloc, or - realloc. - -2018-07-22 Simon Marchi <simon.marchi@polymtl.ca> - - * aarch64-linux-nat.c - (aarch64_linux_nat_target::stopped_data_address): Remove unused - variable. - * arm-linux-nat.c (fetch_regs): Likewise. - (store_regs): Likewise. - (fetch_vfp_regs): Likewise. - (store_vfp_regs): Likewise. - (arm_linux_nat_target::insert_hw_breakpoint): Likewise. - (arm_linux_nat_target::remove_hw_breakpoint): Likewise. - (arm_linux_nat_target::insert_watchpoint): Likewise. - (arm_linux_nat_target::remove_watchpoint): Likewise. - * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint): - Likewise. - * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): - Likewise. - * ppc-linux-nat.c (fetch_register): Likewise. - (fetch_all_gp_regs): Likewise. - (fetch_ppc_registers): Likewise. - (store_all_gp_regs): Likewise. - (store_ppc_registers): Likewise. - (hwdebug_insert_point): Likewise. - (can_use_watchpoint_cond_accel): Likewise. - * remote-sim.c (gdb_os_write_stdout): Likewise. - -2018-07-22 Simon Marchi <simon.marchi@polymtl.ca> - Tom Tromey <tom@tromey.com> - - * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special - test for it. - * configure: Rebuild. - -2018-07-22 Tom Tromey <tom@tromey.com> - - * regformats/regdat.sh: Define xmltarget_${name} inside - #ifndef IN_PROCESS_AGENT. - -2018-07-22 Tom Tromey <tom@tromey.com> - - * value.c (value_fetch_lazy_bitfield): Remove unused variable. - -2018-07-22 Tom Tromey <tom@tromey.com> - - * symfile.c (reread_symbols): Notify iter, not objfile. - -2018-07-22 Tom Tromey <tom@tromey.com> - - * ravenscar-thread.c (ravenscar_thread_target::store_registers): - Use arch_ops. - (ravenscar_thread_target::prepare_to_store): Likewise. - -2018-07-22 Tom Tromey <tom@tromey.com> - - * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove - unused variable. Call value_fetch_lazy when needed. - * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): - Remove unused variable. Call value_fetch_lazy when needed. - -2018-07-22 Tom Tromey <tom@tromey.com> - - * m32c-tdep.c (mark_dma): Return void. - (make_regs): Remove unused declarations. - -2018-07-22 Tom Tromey <tom@tromey.com> - - * guile/scm-cmd.c (gdbscm_dont_repeat): Call - cmdscm_get_valid_command_smob_arg_unsafe for effect. - * guile/scm-block.c (gdbscm_make_block_syms_iter): Call - bkscm_get_valid_block_smob_arg_unsafe for effect. - -2018-07-22 Tom Tromey <tom@tromey.com> - - * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not - value_type. - -2018-07-22 Tom Tromey <tom@tromey.com> - - * windows-nat.c (saved_context): Conditionally define. - * remote.c (remote_target::remote_btrace_maybe_reopen): - Conditionally declare "warned". - * inflow.c (sigquit_ours): Conditionally define. - (new_tty): Move "tty" declaration inside #if. - * guile/guile.c (guile_datadir): Conditionally define. - * charset.c (set_be_le_names): Move some declarations inside #if. - * btrace.c (parse_xml_btrace): Move "errcode" declaration inside - #if. - (parse_xml_btrace_conf): Likewise. - -2018-07-22 Tom Tromey <tom@tromey.com> - - * spu-tdep.c (spu_get_overlay_table): Remove unused variable. - -2018-07-22 Tom Tromey <tom@tromey.com> - - * guile/scm-value.c (gdbscm_value_call): Remove unused variables. - * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow) - (vlscm_convert_typed_value_from_scheme): Remove unused variable. - * buildsym-legacy.c (get_macro_table): Remove unused variable. - * stack.c (frame_apply_level_command): Remove unused variable. - * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable. - * sparc64-tdep.c (adi_examine_command): Remove unused variable. - * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove - unused variable. - * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable. - * mep-tdep.c (mep_push_dummy_call): Remove unused variable. - * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused - variable. - * amd64-tdep.c (amd64_supply_xsave): Remove unused variable. - * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused - variable. - * breakpoint.c (check_no_tracepoint_commands, update_watchpoint): - Remove unused variable. - * cli/cli-script.c (recurse_read_control_structure): Remove unused - variable. - * common/tdesc.c (print_xml_feature::visit): Remove unused - variable. - * compile/compile-object-load.c (store_regs): Remove unused - variables. - * complaints.c (clear_complaints): Remove unused variable. - * corelow.c (core_target_open): Remove unused variable. - * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused - variable. - * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused - variable. - * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused - variable. - * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused - variable. - * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused - variable. - * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused - variable. - * ia64-tdep.c (examine_prologue): Remove unused variable. - * infcall.c (run_inferior_call): Remove unused variable. - * inferior.c (exit_inferior): Remove unused variable. - * infrun.c (infrun_thread_ptid_changed): Remove unused variable. - * linespec.c (decode_line_2): Remove unused variable. - * linux-nat.c (super_close): Remove. - * linux-tdep.c (linux_info_proc): Remove unused variable. - * mi/mi-main.c (mi_execute_command): Remove unused variable. - * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache): - Remove unused variable. - * parse.c (find_minsym_type_and_address): Remove unused variable. - * printcmd.c (info_symbol_command, printf_floating): Remove unused - variable. - * python/py-breakpoint.c (bppy_set_commands): Remove unused - variable. - * python/py-unwind.c (unwind_infopy_dealloc): Remove unused - variables. - * record-btrace.c (record_btrace_target::store_registers): Remove - unused variable. - (cmd_show_record_btrace_cpu): Remove unused variable. - * riscv-tdep.c (riscv_register_reggroup_p) - (riscv_push_dummy_call, riscv_return_value): Remove unused - variable. - * rust-exp.y (literal): Remove unused variable. - * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove - unused variable. - <STRUCTOP_ANONYMOUS>: Likewise. - * s390-linux-tdep.c (s390_linux_init_abi_31) - (s390_linux_init_abi_64): Remove unused variable. - * ser-ming2.c (ser_windows_read_prim, pipe_select_thread) - (file_select_thread, net_windows_open, _initialize_ser_windows): - Remove unused variables. - * symtab.c (find_pc_sect_line): Remove unused variable. - * target-memory.c (compute_garbled_blocks): Remove unused - variable. - (target_write_memory_blocks): Remove unused variable. - * target.c (target_stack::unpush): Remove unused variables. - * tracepoint.c (start_tracing, all_tracepoint_actions) - (merge_uploaded_trace_state_variables) - (print_one_static_tracepoint_marker): Remove unused variable. - * unittests/basic_string_view/element_access/char/1.cc (test01): - Remove unused variable. - * windows-nat.c (windows_continue, windows_add_all_dlls) - (do_initial_windows_stuff, windows_nat_target::create_inferior): - Remove unused variables. - -2018-07-21 Simon Marchi <simon.marchi@polymtl.ca> - - * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and - attr_profile in HAVE_ELF. - * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in - HAVE_ELF. - -2018-07-20 Simon Marchi <simon.marchi@polymtl.ca> - - * frame.c (frame_register_unwind): Change parameter name. - (frame_unwind_register): Likewise. - (frame_unwind_register_value): Likewise. - (frame_unwind_register_signed): Likewise. - (frame_unwind_register_unsigned): Likewise. - * frame.h (frame_register_unwind): Likewise. - (frame_unwind_register): Likewise. - (frame_unwind_register_value): Likewise. - (frame_unwind_register_signed): Likewise. - (frame_unwind_register_unsigned): Likewise. - (frame_unwind_arch): Likewise. - -2018-07-20 Maciej W. Rozycki <macro@mips.com> - - * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV - ISA maintenance. - -2018-07-20 Maciej W. Rozycki <macro@mips.com> - - * mips-linux-nat.c (mips_linux_nat_target::read_description): - Call `get_ptrace_pid' rather than extracting the ptrace PID by - hand. - -2018-07-20 Keith Seitz <keiths@redhat.com> - - * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles, - m_main_subfile, m_comp_dir, m_producer, m_debugformat, - m_compunit_symtab, m_language>: Add "m_" prefix. - Update all uses. - * buildsym.c: Update all uses. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * buildsym-legacy.h (record_line): Don't use record_line_ftype. - * buildsym.h (record_line_ftype): Remove typedef. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * buildsym-legacy.h (augment_type_symtab): Don't declare. - (end_expandable_symtab): Likewise. - (end_symtab_get_static_block): Likewise. - (end_symtab_from_static_block): Likewise. - * buildsym-legacy.c (augment_type_symtab): Remove. - (end_expandable_symtab): Remove. - (end_symtab_get_static_block): Remove. - (end_symtab_from_static_block): Remove. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * dwarf2read.c: Include buildsym.h. - (struct dwarf2_cu) <builder>: New method. - (fixup_go_packaging): Update. - (process_full_comp_unit, process_full_type_unit): Update. Don't - use scoped_free_pendings. - (using_directives): Add "cu" parameter, remove "language". - (read_import_statement, setup_type_unit_groups, ) - (read_func_scope, read_lexical_block_scope) - (dwarf2_record_block_ranges, read_namespace): Update. - (lnp_state_machine::lnp_state_machine): Add cu parameter. - (lnp_state_machine::handle_end_sequence): Update. - (class lnp_state_machine) <m_cu>: New member. - <m_record_line_callback>: Remove. - <m_currently_recording_lines>: New member. - (lnp_state_machine::handle_set_file): Update. - (noop_record_line): Remove. - (dwarf_record_line_p): Add cu parameter. - (dwarf_record_line_1, dwarf_finish_line): Likewise. - (lnp_state_machine::record_line) - (lnp_state_machine::lnp_state_machine) - (lnp_state_machine::check_line_address, dwarf_decode_lines_1) - (dwarf_decode_lines): Update. - (dwarf2_start_subfile): Add cu parameter. - (dwarf2_start_symtab, new_symbol): Update. - (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter. - Remove dwarf2_per_objfile parameter. - (dwarf_decode_macros): Update. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * stabsread.c (define_symbol): Update. - * buildsym-legacy.h (get_buildsym_compunit): Declare. - * dwarf2read.c (new_symbol): Update. - * cp-support.h (cp_scan_for_anonymous_namespaces): Update. - * cp-namespace.c: Include buildsym.h. - (cp_scan_for_anonymous_namespaces): Add "compunit" parameter. - * buildsym-legacy.c (get_buildsym_compunit): New function. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * xcoffread.c: Include buildsym-legacy.h. - * windows-nat.c: Include buildsym-legacy.h. - * stabsread.c: Include buildsym-legacy.h. - * mdebugread.c: Include buildsym-legacy.h. - * buildsym-legacy.h: New file. - * buildsym-legacy.c: New file, from buildsym.c. - * go32-nat.c: Include buildsym-legacy.h. - * dwarf2read.c: Include buildsym-legacy.h. - * dbxread.c: Include buildsym-legacy.h. - * cp-namespace.c: Include buildsym-legacy.h. - * coffread.c: Include buildsym-legacy.h. - * buildsym.h: Move some contents to buildsym-legacy.h. - * buildsym.c: Include buildsym-legacy.h. Move many functions to - buildsym-legacy.c. - * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * buildsym.h (struct buildsym_compunit): Move from buildsym.c. - * buildsym.c (struct buildsym_compunit): Move to buildsym.h. - (buildsym_compunit::buildsym_compunit) - (buildsym_compunit::~buildsym_compunit) - (buildsym_compunit::get_macro_table): Define. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * buildsym.c (reset_symtab_globals): Remove. - (buildsym_compunit::end_symtab_from_static_block): Update. - (buildsym_compunit::augment_type_symtab): Update. - (end_symtab_from_static_block): Call free_buildsym_compunit. - (augment_type_symtab, end_symtab, end_expandable_symtab): - Likewise. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * arch-utils.c: Do not include buildsym.h. - * mipsread.c: Do not include buildsym.h. - * machoread.c: Do not include buildsym.h. - * elfread.c: Do not include buildsym.h. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * buildsym.c (buildsym_compunit::buildsym_compunit): Do more - initialization. - (buildsym_compunit): Add new constructor. - (struct buildsym_compunit) <get_last_source_file, finish_block, - record_block_range, start_subfile, patch_subfile_names, - push_subfile, pop_subfile, record_line, get_compunit_symtab, - set_last_source_start_addr, get_last_source_start_addr, - get_local_using_directives, set_local_using_directives, - get_global_using_directives, outermost_context_p, - get_current_context_stack, get_context_stack_depth, - get_current_subfile, get_local_symbols, get_file_symbols, - get_global_symbols, record_debugformat, record_producer, - push_context, pop_context, end_symtab_get_static_block, - end_symtab_from_static_block, end_symtab, end_expandable_symtab>: - New public methods. - <record_pending_block, finish_block_internal, make_blockvector, - watch_main_source_file_lossage, end_symtab_with_blockvector>: New - private methods. - Update all users. - -2018-05-22 Tom Tromey <tom@tromey.com> - - * buildsym.c (record_pending_block): Move earlier. Remove objfile - parameter. - (finish_block_internal): Update. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * buildsym.c (record_pending_block): Move earlier. Remove objfile - parameter. - (finish_block_internal): Update. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * buildsym.h (EXTERN): Don't define or undef. - * buildsym.c (EXTERN): Don't define. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * buildsym.c: Remove TODO comment. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * coffread.c (coff_symtab_read): Update. - * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. - (xcoff_new_init): Update. - * mipsread.c (mipscoff_new_init): Update. - * mdebugread.c (mdebug_build_psymtabs): Update. - * elfread.c (elf_new_init): Update. - * dwarf2read.c (process_full_comp_unit, process_full_type_unit): - Update. - * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1) - (coffstab_build_psymtabs, elfstab_build_psymtabs) - (stabsect_build_psymtabs): Update. - * buildsym.h (buildsym_init): Don't declare. - * buildsym.c: Update comment. - (prepare_for_building): Remove. - (start_symtab, restart_symtab): Update. - (reset_symtab_globals): Update comment. - (buildsym_init): Remove. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update. - * stabsread.c (patch_block_stabs, define_symbol, read_type) - (read_enum_type, common_block_start, common_block_end) - (cleanup_undefined_types_1, finish_global_stabs): Update. - * mdebugread.c (psymtab_to_symtab_1): Update. - * dwarf2read.c (fixup_go_packaging, read_func_scope) - (read_lexical_block_scope, new_symbol): Update. - * dbxread.c (process_one_symbol): Update. - * coffread.c (coff_symtab_read, process_coff_symbol) - (coff_read_enum_type): Update. - * buildsym.h (file_symbols, global_symbols, local_symbols): Don't - declare. - (get_local_symbols, get_file_symbols, get_global_symbols): New - functions. - * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and - m_global_symbols. - <m_file_symbols, m_local_symbols, m_global_symbols>: New members. - (~scoped_free_pendings): Update. - (finish_block, prepare_for_building, reset_symtab_globals) - (end_symtab_get_static_block, end_symtab_with_blockvector) - (augment_type_symtab, push_context): Update. - (get_local_symbols, get_file_symbols, get_global_symbols): New - functions. - (buildsym_init): Update. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope. - (process_full_type_unit): Likewise. - (dwarf2_start_symtab): Set list_in_scope. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (process_psymtab_comp_unit_reader) - (build_type_psymtabs_reader): Do not set list_in_scope. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * buildsym.c (free_pendings): Remove. - (add_symbol_to_list, scoped_free_pendings) - (finish_block_internal, buildsym_init): Update. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * xcoffread.c (read_xcoff_symtab): Update. - * dwarf2read.c (read_func_scope, read_lexical_block_scope): - Update. - * dbxread.c (process_one_symbol): Update. - * coffread.c (coff_symtab_read): Update. - * buildsym.h (finish_block): Update. - * buildsym.c (finish_block): Remove "listhead" argument. - (end_symtab_get_static_block): Update. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * buildsym.h (class scoped_free_pendings): Remove constructor. - * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New - method. - <m_pending_block_obstack, m_pending_blocks>: New members. - (pending_block_obstack, pending_blocks): Remove. - (scoped_free_pendings::scoped_free_pendings): Default. - (~scoped_free_pendings): Update. - (free_pending_blocks): Remove. - (finish_block_internal, record_pending_block, make_blockvector) - (end_symtab_get_static_block, augment_type_symtab, push_context) - (buildsym_init): Update. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * buildsym.c (struct buildsym_compunit) <m_pending_addrmap, - m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New - members. - (pending_addrmap, pending_addrmap_obstack) - (pending_addrmap_interesting): Remove. - (scoped_free_pendings, record_block_range, make_blockvector) - (prepare_for_building, reset_symtab_globals, buildsym_init): - Update. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * xcoffread.c (process_linenos): Update. - * stabsread.c (define_symbol, read_type, read_enum_type): Update. - * mdebugread.c (psymtab_to_symtab_1): Update. - * dwarf2read.c (setup_type_unit_groups) - (lnp_state_machine::handle_set_file, dwarf_record_line_p) - (lnp_state_machine::record_line, dwarf_decode_lines): Update. - * dbxread.c (process_one_symbol): Update. - * coffread.c (coff_symtab_read, enter_linenos) - (process_coff_symbol): Update. - * buildsym.h (current_subfile): Don't declare. - (get_current_subfile): Declare. - * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New - member. - (start_subfile, free_buildsym_compunit, push_subfile) - (prepare_for_building, start_symtab): Update. - (get_current_subfile): New function. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * coffread.c (coff_symtab_read): Update. - * xcoffread.c (read_xcoff_symtab): Update. - * dwarf2read.c (new_symbol): Update. - (read_func_scope, read_lexical_block_scope): Update. - * dbxread.c (process_one_symbol): Update. - * buildsym.h (context_stack, context_stack_depth): Don't declare. - (outermost_context_p): Remove macro. - (outermost_context_p, get_current_context_stack) - (get_context_stack_depth): Declare. - (pop_context): Return struct context_stack. - * buildsym.c (struct buildsym_compunit) <m_context_stack: New - member. - (context_stack_size): Remove. - (INITIAL_CONTEXT_STACK_SIZE): Remove. - (prepare_for_building, end_symtab_get_static_block) - (augment_type_symtab, push_context): Update. - (pop_context): Return struct context_stack. - (outermost_context_p, get_current_context_stack) - (get_context_stack_depth): New functions. - (buildsym_init): Update. - -2018-07-20 Tom Tromey <tom@tromey.com> - - * rust-exp.y: Now a pure parser. Update all rules. - (%union): Move earlier. - (current_parser, work_obstack): Remove globals. - (rust_parser, ~rust_parser): Update. - (class rust_parser) <copy_name, concat3, crate_name, super_name, - lex_character, lex_number, lex_string, lex_identifier, - rust_lookup_type, convert_params_to_types, convert_ast_to_type, - convert_name, convert_params_to_expression, - convert_ast_to_expression, ast_basic_type, ast_operation, - ast_compound_assignment, rust_op, ast_literal, ast_dliteral, - ast_structop, ast_structop_anonymous, ast_unary, ast_cast, - ast_call_ish, ast_path, ast_string, ast_struct, ast_range, - ast_array_type, ast_slice_type, ast_reference_type, - ast_pointer_type, ast_function_type, ast_tuple_type>: New methods. - (rust_parse): Update. - (rustyyerror, rustyylex): Add parser parameter. - (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test) - (rust_lex_stringish_test, rust_lex_test_sequence) - (rust_lex_test_trailing_dot, rust_lex_test_completion) - (rust_lex_test_push_back, rust_lex_tests): Update. - -2018-07-19 Pedro Alves <palves@redhat.com> - - * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a - gdb::unique_xmalloc_ptr. - * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): - Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr. - * guile/scm-exception.c (gdbscm_exception_message_to_string): Use - copy-initialization. - * guile/scm-pretty-print.c (ppscm_print_children): Use - gdb::unique_xmalloc_ptr instead of cleanups. - (gdbscm_apply_val_pretty_printer): Remove cleanups. - * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a - gdb::unique_xmalloc_ptr. - * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p): - Adjust to use gdb::unique_xmalloc_ptr. - * guile/scm-utils.c (extract_arg): Adjust. - * guile/scm-value.c (gdbscm_value_field): Adjust to use - gdb::unique_xmalloc_ptr instead of a cleanup. - -2018-07-19 Tom Tromey <tom@tromey.com> - - * utils.c (do_value_free_to_mark) - (make_cleanup_value_free_to_mark): Remove. - * utils.h (make_cleanup_value_free_to_mark): Remove. - -2018-07-19 Pedro Alves <palves@redhat.com> - - * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a - forwarding reference. - -2018-07-18 Pedro Alves <palves@redhat.com> - - * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use - gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a - cleanup. - -2018-07-18 Pedro Alves <palves@redhat.com> - - * guile/guile-internal.h: Add comment about mixing GDB and Scheme - exceptions. - (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete. - (gdbscm_wrap): New. - * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree - directly instead of a cleanup. - * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ... - (vlscm_unop): ... this. Reimplement using gdbscm_wrap. - (vlscm_binop_gdbthrow): New, factored out from ... - (vlscm_binop): ... this. Reimplement using gdbscm_wrap. - (vlscm_rich_compare): Use gdbscm_wrap. - * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly - instead of a cleanup. - (gdbscm_lookup_global_symbol): Use xfree directly instead of a - cleanup. - * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p): - Use xfree directly instead of a cleanup. - * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value): - Adjust to use gdbscm_wrap and scoped_value_mark. - (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap. - (gdbscm_value_address, gdbscm_value_dereference) - (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and - scoped_value_mark. - (gdbscm_value_dynamic_type): Use scoped_value_mark. - (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and - scoped_value_mark. - (gdbscm_value_subscript, gdbscm_value_call): Adjust to use - gdbscm_wrap and scoped_value_mark. - (gdbscm_value_to_string): Use xfree directly instead of a - cleanup. Move 'buffer' unique_ptr to TRY scope. - (gdbscm_value_to_lazy_string): Use xfree directly instead of a - cleanup. Move 'buffer' unique_ptr to TRY scope. Use - scoped_value_mark. - (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap. - (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and - scoped_value_mark. - (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use - gdbscm_wrap. - -2018-07-18 Tom de Vries <tdevries@suse.de> - - * findvar.c (default_read_var_value): Also resolve dynamic type for - LOC_OPTIMIZED_OUT vars. - -2018-07-18 Maciej W. Rozycki <macro@mips.com> - - * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction - decoding. - -2018-07-17 Tom Tromey <tom@tromey.com> - - * guile/scm-param.c (pascm_set_func, pascm_show_func) - (compute_enum_list, pascm_set_param_value_x) - (gdbscm_parameter_value): Update. - * guile/guile-internal.h (gdbscm_scm_to_string): Update. - (gdbscm_scm_to_host_string): Update. - * guile/scm-math.c (vlscm_convert_typed_value_from_scheme): - Update. - * guile/scm-cmd.c (cmdscm_add_completion): Update. - * guile/scm-pretty-print.c (ppscm_print_string_repr): Update. - * guile/scm-string.c (gdbscm_scm_to_string): Return - unique_xmalloc_ptr. - (gdbscm_scm_to_host_string): Likewise. - -2018-07-17 Tom Tromey <tom@tromey.com> - - * guile/guile.c (gdbscm_eval_from_control_command): Update. - * guile/guile-internal.h (gdbscm_safe_eval_string): Update. - * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update. - * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return - unique_xmalloc_ptr. - -2018-07-17 Tom Tromey <tom@tromey.com> - - * guile/scm-param.c (pascm_signal_setshow_error): Update. - * guile/guile-internal.h (gdbscm_exception_message_to_string): - Update. - * guile/scm-cmd.c (cmdscm_function): Update. - * guile/scm-pretty-print.c - (ppscm_print_exception_unless_memory_error): Update. - * guile/scm-exception.c (gdbscm_exception_message_to_string): - Return unique_xmalloc_ptr. - -2018-07-17 Tom Tromey <tom@tromey.com> - - * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception): - Use string_printf. - -2018-07-17 Jim Wilson <jimw@sifive.com> - - * riscv-tdep.c (riscv_has_feature): Delete comment that refers to - set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always. - (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now - unecessary braces after EF_RISCV_RVC test. Delete call to - set_gdbarch_decr_pc_after_break. - - * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of - RISCV_LAST_FP_REGNUM + 1. - (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM. - -2018-07-17 Tom Tromey <tom@tromey.com> - - * configure.ac: Remove --disable-gdbcli. - * configure: Rebuild. - * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS) - (SUBDIR_CLI_CFLAGS): Remove. - (SFILES): Use SUBDIR_CLI_SRCS. - (COMMON_OBS): Use SUBDIR_CLI_OBS. - -2018-07-17 Tom Tromey <tom@tromey.com> - - PR gdb/18624: - * coffread.c (coff_symtab_read): Use scoped_free_pendings. - -2018-07-16 Jim Wilson <jimw@sifive.com> - - * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi. - -2018-07-16 Simon Marchi <simon.marchi@ericsson.com> - - * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused - variable. - (libunwind_frame_sniffer): Likewise. - (libunwind_frame_prev_register): Likewise. - (libunwind_sigtramp_frame_sniffer): Likewise. - * ia64-tdep.c (ia64_access_reg): Likewise. - (ia64_access_rse_reg): Likewise. - (ia64_libunwind_sigtramp_frame_this_id): Likewise. - * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise. - -2018-07-16 Simon Marchi <simon.marchi@ericsson.com> - - * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast. - -2018-07-16 Simon Marchi <simon.marchi@ericsson.com> - - * remote-sim.c (gdbsim_target::close, - gdbsim_target::mourn_inferior): Remove unused variables. - -2018-07-16 Simon Marchi <simon.marchi@polymtl.ca> - - * ia64-tdep.c (ktab_buf): New global. - (getunwind_table): Return a gdb::optional<gdb::byte_vector>. - (get_kernel_table): Adjust. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * xcoffread.c (read_xcoff_symtab): Use outermost_context_p. - * dwarf2read.c (using_directives, new_symbol): Use - outermost_context_p. - * dbxread.c (process_one_symbol): Use outermost_context_p. - * coffread.c (coff_symtab_read): Use outermost_context_p. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (using_directives, read_func_scope) - (read_lexical_block_scope): Update. - * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update. - * buildsym.h (local_using_directives, global_using_directives): - Don't declare. - (get_local_using_directives, set_local_using_directives) - (get_global_using_directives): Declare. - * buildsym.c (struct buildsym_compunit) <m_local_using_directives, - m_global_using_directives>: New members. - (finish_block_internal, prepare_for_building) - (reset_symtab_globals, end_symtab_get_static_block) - (push_context): Update. - (get_local_using_directives, set_local_using_directives) - (get_global_using_directives): New functions. - (buildsym_init): Update. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * xcoffread.c (xcoff_initial_scan): Don't call - free_pending_blocks. - * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks. - * buildsym.h (class scoped_free_pendings): Add constructor. - (free_pending_blocks): Don't declare. - * buildsym.c (scoped_free_pendings::scoped_free_pendings): New. - (free_pending_blocks): Now static. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * buildsym.h (push_subfile, pop_subfile): Update declarations. - * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New - member. - (struct subfile_stack): Remove. - (subfile_stack): Remove. - (push_subfile, pop_subfile, buildsym_init): Update. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * buildsym.c (push_subfile): Use gdb_assert. - (pop_subfile): Use gdb_assert. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * buildsym.h (merge_symbol_lists): Remove. - * buildsym.c (merge_symbol_lists): Remove. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * stabsread.c (scan_file_globals): Update comment. - * stabsread.h (scan_file_globals): Move from buildsym.h. - * buildsym.h (scan_file_globals): Move to stabsread.h. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * xcoffread.c (xcoff_new_init): Update. - * mipsread.c (mipscoff_new_init): Update. - * mdebugread.c (mdebug_build_psymtabs): Update. - * elfread.c (elf_new_init): Update. - * dbxread.c (dbx_new_init, coffstab_build_psymtabs) - (elfstab_build_psymtabs, stabsect_build_psymtabs): Update. - * buildsym.h (buildsym_new_init): Don't declare. - * buildsym.c (buildsym_new_init): Remove. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * stabsread.h (within_function): Move from buildsym.h. - * stabsread.c (start_stabs): Clear within_function. - * coffread.c (coff_start_symtab): Clear within_function. - * buildsym.h (within_function): Move to stabsread.h. - * buildsym.c (prepare_for_building): Update. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * stabsread.h (processing_gcc_compilation): Move from buildsym.h. - * dwarf2read.c (dwarf2_start_symtab): Don't set - processing_gcc_compilation. - * buildsym.h (processing_gcc_compilation): Move to stabsread.h. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text) - (next_symbol_text_func): Move from buildsym.h. - * stabsread.c (hashname): Move from buildsym.c. - * buildsym.h (HASHSIZE, symnum, next_symbol_text) - (next_symbol_text_func, hashname): Move to stabsread.h. - * buildsym.c: Don't include bcache.h - (hashname): Move to stasbread.c. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * buildsym.h (context_stack_size): Don't declare. - * buildsym.c (context_stack_size): New global. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * dbxread.c (processing_acc_compilation): New global. - * buildsym.h (processing_acc_compilation): Don't declare. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * xcoffread.c (aix_process_linenos, complete_symtab): Update. - * dbxread.c (read_ofile_symtab): Update. - * coffread.c (coff_start_symtab, coff_end_symtab): Update. - * buildsym.h (last_source_start_addr): Remove. - (set_last_source_start_addr, get_last_source_start_addr): - Declare. - * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr - parameter. - (struct buildsym_compunit) <m_last_source_start_addr>: New - member. - (prepare_for_building): Remove start_addr parameter. - (start_symtab, restart_symtab, end_symtab_get_static_block) - (end_symtab_with_blockvector): Update. - (set_last_source_start_addr, get_last_source_start_addr): New - functions. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New - member. - (have_line_numbers): Remove. - (record_line, prepare_for_building, end_symtab_get_static_block) - (augment_type_symtab): Update. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * buildsym.c (~buildsym_compunit): Free the macro table. - (struct buildsym_compunit) <get_macro_table, release_macros>: New - methods. - <m_pending_macros>: New member. - (pending_macros): Remove. - (~scoped_free_pendings, get_macro_table, prepare_for_building) - (reset_symtab_globals, end_symtab_get_static_block) - (end_symtab_with_blockvector, augment_type_symtab) - (buildsym_init): Update. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * buildsym.c (buildsym_compunit::buildsym_compunit): Add name - parameter. - (buildsym_compunit::set_last_source_file): New method. - <m_last_source_file>: New member. - (prepare_for_building): Remove "name" parameter. - (start_symtab, restart_symtab, reset_symtab_globals): Update. - (last_source_file): Remove. - (set_last_source_file, get_last_source_file): Update. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * buildsym.c (prepare_for_building): Add assert. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * buildsym.c (~buildsym_compunit): Update. - (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr. - (start_subfile, patch_subfile_names) - (end_symtab_with_blockvector): Update. - -2018-07-16 Tom Tromey <tom@tromey.com> - - * buildsym.c (struct buildsym_compunit): Add constructor, - destructor, initializers. - (start_buildsym_compunit): Remove. - (free_buildsym_compunit): Use "delete". - (start_symtab, restart_symtab): Use "new". - -2018-07-13 Simon Marchi <simon.marchi@polymtl.ca> - - * symfile.c (set_objfile_default_section_offset): Remove struct - keyword. - -2018-07-14 Stafford Horne <shorne@gmail.com> - - * (Responsible Maintainers): Add myself as or1k maintainer. - -2018-07-13 Tom Tromey <tom@tromey.com> - - * symfile.c (set_objfile_default_section_offset): Use extra braces - around initializer. - -2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com> - - * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a - non-branching basr. - -2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add - unittests/cli-utils-selftests.c - * unittests/cli-utils-selftests.c: New file. - -2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * NEWS: Mention new commands. Mention change to 'thread apply'. - -2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * thread.c (thr_try_catch_cmd): New function. - (thread_apply_all_command): Handle qcs flags. - (thread_apply_command): Handle qcs flags. - (taas_command): New function. - (tfaas_command): New function. - (_initialize_thread): Update to setup the new commands 'taas - and 'tfaas'. Change doc string for 'thread apply'. - -2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * stack.c: (trailing_outermost_frame): New function, mostly - extracted from backtrace_command_1. - (leading_innermost_frame): New function. - (backtrace_command_1): Update to call trailing_outermost_frame. - (frame_apply_command_count): New function. - (frame_apply_level_command): New function. - (frame_apply_all_command): New function. - (frame_apply_command): New function. - (faas_command): New function. - (frame_cmd_list): New variable. - (_initialize_stack): Update to setup the new commands 'frame apply' - and 'faas'. - -2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * cli-utils.c (number_or_range_parser::get_number): Only handle - numbers or convenience var as numbers. - (parse_flags): New function. - (parse_flags_qcs): New function. - (number_or_range_parser::finished): Ensure parsing end is detected - before end of string. - * cli-utils.h (parse_flags): New function. - (parse_flags_qcs): New function. - (number_or_range_parser): Remove m_finished bool. - (number_or_range_parser::skip_range): Set m_in_range to false. - -2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com> - - * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building - on Windows. - -2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com> - Jan Kratochvil <jan.kratochvil@redhat.com> - Paul Fertser <fercerpav@gmail.com> - Tsutomu Seki <sekiriki@gmail.com> - Pedro Alves <palves@redhat.com> - - * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add - 'unittests/parse-connection-spec-selftests.c'. - (COMMON_SFILES): Add 'common/netstuff.c'. - (HFILES_NO_SRCDIR): Add 'common/netstuff.h'. - * NEWS (Changes since GDB 8.2): Mention IPv6 support. - * common/netstuff.c: New file. - * common/netstuff.h: New file. - * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'. - (wait_for_connect): Update comment. New parameter - 'gdb::optional<int> sock' instead of 'struct serial *scb'. - Use 'sock' directly instead of 'scb->fd'. - (try_connect): New function, with code from 'net_open'. - (net_open): Rewrite main loop to deal with multiple - sockets/addresses. Handle IPv6-style hostnames; implement - support for IPv6 connections. - * unittests/parse-connection-spec-selftests.c: New file. - -2018-07-11 Pedro Alves <palves@redhat.com> - - PR gdb/23377 - * remote.c (remote_target::remote_detach_pid): Call - set_current_process. - -2018-07-11 Pedro Alves <palves@redhat.com> - - * h8300-tdep.c (h8300_gdbarch_init): Remove - set_gdbarch_ecoff_reg_to_regnum calls. - -2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com> - - PR c++/23373 - * c-typeprint.c (c_type_print_base_struct_union): Don't print - offsets/sizes for static members of a class/struct. - -2018-07-11 Alan Hayward <alan.hayward@arm.com> - - * target-descriptions.c (tdesc_register_bitsize): Rename. - * target-descriptions.h (tdesc_register_bitsize): Likewise. - * rs6000-tdep.c (rs6000_gdbarch_init): Use new name. - * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size. - -2018-07-10 Tom Tromey <tom@tromey.com> - - * breakpoint.c (moribund_locations): Now static and a - std::vector. - (breakpoint_init_inferior, moribund_breakpoint_here_p) - (build_bpstat_chain, update_global_location_list) - (breakpoint_retire_moribund): Update. - * breakpoint.h (bp_location_p): Remove typedef. Don't declare - VEC. - -2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_is_fp_regno_p): New function. - (riscv_register_reggroup_p): Use new function, remove unneeded - parenthesis. - (riscv_push_dummy_call): Extend assert to compare against xlen or - flen based on register type. - -2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME. - -2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com> - - * remote.c (show_hardware_watchpoint_limit): New function. - (show_hardware_watchpoint_length_limit): New function. - (show_hardware_breakpoint_limit): New function. - (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd - where appropriate, update help text. - -2018-07-09 Tom Tromey <tom@tromey.com> - - * Makefile.in (CDEPS): Don't mention XM_CDEPS. - (CLIBS): Don't mention NAT_CLIBS. - -2018-07-09 Tom Tromey <tom@tromey.com> - - * Makefile.in (ADD_FILES, ADD_DEPS): Remove. - (LIBGDB_OBS, clean mostlyclean): Update. - (gdb$(EXEEXT), insight$(EXEEXT)): Update. - -2018-07-09 Tom Tromey <tom@tromey.com> - - * Makefile.in (%.c: %.y): Use ECHO_YACC. - (%.c: %.l): Use ECHO_LEX. Just fail if flex not available. - * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables. - -2018-07-09 Tom Tromey <tom@tromey.com> - - * Makefile.in (ALLDEPFILES): Remove exec.c. - (COMMON_OBS): Remove exec.o. - (COMMON_SFILES): Add exec.c. - -2018-07-09 Tom Tromey <tom@tromey.com> - - * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove. - -2018-07-09 Tom Tromey <tom@tromey.com> - - * Makefile.in (clean mostlyclean): Remove stamp-version. - (version.c): Depend on stamp-version. - (stamp-version): New rule, from version.c rule. - -2018-07-09 Tom Tromey <tom@tromey.com> - - * Makefile.in (init.c): Depend on stamp-init. - (stamp-init): New rule, from init.c rule. - (clean mostlyclean): Remove stamp-init. - -2018-07-09 Tom Tromey <tom@tromey.com> - - * Makefile.in (INIT_FILES): Remove CONFIG_SRCS, - SUBDIR_GCC_COMPILE_SRCS. - -2018-07-09 Tom Tromey <tom@tromey.com> - - * Makefile.in (init.c): Remove some unused sed rules. - -2018-07-09 Tom Tromey <tom@tromey.com> - - * Makefile.in (TSOBS): Remove. - (INIT_FILES): Update. - (LIBGDB_OBS): Update. - (COMMON_SFILES): Add inflow.c. - (SFILES): Remove inflow.c. - -2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> - - * contrib/gdb-add-index.sh ($dwarf5): New, use it. - -2018-07-07 Simon Marchi <simon.marchi@polymtl.ca> - - * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name, - get_saveloc_name, is_signal_frame_name, step_name, - init_remote_name, create_addr_space_name, - destroy_addr_space_name, search_unwind_table_name, - find_dyn_list_name): Constify. - -2018-07-05 Simon Marchi <simon.marchi@polymtl.ca> - - * darwin-nat.c (darwin_pthread_kill): New function. - (darwin_resume_thread): Use darwin_pthread_kill. - -2018-07-05 Tom de Vries <tdevries@suse.de> - - * macroexp.c (macro_buffer) <operator=>: New member function. - -2018-07-04 Tom Tromey <tom@tromey.com> - - * darwin-nat.c (darwin_attach_pid): Use exit_inferior. - -2018-07-04 Simon Marchi <simon.marchi@polymtl.ca> - - * common/common-defs.h (HAVE_USEFUL_SBRK): Define. - * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK. - * maint.c: Likewise. - * top.c: Likewise. - -2018-07-04 Joel Brobecker <brobecker@adacore.com> - - * NEWS: Create a new section for the next release branch. - Rename the section of the current branch, now that it has - been cut. - -2018-07-04 Joel Brobecker <brobecker@adacore.com> - - GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e): - * version.in: Bump version to 8.2.50.DATE-git. - -2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com> - Pedro Alves <palves@redhat.com> - - * linux-nat.c (linux_init_ptrace): Rename to ... - (linux_init_ptrace_procfs): ... this. Call - linux_proc_init_warnings. - (linux_nat_target::post_attach) - (linux_nat_target::post_startup_inferior): Adjust. - * nat/linux-procfs.c (linux_proc_init_warnings): Define function. - * nat/linux-procfs.h (linux_proc_init_warnings): Declare function. - -2018-07-04 Tom de Vries <tdevries@suse.de> - - * dwarf2read.c (error_check_comp_unit_head): Move dwarf version - check ... - (read_comp_unit_head): ... here. - -2018-07-03 Tom Tromey <tom@tromey.com> - - * tracepoint.c (process_tracepoint_on_disconnect, start_tracing) - (stop_tracing, tstatus_command) - (find_matching_tracepoint_location, merge_uploaded_tracepoints) - (print_one_static_tracepoint_marker): Update. - * breakpoint.c (static_tracepoints_here, all_tracepoints): Return - std::vector. - * breakpoint.h (breakpoint_p): Remove typedef. Don't declare - VEC. - (all_tracepoints, static_tracepoints_here): Return std::vector. - -2018-07-03 Tom Tromey <tom@tromey.com> - - * common/ptid.c (ptid_equal): Remove. - * common/ptid.h (ptid_equal): Don't declare. - * ada-tasks.c: Update. - * breakpoint.c: Update. - * common/agent.c: Update. - * corelow.c: Update. - * darwin-nat-info.c: Update. - * darwin-nat.c: Update. - * dcache.c: Update. - * dtrace-probe.c: Update. - * dummy-frame.c: Update. - * fbsd-nat.c: Update. - * frame.c: Update. - * gdbthread.h: Update. - * gnu-nat.c: Update. - * go32-nat.c: Update. - * inf-loop.c: Update. - * inf-ptrace.c: Update. - * infcall.c: Update. - * infcmd.c: Update. - * inflow.c: Update. - * infrun.c: Update. - * linux-fork.c: Update. - * linux-nat.c: Update. - * linux-thread-db.c: Update. - * mi/mi-cmd-var.c: Update. - * mi/mi-interp.c: Update. - * mi/mi-main.c: Update. - * nto-procfs.c: Update. - * ppc-linux-tdep.c: Update. - * procfs.c: Update. - * python/py-inferior.c: Update. - * python/py-record-btrace.c: Update. - * python/py-record.c: Update. - * ravenscar-thread.c: Update. - * regcache.c: Update. - * remote-sim.c: Update. - * remote.c: Update. - * sol-thread.c: Update. - * solib.c: Update. - * target.c: Update. - * tui/tui-stack.c: Update. - * varobj.c: Update. - * windows-nat.c: Update. - * windows-tdep.c: Update. - -2018-07-03 Tom Tromey <tom@tromey.com> - - * common/ptid.c (ptid_match): Remove. - * common/ptid.h (ptid_match): Don't declare. - * fbsd-nat.c: Update. - * infcmd.c: Update. - * infrun.c: Update. - * linux-nat.c: Update. - * record-btrace.c: Update. - * regcache.c: Update. - * remote.c: Update. - -2018-07-03 Tom Tromey <tom@tromey.com> - - * common/ptid.c (ptid_tid_p): Remove. - * common/ptid.h (ptid_tid_p): Don't declare. - * sol-thread.c: Update. - -2018-07-03 Tom Tromey <tom@tromey.com> - - * common/ptid.c (ptid_lwp_p): Remove. - * common/ptid.h (ptid_lwp_p): Don't declare. - * fbsd-nat.c: Update. - * linux-nat.c: Update. - * nat/linux-procfs.c: Update. - * nat/x86-linux-dregs.c: Update. - * sol-thread.c: Update. - -2018-07-03 Tom Tromey <tom@tromey.com> - - * common/ptid.c (ptid_is_pid): Remove. - * common/ptid.h (ptid_is_pid): Don't declare. - * infrun.c: Update. - * linux-nat.c: Update. - * mi/mi-interp.c: Update. - * remote.c: Update. - * thread.c: Update. - -2018-07-03 Tom Tromey <tom@tromey.com> - - * common/ptid.c (ptid_get_tid): Remove. - * common/ptid.h (ptid_get_tid): Don't declare. - * ada-tasks.c: Update. - * aix-thread.c: Update. - * bsd-uthread.c: Update. - * darwin-nat.c: Update. - * fbsd-nat.c: Update. - * i386-darwin-nat.c: Update. - * infrun.c: Update. - * linux-tdep.c: Update. - * nto-procfs.c: Update. - * ppc-ravenscar-thread.c: Update. - * python/py-infthread.c: Update. - * ravenscar-thread.c: Update. - * sol-thread.c: Update. - * sparc-ravenscar-thread.c: Update. - * windows-nat.c: Update. - -2018-07-03 Tom Tromey <tom@tromey.com> - - * common/ptid.c (ptid_get_lwp): Remove. - * common/ptid.h (ptid_get_lwp): Don't declare. - * aarch64-linux-nat.c: Update. - * ada-tasks.c: Update. - * aix-thread.c: Update. - * amd64-linux-nat.c: Update. - * arm-linux-nat.c: Update. - * corelow.c: Update. - * fbsd-nat.c: Update. - * fbsd-tdep.c: Update. - * gnu-nat.c: Update. - * i386-cygwin-tdep.c: Update. - * i386-gnu-nat.c: Update. - * i386-linux-nat.c: Update. - * ia64-linux-nat.c: Update. - * inf-ptrace.c: Update. - * infrun.c: Update. - * linux-fork.c: Update. - * linux-nat.c: Update. - * linux-tdep.c: Update. - * linux-thread-db.c: Update. - * mips-linux-nat.c: Update. - * nat/aarch64-linux-hw-point.c: Update. - * nat/aarch64-linux.c: Update. - * nat/linux-btrace.c: Update. - * nat/linux-osdata.c: Update. - * nat/linux-procfs.c: Update. - * nat/x86-linux-dregs.c: Update. - * obsd-nat.c: Update. - * ppc-fbsd-nat.c: Update. - * ppc-linux-nat.c: Update. - * procfs.c: Update. - * python/py-infthread.c: Update. - * ravenscar-thread.c: Update. - * remote.c: Update. - * s390-linux-nat.c: Update. - * sol-thread.c: Update. - * sol2-tdep.c: Update. - * spu-linux-nat.c: Update. - * x86-linux-nat.c: Update. - * xtensa-linux-nat.c: Update. - -2018-07-03 Tom Tromey <tom@tromey.com> - - * common/ptid.c (ptid_get_pid): Remove. - * common/ptid.h (ptid_get_pid): Don't declare. - * aarch64-linux-nat.c: Update. - * ada-lang.c: Update. - * aix-thread.c: Update. - * alpha-bsd-nat.c: Update. - * amd64-fbsd-nat.c: Update. - * amd64-linux-nat.c: Update. - * arm-linux-nat.c: Update. - * arm-nbsd-nat.c: Update. - * auxv.c: Update. - * break-catch-syscall.c: Update. - * breakpoint.c: Update. - * bsd-uthread.c: Update. - * corelow.c: Update. - * ctf.c: Update. - * darwin-nat.c: Update. - * fbsd-nat.c: Update. - * fbsd-tdep.c: Update. - * gcore.c: Update. - * gnu-nat.c: Update. - * hppa-nbsd-nat.c: Update. - * hppa-obsd-nat.c: Update. - * i386-fbsd-nat.c: Update. - * ia64-linux-nat.c: Update. - * inf-ptrace.c: Update. - * infcmd.c: Update. - * inferior.c: Update. - * inferior.h: Update. - * inflow.c: Update. - * infrun.c: Update. - * linux-fork.c: Update. - * linux-nat.c: Update. - * linux-tdep.c: Update. - * linux-thread-db.c: Update. - * m68k-bsd-nat.c: Update. - * mi/mi-interp.c: Update. - * mi/mi-main.c: Update. - * mips-linux-nat.c: Update. - * mips-nbsd-nat.c: Update. - * mips64-obsd-nat.c: Update. - * nat/aarch64-linux-hw-point.c: Update. - * nat/aarch64-linux.c: Update. - * nat/linux-btrace.c: Update. - * nat/linux-osdata.c: Update. - * nat/linux-procfs.c: Update. - * nat/x86-linux-dregs.c: Update. - * nto-procfs.c: Update. - * obsd-nat.c: Update. - * ppc-linux-nat.c: Update. - * ppc-nbsd-nat.c: Update. - * ppc-obsd-nat.c: Update. - * proc-service.c: Update. - * procfs.c: Update. - * python/py-inferior.c: Update. - * python/py-infthread.c: Update. - * ravenscar-thread.c: Update. - * record.c: Update. - * remote-sim.c: Update. - * remote.c: Update. - * rs6000-nat.c: Update. - * s390-linux-nat.c: Update. - * sh-nbsd-nat.c: Update. - * sol-thread.c: Update. - * sparc-nat.c: Update. - * sparc64-tdep.c: Update. - * spu-linux-nat.c: Update. - * spu-tdep.c: Update. - * target-debug.h: Update. - * target.c: Update. - * thread.c: Update. - * tid-parse.c: Update. - * tracefile-tfile.c: Update. - * vax-bsd-nat.c: Update. - * windows-nat.c: Update. - * x86-linux-nat.c: Update. - * x86-nat.c: Update. - -2018-07-03 Tom Tromey <tom@tromey.com> - - * common/ptid.c (pid_to_ptid): Remove. - * common/ptid.h (pid_to_ptid): Don't declare. - * aix-thread.c: Update. - * arm-linux-nat.c: Update. - * common/ptid.c: Update. - * common/ptid.h: Update. - * corelow.c: Update. - * ctf.c: Update. - * darwin-nat.c: Update. - * fbsd-nat.c: Update. - * fork-child.c: Update. - * gnu-nat.c: Update. - * go32-nat.c: Update. - * inf-ptrace.c: Update. - * infcmd.c: Update. - * inferior.c: Update. - * infrun.c: Update. - * linux-fork.c: Update. - * linux-nat.c: Update. - * nat/aarch64-linux-hw-point.c: Update. - * nat/fork-inferior.c: Update. - * nat/x86-linux-dregs.c: Update. - * nto-procfs.c: Update. - * obsd-nat.c: Update. - * procfs.c: Update. - * progspace.c: Update. - * remote.c: Update. - * rs6000-nat.c: Update. - * s390-linux-nat.c: Update. - * sol-thread.c: Update. - * spu-linux-nat.c: Update. - * target.c: Update. - * top.c: Update. - * tracefile-tfile.c: Update. - * windows-nat.c: Update. - -2018-07-03 Tom Tromey <tom@tromey.com> - - * common/ptid.h (ptid_build): Don't declare. - * common/ptid.c (ptid_build): Remove. - * aix-thread.c: Update. - * bsd-kvm.c: Update. - * bsd-uthread.c: Update. - * common/agent.c: Update. - * common/ptid.c: Update. - * common/ptid.h: Update. - * corelow.c: Update. - * darwin-nat.c: Update. - * fbsd-nat.c: Update. - * gnu-nat.c: Update. - * linux-fork.c: Update. - * linux-nat.c: Update. - * linux-thread-db.c: Update. - * nat/linux-osdata.c: Update. - * nat/linux-procfs.c: Update. - * nto-procfs.c: Update. - * obsd-nat.c: Update. - * proc-service.c: Update. - * procfs.c: Update. - * ravenscar-thread.c: Update. - * remote-sim.c: Update. - * remote.c: Update. - * sol-thread.c: Update. - * target.c: Update. - * windows-nat.c: Update. - -2018-07-03 Tom Tromey <tom@tromey.com> - - * infrun.c (follow_exec): Use exit_inferior_silent. - * inferior.c (exit_inferior_num_silent): Remove. - * inferior.h (exit_inferior_num_silent): Don't declare. - -2018-07-03 Tom Tromey <tom@tromey.com> - - PR cli/23340: - * darwin-nat.c (darwin_attach_pid): Reset inferior and - inferior_ptid on error. - -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 - * dwarf2read.c (lnp_state_machine::check_line_address): Update - declaration. - (dwarf_decode_lines_1): Adjust. - -2018-06-27 Simon Marchi <simon.marchi@ericsson.com> - - * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add - override. - <info_proc>: Likewise. - -2018-06-26 Joel Brobecker <brobecker@adacore.com> - - * windows-nat.c (do_windows_fetch_inferior_registers): Rename - to windows_fetch_one_register, and only handle the case of - fetching one register. Move the code that reloads the context - and iterates over all registers if R is negative to... - (windows_nat_target::fetch_registers): ... here. - (do_windows_store_inferior_registers): Rename to - windows_store_one_register, and only handle the case of storing - one register. Move the code that handles the case where r is - negative to... - (windows_nat_target::store_registers) ... here. - -2018-06-26 Tom Tromey <tom@tromey.com> - - PR rust/22574: - * typeprint.c (whatis_exp): Allow ptype/o for Rust. - * rust-lang.c (rust_print_struct_def): Add podata parameter. - Update. - (rust_internal_print_type): Add podata parameter. - (rust_print_type): Update. - -2018-06-26 Tom Tromey <tom@tromey.com> - - * typeprint.h (struct print_offset_data) <update, finish, - maybe_print_hole>: New methods. - <indentation>: New constant. - * typeprint.c (print_offset_data::indentation): Define. - (print_offset_data::maybe_print_hole, print_offset_data::update) - (print_offset_data::finish): Move from c-typeprint.c and rename. - * c-typeprint.c (OFFSET_SPC_LEN): Remove. - (print_spaces_filtered_with_print_options): Update. - (c_print_type_union_field_offset, maybe_print_hole) - (c_print_type_struct_field_offset): Move to typeprint.c and - rename. - (c_type_print_base_struct_union): Update. - -2018-06-25 Pedro Alves <palves@redhat.com> - - * gdbthread.h (thread_info_ref, delete_thread) - (delete_thread_silent, first_thread_of_inferior) - (any_thread_of_inferior, switch_to_thread) - (enable_thread_stack_temporaries) - (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) - (get_last_thread_stack_temporary) - (value_in_thread_stack_temporaries, can_access_registers_thread): - Spell out "struct thread_info" instead of just "thread_info". - * inferior.h (notice_new_inferior): Likewise. - -2018-06-25 Pedro Alves <palves@redhat.com> - - * windows-nat.c (windows_delete_thread): Use find_thread_ptid and - pass thread_info pointer to delete_thread. - (windows_nat_target::detach): Pass inferior pointer to - detach_inferior. - * aix-thread.c (sync_threadlists): Pass thread_info pointer to - delete_thread. - * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors. - * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid - and pass a thread_info pointer to delete_thread. - * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and - pass thread_info pointer to delete_thread. - * go32-nat.c (go32_nat_target::mourn_inferior): Remove - delete_thread_silent call. - * procfs.c (procfs_target::detach): Pass inferior pointer to - detach_inferior. - (procfs_target::wait): Pass thread_info pointer to delete_thread. - * remote-sim.c (gdbsim_target::mourn_inferior): Remove - delete_thread_silent call. - * windows-nat.c (windows_delete_thread): Use find_thread_ptid and - pass thread_info pointer to delete_thread. - (windows_nat_target::detach): Pass inferior pointer to - delete_inferior. - -2018-06-22 Alan Hayward <alan.hayward@arm.com> - - * regcache.c (readable_regcache::read_part): Fix asserts. - (reg_buffer::raw_collect_part): New function. - (regcache::write_part): Fix asserts. - (reg_buffer::raw_supply_part): New function. - (regcache::transfer_regset_register): New helper function. - (regcache::transfer_regset): Call new functions. - (regcache_supply_regset): Use gdb_byte*. - (regcache::supply_regset): Likewise. - (regcache_collect_regset): Likewise. - (regcache::collect_regset): Likewise. - * regcache.h (reg_buffer::raw_collect_part): New declaration. - (reg_buffer::raw_supply_part): Likewise. - (regcache::transfer_regset_register): Likewise. - (regcache::transfer_regset): Use gdb_byte*. - -2018-06-22 Alan Hayward <alan.hayward@arm.com> - - * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &. - -2018-06-21 Pedro Alves <palves@redhat.com> - - * ada-lang.h (ada_get_task_number): Take a thread_info pointer - instead of a ptid_t. All callers adjusted. - * ada-tasks.c (ada_get_task_number): Likewise. All callers - adjusted. - (print_ada_task_info, display_current_task_id, task_command_1): - Adjust. - * breakpoint.c (watchpoint_in_thread_scope): Adjust to use - inferior_thread. - (breakpoint_kind): Adjust. - (remove_breakpoints_pid): Rename to ... - (remove_breakpoints_inf): ... this. Adjust to take an inferior - pointer. All callers adjusted. - (bpstat_clear_actions): Use inferior_thread. - (get_bpstat_thread): New. - (bpstat_do_actions): Use it. - (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust - to take a thread_info pointer. All callers adjusted. - (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint) - (breakpoint_re_set_thread): Use inferior_thread. - * breakpoint.h (struct inferior): Forward declare. - (bpstat_stop_status): Update. - (remove_breakpoints_pid): Delete. - (remove_breakpoints_inf): New. - * bsd-uthread.c (bsd_uthread_target::wait) - (bsd_uthread_target::update_thread_list): Use find_thread_ptid. - * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch) - (maint_btrace_packet_history_cmd) - (maint_btrace_clear_packet_history_cmd): Adjust. - (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use - inferior_thread. - * cli/cli-interp.c: Include "inferior.h". - * common/refcounted-object.h (struct - refcounted_object_ref_policy): New. - * compile/compile-object-load.c: Include gdbthread.h. - (store_regs): Use inferior_thread. - * corelow.c (core_target::close): Use current_inferior. - (core_target_open): Adjust to use first_thread_of_inferior and use - the current inferior. - * ctf.c (ctf_target::close): Adjust to use current_inferior. - * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ... - <thread>: ... this new field. All references adjusted. - (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor): - Take a thread_info pointer instead of a ptid_t. - * dummy-frame.h (dummy_frame_push, dummy_frame_pop) - (dummy_frame_discard, register_dummy_frame_dtor): Take a - thread_info pointer instead of a ptid_t. - * elfread.c: Include "inferior.h". - (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): - Use inferior_thread. - * eval.c (evaluate_subexp): Likewise. - * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use - inferior_thread. - * gdb_proc_service.h (struct thread_info): Forward declare. - (struct ps_prochandle) <ptid>: Delete, replaced by ... - <thread>: ... this new field. All references adjusted. - * gdbarch.h, gdbarch.c: Regenerate. - * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a - 'thread' parameter. All implementations and callers adjusted. - * gdbthread.h (thread_info) <set_running>: New method. - (delete_thread, delete_thread_silent): Take a thread_info pointer - instead of a ptid. - (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete. - (first_thread_of_process): Delete, replaced by ... - (first_thread_of_inferior): ... this new function. All callers - adjusted. - (any_live_thread_of_process): Delete, replaced by ... - (any_live_thread_of_inferior): ... this new function. All callers - adjusted. - (switch_to_thread, switch_to_no_thread): Declare. - (is_executing): Delete. - (enable_thread_stack_temporaries): Update comment. - <enable_thread_stack_temporaries>: Take a thread_info pointer - instead of a ptid_t. Incref the thread. - <~enable_thread_stack_temporaries>: Decref the thread. - <m_ptid>: Delete - <m_thr>: New. - (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) - (get_last_thread_stack_temporary) - (value_in_thread_stack_temporaries, can_access_registers_thread): - Take a thread_info pointer instead of a ptid_t. All callers - adjusted. - * infcall.c (get_call_return_value): Use inferior_thread. - (run_inferior_call): Work with thread pointers instead of ptid_t. - (call_function_by_hand_dummy): Work with thread pointers instead - of ptid_t. Use thread_info_ref. - * infcmd.c (proceed_thread_callback): Access thread's state - directly. - (ensure_valid_thread, ensure_not_running): Use inferior_thread, - access thread's state directly. - (continue_command): Use inferior_thread. - (info_program_command): Use find_thread_ptid and access thread - state directly. - (proceed_after_attach_callback): Use thread state directly. - (notice_new_inferior): Take a thread_info pointer instead of a - ptid_t. All callers adjusted. - (exit_inferior): Take an inferior pointer instead of a pid. All - callers adjusted. - (exit_inferior_silent): New. - (detach_inferior): Delete. - (valid_gdb_inferior_id, pid_to_gdb_inferior_id) - (gdb_inferior_id_to_pid, in_inferior_list): Delete. - (detach_inferior_command, kill_inferior_command): Use - find_inferior_id instead of valid_gdb_inferior_id and - gdb_inferior_id_to_pid. - (inferior_command): Use inferior and thread pointers. - * inferior.h (struct thread_info): Forward declare. - (notice_new_inferior): Take a thread_info pointer instead of a - ptid_t. All callers adjusted. - (detach_inferior): Delete declaration. - (exit_inferior, exit_inferior_silent): Take an inferior pointer - instead of a pid. All callers adjusted. - (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list) - (valid_gdb_inferior_id): Delete. - * infrun.c (follow_fork_inferior, proceed_after_vfork_done) - (handle_vfork_child_exec_or_exit, follow_exec): Adjust. - (struct displaced_step_inferior_state) <pid>: Delete, replaced by - ... - <inf>: ... this new field. - <step_ptid>: Delete, replaced by ... - <step_thread>: ... this new field. - (get_displaced_stepping_state): Take an inferior pointer instead - of a pid. All callers adjusted. - (displaced_step_in_progress_any_inferior): Adjust. - (displaced_step_in_progress_thread): Take a thread pointer instead - of a ptid_t. All callers adjusted. - (displaced_step_in_progress, add_displaced_stepping_state): Take - an inferior pointer instead of a pid. All callers adjusted. - (get_displaced_step_closure_by_addr): Adjust. - (remove_displaced_stepping_state): Take an inferior pointer - instead of a pid. All callers adjusted. - (displaced_step_prepare_throw, displaced_step_prepare) - (displaced_step_fixup): Take a thread pointer instead of a ptid_t. - All callers adjusted. - (start_step_over): Adjust. - (infrun_thread_ptid_changed): Remove bit updating ptids in the - displaced step queue. - (do_target_resume): Adjust. - (fetch_inferior_event): Use inferior_thread. - (context_switch, get_inferior_stop_soon): Take an - execution_control_state pointer instead of a ptid_t. All callers - adjusted. - (switch_to_thread_cleanup): Delete. - (stop_all_threads): Use scoped_restore_current_thread. - * inline-frame.c: Include "gdbthread.h". - (inline_state) <inline_state>: Take a thread pointer instead of a - ptid_t. All callers adjusted. - <ptid>: Delete, replaced by ... - <thread>: ... this new field. - (find_inline_frame_state): Take a thread pointer instead of a - ptid_t. All callers adjusted. - (skip_inline_frames, step_into_inline_frame) - (inline_skipped_frames, inline_skipped_symbol): Take a thread - pointer instead of a ptid_t. All callers adjusted. - * inline-frame.h (skip_inline_frames, step_into_inline_frame) - (inline_skipped_frames, inline_skipped_symbol): Likewise. - * linux-fork.c (delete_checkpoint_command): Adjust to use thread - pointers directly. - * linux-nat.c (get_detach_signal): Likewise. - * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter. - (thread_db_notice_clone): Adjust. - (thread_db_find_new_threads_silently) - (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take - a thread pointer instead of a ptid_t. All callers adjusted. - * mi/mi-cmd-var.c: Include "inferior.h". - (mi_cmd_var_update_iter): Update to use thread pointers. - * mi/mi-interp.c (mi_new_thread): Update to use the thread's - inferior directly. - (mi_output_running_pid, mi_inferior_count): Delete, bits factored - out to ... - (mi_output_running): ... this new function. - (mi_on_resume_1): Adjust to use it. - (mi_user_selected_context_changed): Adjust to use inferior_thread. - * mi/mi-main.c (proceed_thread): Adjust to use thread pointers - directly. - (interrupt_thread_callback): : Adjust to use thread and inferior - pointers. - * proc-service.c: Include "gdbthread.h". - (ps_pglobal_lookup): Adjust to use the thread's inferior directly. - * progspace-and-thread.c: Include "inferior.h". - * progspace.c: Include "inferior.h". - * python/py-exitedevent.c (create_exited_event_object): Adjust to - hold a reference to an inferior_object. - * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use - inferior_thread. - * python/py-inferior.c (struct inferior_object): Give the type a - tag name instead of a typedef. - (python_on_normal_stop): No need to check if the current thread is - listed. - (inferior_to_inferior_object): Change return type to - inferior_object. All callers adjusted. - (find_thread_object): Delete, bits factored out to ... - (thread_to_thread_object): ... this new function. - * python/py-infthread.c (create_thread_object): Use - inferior_to_inferior_object. - (thpy_is_stopped): Use thread pointer directly. - (gdbpy_selected_thread): Use inferior_thread. - * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete - field, replaced with ... - <thread>: ... this new field. All users adjusted. - (btpy_insn_or_gap_new): Drop const. - (btpy_list_new): Take a thread pointer instead of a ptid_t. All - callers adjusted. - * python/py-record.c: Include "gdbthread.h". - (recpy_insn_new, recpy_func_new): Take a thread pointer instead of - a ptid_t. All callers adjusted. - (gdbpy_current_recording): Use inferior_thread. - * python/py-record.h (recpy_record_object) <ptid>: Delete - field, replaced with ... - <thread>: ... this new field. All users adjusted. - (recpy_element_object) <ptid>: Delete - field, replaced with ... - <thread>: ... this new field. All users adjusted. - (recpy_insn_new, recpy_func_new): Take a thread pointer instead of - a ptid_t. All callers adjusted. - * python/py-threadevent.c: Include "gdbthread.h". - (get_event_thread): Use thread_to_thread_object. - * python/python-internal.h (struct inferior_object): Forward - declare. - (find_thread_object, find_inferior_object): Delete declarations. - (thread_to_thread_object, inferior_to_inferior_object): New - declarations. - * record-btrace.c: Include "inferior.h". - (require_btrace_thread): Use inferior_thread. - (record_btrace_frame_sniffer) - (record_btrace_tailcall_frame_sniffer): Use inferior_thread. - (get_thread_current_frame): Use scoped_restore_current_thread and - switch_to_thread. - (get_thread_current_frame): Use thread pointer directly. - (record_btrace_replay_at_breakpoint): Use thread's inferior - pointer directly. - * record-full.c: Include "inferior.h". - * regcache.c: Include "gdbthread.h". - (get_thread_arch_regcache): Use the inferior's address space - directly. - (get_thread_regcache, registers_changed_thread): New. - * regcache.h (get_thread_regcache(thread_info *thread)): New - overload. - (registers_changed_thread): New. - (remote_target) <remote_detach_1>: Swap order of parameters. - (remote_add_thread): <remote_add_thread>: Return the new thread. - (get_remote_thread_info(ptid_t)): New overload. - (remote_target::remote_notice_new_inferior): Use thread pointers - directly. - (remote_target::process_initial_stop_replies): Use - thread_info::set_running. - (remote_target::remote_detach_1, remote_target::detach) - (extended_remote_target::detach): Adjust. - * stack.c (frame_show_address): Use inferior_thread. - * target-debug.h (target_debug_print_thread_info_pp): New. - * target-delegates.c: Regenerate. - * target.c (default_thread_address_space): Delete. - (memory_xfer_partial_1): Use current_inferior. - (target_detach): Use current_inferior. - (target_thread_address_space): Delete. - (generic_mourn_inferior): Use current_inferior. - * target.h (struct target_ops) <thread_address_space>: Delete. - (target_thread_address_space): Delete. - * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread - pointers directly. - (delete_thread_1, delete_thread, delete_thread_silent): Take a - thread pointer instead of a ptid_t. Adjust all callers. - (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete. - (first_thread_of_process): Delete, replaced by ... - (first_thread_of_inferior): ... this new function. All callers - adjusted. - (any_thread_of_process): Rename to ... - (any_thread_of_inferior): ... this, and take an inferior pointer. - (any_live_thread_of_process): Rename to ... - (any_live_thread_of_inferior): ... this, and take an inferior - pointer. - (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) - (value_in_thread_stack_temporaries) - (get_last_thread_stack_temporary): Take a thread pointer instead - of a ptid_t. Adjust all callers. - (thread_info::set_running): New. - (validate_registers_access): Use inferior_thread. - (can_access_registers_ptid): Rename to ... - (can_access_registers_thread): ... this, and take a thread - pointer. - (print_thread_info_1): Adjust to compare thread pointers instead - of ptids. - (switch_to_no_thread, switch_to_thread): Make extern. - (scoped_restore_current_thread::~scoped_restore_current_thread): - Use m_thread pointer directly. - (scoped_restore_current_thread::scoped_restore_current_thread): - Use inferior_thread. - (thread_command): Use thread pointer directly. - (thread_num_make_value_helper): Use inferior_thread. - * top.c (execute_command): Use inferior_thread. - * tui/tui-interp.c: Include "inferior.h". - * varobj.c (varobj_create): Use inferior_thread. - (value_of_root_1): Use find_thread_global_id instead of - global_thread_id_to_ptid. - -2018-06-21 Alan Hayward <alan.hayward@arm.com> - - * regcache.c (readable_regcache::read_part): Avoid memcpy when - possible. - (regcache::write_part): Likewise. - (readable_regcache::cooked_read_part): Update comment. - (readable_regcache::cooked_write_part): Likewise. - * regcache.h: (readable_regcache::read_part): Likewise. - (regcache::write_part): Likewise. - -2018-06-21 Richard Bunt <richard.bunt@arm.com> - Dirk Schubert <dirk.schubert@arm.com> - - * aarch64-linux-nat.c (post_attach): New. - (aarch64_linux_nat_target::post_attach): Override post_attach to - record the number of hardware debug registers. - -2018-06-20 Tom Tromey <tom@tromey.com> - - * python/py-param.c (add_setshow_generic): Make parameters const. - (parmpy_init): Update. - -2018-06-20 Simon Marchi <simon.marchi@polymtl.ca> - - * regcache.h (regcache_cooked_read_ftype): Rename to... - (register_read_ftype): ...this, change type to function_view. - (class reg_buffer) <save>: Remove src parameter. - (readonly_detached_regcache) <readonly_detached_regcache>: Make - parameter non-const in first overload. Remove src parameter in - second overload. - * regcache.c (do_cooked_read): Remove. - (readonly_detached_regcache::readonly_detached_regcache): Make - parameter non-const, adjust call to other constructor. - (reg_buffer::save): Remove src parameter. - * frame.c (do_frame_register_read): Remove. - (frame_save_as_regcache): Use lambda function. - * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src - parameter to ppu2spu_data *. - (ppu2spu_sniffer): Use lambda function. - -2018-06-20 Simon Marchi <simon.marchi@polymtl.ca> - - * record-full.c (record_full_target::insert_breakpoint): Remove - "struct" keyword, add const. - -2018-06-19 Simon Marchi <simon.marchi@ericsson.com> - - * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION, - PACKAGE_STRING, PACKAGE_TARNAME): Undefine. - * configure.ac: Remove AC_PREREQ, add missing quoting. - * gnulib/configure.ac: Modernize usage of - AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ. - * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69. - (AUTOMAKE_VERSION): Bump to 1.15.1. - * configure: Re-generate. - * config.in: Re-generate. - * aclocal.m4: Re-generate. - * gnulib/aclocal.m4: Re-generate. - * gnulib/config.in: Re-generate. - * gnulib/configure: Re-generate. - * gnulib/import/Makefile.in: Re-generate. - -2018-06-19 Pedro Alves <palves@redhat.com> - - * minsyms.c (msym_prefer_to_msym_type): New, factored out from ... - (lookup_minimal_symbol_by_pc_section): ... here with - gdb_assert_not_reached added. - -2018-06-19 Pedro Alves <palves@redhat.com> - - * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC - parameter with a block parameter. Compare location's block symbol - with the frame's block instead of addresses. - (skip_inline_frames): Pass the current block instead of the - frame's address. Break out as soon as we determine the frame - should not be skipped. - -2018-06-18 Tom Tromey <tom@tromey.com> - - * solib-aix.c (solib_aix_get_section_offsets): Return - unique_xmalloc_ptr. - (solib_aix_solib_create_inferior_hook): Update. - -2018-06-18 Tom Tromey <tom@tromey.com> - - * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr. - -2018-06-18 Tom Tromey <tom@tromey.com> - - * solib-frv.c (frv_relocate_main_executable): Use - unique_xmalloc_ptr. - * solib-dsbt.c (dsbt_relocate_main_executable): Use - unique_xmalloc_ptr. - -2018-06-18 Tom Tromey <tom@tromey.com> - - * objfiles.h (inhibit_section_map_updates): Update. - (resume_section_map_updates, resume_section_map_updates_cleanup): - Remove. - * solib-svr4.c (svr4_handle_solib_event): Update. - * objfiles.c (inhibit_section_map_updates): Return - scoped_restore_tmpl<int>. - (resume_section_map_updates, resume_section_map_updates_cleanup): - Remove. - -2018-06-18 Tom Tromey <tom@tromey.com> - - * valprint.h (read_string): Update. - * valprint.c (read_string): Change type of "buffer". - (val_print_string): Update. - * python/py-value.c (valpy_string): Update. - * language.h (struct language_defn) <la_get_string>: Change - type of "buffer". - (default_get_string, c_get_string): Update. - * language.c (default_get_string): Change type of "buffer". - * guile/scm-value.c (gdbscm_value_to_string): Update. - * c-lang.c (c_get_string): Change type of "buffer". - -2018-06-18 Tom Tromey <tom@tromey.com> - - * ser-mingw.c (struct pipe_state_destroyer): New. - (pipe_state_up): New typedef. - (cleanup_pipe_state): Remove. - (pipe_windows_open): Use pipe_state_up. Don't release argv. - -2018-06-18 Tom Tromey <tom@tromey.com> - - * rust-lang.h (rust_yyerror): Don't declare. - * rust-lang.c (rust_language_defn): Update. - * rust-exp.y (yyerror): Now static. - * parse.c (parse_exp_in_context_1): Update. - * p-lang.h (p_yyerror): Don't declare. - * p-lang.c (p_language_defn): Update. - * p-exp.y (yyerror): Now static. - * opencl-lang.c (opencl_language_defn): Update. - * objc-lang.c (objc_language_defn): Update. - * m2-lang.h (m2_yyerror): Don't declare. - * m2-lang.c (m2_language_defn): Update. - * m2-exp.y (yyerror): Now static. - * language.h (struct language_defn) <la_error>: Remove. - * language.c (unk_lang_error): Remove. - (unknown_language_defn, auto_language_defn): Remove. - * go-lang.h (go_yyerror): Don't declare. - * go-lang.c (go_language_defn): Update. - * go-exp.y (yyerror): Now static. - * f-lang.h (f_yyerror): Don't declare. - * f-lang.c (f_language_defn): Update. - * f-exp.y (yyerror): Now static. - * d-lang.h (d_yyerror): Don't declare. - * d-lang.c (d_language_defn): Update. - * d-exp.y (yyerror): Now static. - * c-lang.h (c_yyerror): Don't declare. - * c-lang.c (c_language_defn, cplus_language_defn) - (asm_language_defn, minimal_language_defn): Update. - * c-exp.y (yyerror): Now static. - * ada-lang.h (ada_yyerror): Don't declare. - * ada-lang.c (ada_language_defn): Update. - * ada-exp.y (yyerror): Now static. - -2018-06-18 Alan Hayward <alan.hayward@arm.com> - - * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function. - (store_sveregs_to_thread): Likewise. - (aarch64_linux_fetch_inferior_registers): Check for SVE. - (aarch64_linux_store_inferior_registers): Likewise. - * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New - function. - (aarch64_sve_regs_copy_to_regcache): Likewise. - (aarch64_sve_regs_copy_from_regcache): Likewise. - * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New - declaration. - (aarch64_sve_regs_copy_to_regcache): Likewise. - (aarch64_sve_regs_copy_from_regcache): Likewise. - (sve_context): Structure from Linux headers. - (SVE_SIG_ZREGS_SIZE): Define from Linux headers. - (SVE_SIG_ZREG_SIZE): Likewise. - (SVE_SIG_PREG_SIZE): Likewise. - (SVE_SIG_FFR_SIZE): Likewise. - (SVE_SIG_REGS_OFFSET): Likewise. - (SVE_SIG_ZREGS_OFFSET): Likewise. - (SVE_SIG_ZREG_OFFSET): Likewise. - (SVE_SIG_ZREGS_SIZE): Likewise. - (SVE_SIG_PREGS_OFFSET): Likewise. - (SVE_SIG_PREG_OFFSET): Likewise. - (SVE_SIG_PREGS_SIZE): Likewise. - (SVE_SIG_FFR_OFFSET): Likewise. - (SVE_SIG_REGS_SIZE): Likewise. - (SVE_SIG_CONTEXT_SIZE): Likewise. - (SVE_PT_REGS_MASK): Likewise. - (SVE_PT_REGS_FPSIMD): Likewise. - (SVE_PT_REGS_SVE): Likewise. - (SVE_PT_VL_INHERIT): Likewise. - (SVE_PT_VL_ONEXEC): Likewise. - (SVE_PT_REGS_OFFSET): Likewise. - (SVE_PT_FPSIMD_OFFSET): Likewise. - (SVE_PT_FPSIMD_SIZE): Likewise. - (SVE_PT_SVE_ZREG_SIZE): Likewise. - (SVE_PT_SVE_PREG_SIZE): Likewise. - (SVE_PT_SVE_FFR_SIZE): Likewise. - (SVE_PT_SVE_FPSR_SIZE): Likewise. - (SVE_PT_SVE_FPCR_SIZE): Likewise. - (__SVE_SIG_TO_PT): Likewise. - (SVE_PT_SVE_OFFSET): Likewise. - (SVE_PT_SVE_ZREGS_OFFSET): Likewise. - (SVE_PT_SVE_ZREG_OFFSET): Likewise. - (SVE_PT_SVE_ZREGS_SIZE): Likewise. - (SVE_PT_SVE_PREGS_OFFSET): Likewise. - (SVE_PT_SVE_PREG_OFFSET): Likewise. - (SVE_PT_SVE_PREGS_SIZE): Likewise. - (SVE_PT_SVE_FFR_OFFSET): Likewise. - (SVE_PT_SVE_FPSR_OFFSET): Likewise. - (SVE_PT_SVE_FPCR_OFFSET): Likewise. - (SVE_PT_SVE_SIZE): Likewise. - (SVE_PT_SIZE): Likewise. - (HAS_SVE_STATE): New define. - -2018-06-18 Alan Hayward <alan.hayward@arm.com> - - * nat/aarch64-sve-linux-sigcontext.h: New file. - * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to - new files. - (SVE_VQ_MIN): Likewise. - (SVE_VQ_MAX): Likewise. - (SVE_VL_MIN): Likewise. - (SVE_VL_MAX): Likewise. - (SVE_NUM_ZREGS): Likewise. - (SVE_NUM_PREGS): Likewise. - (sve_vl_valid): Likewise. - (struct user_sve_header): Likewise. - -2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com> - Richard Bunt <Richard.Bunt@arm.com> - - * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it - was requested by GDB. - -2018-06-15 Tom de Vries <tdevries@suse.de> - - * MAINTAINERS (Write After Approval): Add Tom de Vries. - -2018-06-14 Simon Marchi <simon.marchi@polymtl.ca> - - * gnulib/update-gnulib.sh: Print expected versions of - autoconf/aclocal. - -2018-06-14 Simon Marchi <simon.marchi@ericsson.com> - - * arch-utils.c (default_type_align): Use type_length_units. - * gdbtypes.c (type_align): Use type_length_units. - -2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * cli/cli-script.c (_initialize_cli_script): Fix online documentation - of 'define' command. - -2018-06-14 Tom de Vries <tdevries@suse.de> - - PR cli/22573 - * infcmd.c (print_return_value_1): Use get_user_print_options instead of - get_no_prettyformat_print_options. - -2018-06-13 Simon Marchi <simon.marchi@ericsson.com> - - * sparc-nat.h: Include target.h. - * sparc64-linux-nat.c (class sparc64_linux_nat_target) - <fetch_registers>: Remove this argument in function call. - <store_registers>: Remove this argument in function call, remove - extra semicolon. - <low_forget_process>: Call sparc64_forget_process instead of - sparc_forget_process. - -2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> - - * procfs.c (_initialize_procfs): Use add_inf_child_target. - (procfs_target::make_corefile_notes): Adjust to new - target_read_alloc return type. - -2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> - Stephen Roberts <stephen.roberts@arm.com> - - PR gdb/22882 - * infrun.c (fetch_inferior_event): If GDB is not proceeding then - run INF_EXEC_COMPLETE handler, even when not calling normal_stop. - Move should_notify_stop local into more inner scope. - -2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> - Stephen Roberts <stephen.roberts@arm.com> - - PR gdb/22882 - * infrun.c (resume_1): Add call to mark_async_event_handler. - -2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> - - * infrun.c (do_target_wait): Change old version of $pc printed. - -2018-06-11 Simon Marchi <simon.marchi@ericsson.com> - - * dwarf2read.c (read_index_from_section): Rename to... - (read_gdb_index_from_section): ... this, update all callers. - (dwarf2_read_index): Rename to... - (dwarf2_read_gdb_index): ... this, update all callers. - -2018-06-11 John David Anglin <danglin@gcc.gnu.org> - - * hppa-linux-nat.c - (hppa_linux_nat_target::fetch_inferior_registers): Rename to - hppa_linux_nat_target::fetch_registers. - -2018-06-11 Alan Hayward <alan.hayward@arm.com> - - * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings. - * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define. - (AARCH64_DWARF_SVE_FFR): Likewise. - (AARCH64_DWARF_SVE_P0): Likewise. - (AARCH64_DWARF_SVE_Z0): Likewise. - -2018-06-11 Alan Hayward <alan.hayward@arm.com> - - * common/common-regcache.h (raw_compare): New function. - * regcache.c (regcache::raw_compare): Likewise. - * regcache.h (regcache::raw_compare): New declaration. - -2018-06-11 Alan Hayward <alan.hayward@arm.com> - - * common/common-regcache.h (reg_buffer_common): New structure. - * regcache.c (reg_buffer::invalidate): Move from detached_regcache. - (reg_buffer::raw_supply): Likewise. - (reg_buffer::raw_supply_integer): Likewise. - (reg_buffer::raw_supply_zeroed): Likewise. - (reg_buffer::raw_collect): Likewise. - (reg_buffer::raw_collect_integer): Likewise. - * regcache.h (reg_buffer::invalidate): Move from detached_regcache. - (reg_buffer::raw_supply): Likewise. - (reg_buffer::raw_supply_integer): Likewise. - (reg_buffer::raw_supply_zeroed): Likewise. - (reg_buffer::raw_collect): Likewise. - (reg_buffer::raw_collect_integer): Likewise. - -2018-06-10 Tom Tromey <tom@tromey.com> - - * remote.c (stop_reply_p): Remove typedef. Don't declare queue. - (class remote_state) <stop_reply_queue>: Now std::vector. - (remote_state::~remote_state) - (remote_target::stop_reply_queue_length): Update. - (struct queue_iter_param, remove_child_of_pending_fork) - (struct check_pending_event_prevents_wildcard_vcont_callback_data) - (check_pending_event_prevents_wildcard_vcont_callback) - (remove_stop_reply_for_inferior) - (remove_stop_reply_of_remote_state) - (remote_notif_remove_once_on_match) - (stop_reply_match_ptid_and_ws) - (remote_kill_child_of_pending_fork): Remove. - (remote_target::remove_new_fork_children) - (remote_target::check_pending_events_prevent_wildcard_vcont) - (remote_target::discard_pending_stop_replies) - (remote_target::discard_pending_stop_replies_in_queue) - (remote_target::remote_notif_remove_queued_reply) - (remote_target::queued_stop_reply) - (remote_target::push_stop_reply, remote_target::peek_stop_reply) - (remote_target::wait, remote_target::kill_new_fork_children) - (remote_target::async): Update. - -2018-06-10 Tom Tromey <tom@tromey.com> - - * record-full.c (record_full_arch_list_cleanups): Remove. - (record_full_message): Use try/catch. - (record_full_wait_cleanups): Remove. - (record_full_wait_1): Use try/catch. - (record_full_restore): Likewise. - -2018-06-10 Tom Tromey <tom@tromey.com> - - * record-full.c (record_full_breakpoint_p): Remove typedef. Don't - declare VEC. Add constructor. - <in_target_beneath>: Now bool. - (record_full_breakpoints): Now a std::vector, static. - (record_full_sync_record_breakpoints) - (record_full_init_record_breakpoints) - (record_full_target::insert_breakpoint) - (record_full_target::remove_breakpoint): Update. Don't use XNEW. - -2018-06-10 Simon Marchi <simon.marchi@polymtl.ca> - - * dwarf2read.c (process_cu_includes): Remove struct keyword. - * serial.c (serial_interface_lookup): Remove struct keyword. - -2018-06-10 Tom Tromey <tom@tromey.com> - - * procfs.c (procfs_target::xfer_partial): Use "beneath" as a - method. - * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as - a method. - * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a - method. - * arm-linux-nat.c (arm_linux_nat_target::read_description): Use - "beneath" as a method. - * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description): - Use "beneath" as a method. - -2018-06-10 Tom Tromey <tom@tromey.com> - - * tracefile.c (struct trace_file_writer_deleter): New. - <operator()>: Rename from trace_file_writer_xfree. - (trace_file_writer_up): New typedef. - (tsave_command, trace_save_tfile, trace_save_ctf): Update. - -2018-06-09 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor. - <m_registers, m_register_status>: Change type to - std::unique_ptr. - * regcache.c (reg_buffer::reg_buffer): Use new instead of - XCNEWVEC. - -2018-06-09 Simon Marchi <simon.marchi@ericsson.com> - - * common/common-regcache.h (enum register_status): Add - underlying type "signed char". - * regcache.h (reg_buffer) <m_register_status>: Change type to - register_status *. - * regcache.c (reg_buffer::reg_buffer): Alocate arrays of - register_status instead of signed char. - (reg_buffer::save): Use REG_UNKNOWN instead of 0. - (reg_buffer::get_register_status): Remove cast. - (readable_regcache::raw_read): Remove cast. - (readable_regcache::cooked_read): Remove cast. - -2018-06-09 Tom Tromey <tom@tromey.com> - - * source.c (reverse_search_command, forward_search_command): Use - scoped_fd. - -2018-06-09 Tom Tromey <tom@tromey.com> - - * serial.c (serial_ops_p): Remove typedef. Don't declare VEC. - (serial_ops_list): Now static, std::vector. - (serial_interface_lookup, serial_add_interface): Update. - -2018-06-09 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (process_cu_includes): Update. - (process_full_comp_unit): Update. - * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a - std::vector. - -2018-06-08 Paul Koning <paul_koning@dell.com> - - PR gdb/23252 - - * python/python.c (do_start_initialization): - Avoid call to internal Python API. - (init__gdb_module): New function. - -2018-06-08 Gary Benson <gbenson@redhat.com> - - * linux-thread-db.c (valprint.h): New include. - (struct check_thread_db_info): New structure. - (check_thread_db_on_load, tdb_testinfo): New static globals. - (check_thread_db, check_thread_db_callback): New functions. - (try_thread_db_load_1): Run integrity checks if requested. - (maintenance_check_libthread_db): New function. - (_initialize_thread_db): Register "maint check libthread-db" - and "maint set/show check-libthread-db". - * NEWS: Mention the above new commands. - -2018-06-08 Tom Tromey <tom@tromey.com> - - * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is - now a method. - -2018-06-08 Tom Tromey <tom@tromey.com> - - * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr. - -2018-06-08 Tom Tromey <tom@tromey.com> - - * common/btrace-common.h (struct btrace_data): Add constructor, - destructor, move assignment operator. - <empty, clear, fini>: New methods. - <format>: Initialize. - (btrace_data_init, btrace_data_fini, btrace_data_clear) - (btrace_data_empty): Don't declare. - * common/btrace-common.c (btrace_data_init): Remove. - (btrace_data::fini): Rename from btrace_data_fini. - (btrace_data::empty): Rename from btrace_data_empty. - (btrace_data::clear): Rename from btrace_data_clear. Return - bool. - * btrace.h (make_cleanup_btrace_data): Don't declare. - * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear) - (parse_xml_btrace): Update. - (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove. - (maint_btrace_clear_packet_history_cmd): Update. - -2018-06-07 Pedro Alves <palves@redhat.com> - - * target.h (target_ops) <beneath>: Now a method. All references - updated. - (class target_stack): New. - * target.c (g_target_stack): New. - (g_current_top_target): Delete. - (current_top_target): Get the top target out of g_target_stack. - (target_stack::push, target_stack::unpush): New. - (push_target, unpush_target): Reimplement. - (target_is_pushed): Reimplement in terms of g_target_stack. - (target_ops::beneath, target_stack::find_beneath): New. - -2018-06-07 Pedro Alves <palves@redhat.com> - - * target.h (find_target_beneath): Delete declaration. - * target.c (find_target_beneath): Delete definition. - * aix-thread.c: All callers of find_target_beneath adjusted to - call target_ops::beneath instead. - * bsd-uthread.c: Likewise. - * linux-thread-db.c: Likewise. - * ravenscar-thread.c: Likewise. - * sol-thread.c: Likewise. - * spu-multiarch.c: Likewise. - -2018-06-07 Pedro Alves <palves@redhat.com> - - * target.h (target_ops) <beneath>: Now a method. All references - updated. - (target_ops) <m_beneath>: New. - * target.c (target_ops::beneath): New. - * corelow.c: Adjust all references to target_ops::beneath. - * linux-thread-db.c: Likewise. - * make-target-delegates: Likewise. - * record-btrace.c: Likewise. - * record-full.c: Likewise. - * remote.c: Likewise. - * target.c: Likewise. - * target-delegates.c: Regenerate. - -2018-06-07 Pedro Alves <palves@redhat.com> - - * target.h (target_stack): Delete. - (current_top_target): Declare function. - * target.c (target_stack): Delete. - (g_current_top_target): New. - (current_top_target): New function. - * auxv.c: Use current_top_target instead of target_stack - throughout. - * avr-tdep.c: Likewise. - * breakpoint.c: Likewise. - * corefile.c: Likewise. - * elfread.c: Likewise. - * eval.c: Likewise. - * exceptions.c: Likewise. - * frame.c: Likewise. - * gdbarch-selftests.c: Likewise. - * gnu-v3-abi.c: Likewise. - * ia64-tdep.c: Likewise. - * ia64-vms-tdep.c: Likewise. - * infcall.c: Likewise. - * infcmd.c: Likewise. - * infrun.c: Likewise. - * linespec.c: Likewise. - * linux-tdep.c: Likewise. - * minsyms.c: Likewise. - * ppc-linux-nat.c: Likewise. - * ppc-linux-tdep.c: Likewise. - * procfs.c: Likewise. - * regcache.c: Likewise. - * remote.c: Likewise. - * rs6000-tdep.c: Likewise. - * s390-linux-nat.c: Likewise. - * s390-tdep.c: Likewise. - * solib-aix.c: Likewise. - * solib-darwin.c: Likewise. - * solib-dsbt.c: Likewise. - * solib-spu.c: Likewise. - * solib-svr4.c: Likewise. - * solib-target.c: Likewise. - * sparc-tdep.c: Likewise. - * sparc64-tdep.c: Likewise. - * spu-tdep.c: Likewise. - * symfile.c: Likewise. - * symtab.c: Likewise. - * target-descriptions.c: Likewise. - * target-memory.c: Likewise. - * target.c: Likewise. - * target.h: Likewise. - * tracefile-tfile.c: Likewise. - * tracepoint.c: Likewise. - * valops.c: Likewise. - * valprint.c: Likewise. - * value.c: Likewise. - * windows-tdep.c: Likewise. - * mi/mi-main.c: Likewise. - -2018-06-07 Tom Tromey <tom@tromey.com> - - * valprint.h (build_address_symbolic): Declare. - * printcmd.c (print_address_symbolic): Update. - (build_address_symbolic): Change "name" and "filename" to - std::string. - * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): - Update. - * defs.h (build_address_symbolic): Remove declaration. - -2018-06-07 Alan Hayward <alan.hayward@arm.com> - - * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define. - (aarch64_vnv_type): Add function. - (aarch64_pseudo_register_name): Add V regs for SVE. - (aarch64_pseudo_register_type): Likewise. - (aarch64_pseudo_register_reggroup_p): Likewise. - (aarch64_pseudo_read_value_2): Use V0 offset for SVE - (aarch64_pseudo_read_value): Add V regs for SVE. - (aarch64_pseudo_write_2): Use V0 offset for SVE - (aarch64_pseudo_write): Add V regs for SVE. - * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type. - -2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com> - - * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef. - (sve_vl_from_vq): Likewise. - -2018-06-05 Tom Tromey <tom@tromey.com> - - * cli/cli-cmds.c (show_version): Update. - * top.c (print_gdb_version): Add "interactive" parameter. - Update. - * main.c (captured_main_1): Update. - * top.h (print_gdb_version): Add "interactive" parameter and a - comment. - -2018-06-05 David Malcolm <dmalcolm@redhat.com> - - * common/enum-flags.h: Add trailing semicolon to example in - comment. - -2018-06-05 Tom Tromey <tom@tromey.com> - - PR cli/12326: - * NEWS: Add entry about pager. - * utils.c (pagination_disabled_for_command): New global. - (prompt_for_continue): Allow "c" response to prompt. - (reinitialize_more_filter): Clear - pagination_disabled_for_command. - (fputs_maybe_filtered): Check pagination_disabled_for_command. - -2018-06-04 Tom Tromey <tom@tromey.com> - - * ada-lang.h (ada_lookup_symbol_list): Update. - * ada-lang.c (resolve_subexp): Update. - (symbols_are_identical_enums): Change type of syms. Remove nsyms - parameter. - (remove_extra_symbols, remove_irrelevant_renamings): Likewise. - (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change - results parameter to std::vector. - (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value): - Update. - * ada-exp.y (block_lookup): Update. - (select_possible_type_sym): Change type of syms. Remove nsyms - parameter. - (write_var_or_type, write_name_assoc): Update. - -2018-06-04 Joel Brobecker <brobecker@adacore.com> - - * windows-nat.c (windows_nat_target::xfer_partial): Return - TARGET_XFER_E_IO if we need to delegate to the target beneath - but BENEATH is NULL. - -2018-06-04 Simon Marchi <simon.marchi@ericsson.com> - - * Makefile.in (config.status): Add configure.nat as a - dependency. - -2018-06-04 Tom Tromey <tom@tromey.com> - - * cp-name-parser.y (cpname_state): Add method declarations. - (HANDLE_QUAL): Update. - (cpname_state::d_grab, cpname_state::fill_comp) - (cpname_state::make_operator, cpname_state::make_dtor) - (cpname_state::make_builtin_type, cpname_state::make_name) - (cpname_state::d_qualify, cpname_state::d_int_type) - (cpname_state::d_unary, cpname_state::d_binary): Now methods. - (%union): Move earlier. - -2018-06-04 Alan Hayward <alan.hayward@arm.com> - - * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT. - -2018-06-04 Alan Hayward <alan.hayward@arm.com> - - * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func. - (aarch64_pseudo_write_1): Likewise. - (aarch64_pseudo_read_value): Use helper. - (aarch64_pseudo_write): Likewise. - -2018-06-04 Pedro Alves <palves@redhat.com> - - * darwin-nat.c (darwin_ops): Delete. - (darwin_attach_pid): Use get_native_target. - -2018-06-04 Alan Hayward <alan.hayward@arm.com> - - * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ. - * aarch64-tdep.h (struct gdbarch_tdep): Likewise. - -2018-06-04 Alan Hayward <alan.hayward@arm.com> - - * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE. - * aarch64-tdep.c (aarch64_get_tdesc_vq): New function. - (aarch64_gdbarch_init): Check for SVE. - * aarch64-tdep.h (gdbarch_tdep::has_sve): New function. - -2018-06-04 Alan Hayward <alan.hayward@arm.com> - - * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ. - * aarch64-tdep.h (aarch64_read_description): Likewise. - * arch/aarch64.c (aarch64_create_target_description): Likewise. - * arch/aarch64.h (aarch64_create_target_description): Likewise. - * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise. - * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise. - * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise. - -2018-06-02 Simon Marchi <simon.marchi@ericsson.com> - - * value.c (value_fetch_lazy_bitfield): New. - (value_fetch_lazy_memory): New. - (value_fetch_lazy_register): New. - (value_fetch_lazy): Factor out to smaller functions. - -2018-06-01 Tom Tromey <tom@tromey.com> - - * cp-name-parser.y (backslashable, represented): Now const. - -2018-06-01 Tom Tromey <tom@tromey.com> - - * cp-name-parser.y: Include parser-defs.h. - (parser_fprintf): Remove declaration. - -2018-06-01 Tom Tromey <tom@tromey.com> - - * cp-name-parser.y: Use %pure-parser, %lex-param, and - %parse-param. - (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info) - (global_result): Remove globals. - (struct cpname_state): New. - (yyparse): Don't declare. - (yylex, yyerror): Move declarations after %union. - (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type) - (make_name): Add state parameter. - Update all callers. - (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state - parameter. - (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3): - Update. - (yylex): Add lvalp, state parameters. - (yyerror): Add state parameter. - (cp_demangled_name_to_comp): Update. - -2018-06-01 Tom Tromey <tom@tromey.com> - - * cp-name-parser.y (parser_fprintf): Declare. - (GDB_YY_REMAP_PREFIX): Define. - Include yy-remap.h. Don't redefine yy* identifiers. - -2018-06-01 Tom Tromey <tom@tromey.com> - - * python/py-type.c (typy_legacy_template_argument): Update. - * cp-support.h (cp_demangled_name_to_comp): Update. - * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg - parameter to be a "std::string *". - (main): Update. - -2018-06-01 H.J. Lu <hongjiu.lu@intel.com> - - * ada-lex.l: Include "diagnostics.h" instead of - "common/diagnostics.h". - * unittests/environ-selftests.c: Likewise. - * common/diagnostics.h: Moved to ../include. - -2018-06-01 Joel Brobecker <brobecker@adacore.com> - - * breakpoint.c (breakpoint_re_set): Temporarily force language_mode - to language_mode_manual while calling breakpoint_re_set_one. - -2018-06-01 Tom Tromey <tom@tromey.com> - - * valops.c (value_cast_structs, destructor_name_p): Update. - * symtab.c (gdb_mangle_name): Update. - * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses): - Update. - * p-valprint.c (pascal_object_is_vtbl_ptr_type) - (pascal_object_print_value_fields, pascal_object_print_value): - Update. - * p-typeprint.c (pascal_type_print_derivation_info): Update. - * linespec.c (find_methods): Update. - * gdbtypes.h (type_name_no_tag): Remove. - (type_name_or_error): Rename from type_name_no_tag_or_error. - * gdbtypes.c (type_name_no_tag): Remove. - (type_name_or_error): Rename from type_name_no_tag_or_error. - (lookup_struct_elt_type, check_typedef): Update. - * expprint.c (print_subexp_standard): Update. - * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update. - * d-namespace.c (d_lookup_nested_symbol): Update. - * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields) - (cp_print_class_member): Update. - * cp-namespace.c (cp_lookup_nested_symbol): Update. - * completer.c (add_struct_fields): Update. - * c-typeprint.c (cp_type_print_derivation_info) - (c_type_print_varspec_prefix, c_type_print_base_struct_union): - Update. - * ada-lang.c (parse_old_style_renaming, xget_renaming_scope) - (ada_prefer_type, ada_is_exception_sym): Update. - -2018-06-01 Tom Tromey <tom@tromey.com> - - * valops.c (enum_constant_from_type, value_namespace_elt) - (value_maybe_namespace_elt): Update. - * valarith.c (find_size_for_pointer_math): Update. - * target-descriptions.c (make_gdb_type): Update. - * symmisc.c (print_symbol): Update. - * stabsread.c (define_symbol, read_type) - (complain_about_struct_wipeout, add_undefined_type) - (cleanup_undefined_types_1): Update. - * rust-lang.c (rust_tuple_type_p, rust_slice_type_p) - (rust_range_type_p, val_print_struct, rust_print_struct_def) - (rust_internal_print_type, rust_composite_type) - (rust_evaluate_funcall, rust_evaluate_subexp) - (rust_inclusive_range_type_p): Update. - * python/py-type.c (typy_get_tag): Update. - * p-typeprint.c (pascal_type_print_base): Update. - * mdebugread.c (parse_symbol, parse_type): Update. - * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum): - Update. - * guile/scm-type.c (gdbscm_type_tag): Update. - * go-lang.c (sixg_string_p): Update. - * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type): - Update. - * gdbtypes.h (struct main_type) <tag_name>: Remove. - (TYPE_TAG_NAME): Remove. - * gdbtypes.c (type_name_no_tag): Simplify. - (check_typedef, check_types_equal, recursive_dump_type) - (copy_type_recursive, arch_composite_type): Update. - * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix - in summary mode when needed. - * eval.c (evaluate_funcall): Update. - * dwarf2read.c (fixup_go_packaging, read_structure_type) - (process_structure_scope, read_enumeration_type) - (read_namespace_type, read_module_type, determine_prefix): Update. - * cp-support.c (inspect_type): Update. - * coffread.c (process_coff_symbol, decode_base_type): Update. - * c-varobj.c (c_is_path_expr_parent): Update. - * c-typeprint.c (c_type_print_base_struct_union): Update. - (c_type_print_base_1): Update. Print struct/class/union/enum in - summary when using C language. - * ax-gdb.c (gen_struct_ref, gen_namespace_elt) - (gen_maybe_namespace_elt): Update. - * ada-lang.c (ada_type_name): Simplify. - (empty_record, ada_template_to_fixed_record_type_1) - (template_to_static_fixed_type) - (to_record_with_fixed_variant_part, ada_check_typedef): Update. - -2018-06-01 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (dwarf2_compute_name): Pass CU's language to - c_print_type. - * c-typeprint.c (c_print_type_1): Add "language" parameter. - (c_print_type): Update. - (c_print_type): New overload. - (c_type_print_varspec_prefix, c_type_print_args) - (c_type_print_varspec_suffix, c_print_type_no_offsets) - (c_type_print_base_struct_union, c_type_print_base_1) - (cp_type_print_method_args): Add "language" parameter. - (c_type_print_base): Update. - * c-lang.h (c_print_type): Add new overload. - -2018-06-01 Tom Tromey <tom@tromey.com> - - * typeprint.h (c_type_print_varspec_suffix): Don't declare. - * c-typeprint.c (c_type_print_varspec_suffix): Now static. - -2018-06-01 Alan Hayward <alan.hayward@arm.com> - - * aarch64-tdep.c (aarch64_sve_register_names): New const - var. - * arch/aarch64.h (enum aarch64_regnum): Add SVE entries. - (AARCH64_SVE_Z_REGS_NUM): New define. - (AARCH64_SVE_P_REGS_NUM): Likewise. - (AARCH64_SVE_NUM_REGS): Likewise. - -2018-05-31 Uros Bizjak <ubizjak@gmail.com> - - * nat/linux-ptrace.h [__alpha__] - (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove - definitions. - -2018-05-31 Maciej W. Rozycki <macro@mips.com> - - * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to - the endianness selected. - * NEWS: Document `set endian auto' mode operation update. - -2018-05-31 Alan Hayward <alan.hayward@arm.com> - - * Makefile.in: Add new header. - * gdb/arch/aarch64.h (sve_vg_from_vl): New macro. - (sve_vl_from_vg): Likewise. - (sve_vq_from_vl): Likewise. - (sve_vl_from_vq): Likewise. - (sve_vq_from_vg): Likewise. - (sve_vg_from_vq): Likewise. - * configure.nat: Add new c file. - * nat/aarch64-sve-linux-ptrace.c: New file. - * nat/aarch64-sve-linux-ptrace.h: New file. - -2018-05-31 Alan Hayward <alan.hayward@arm.com> - - * aarch64-linux-nat.c (aarch64_linux_read_description): - Add parmeter zero. - * aarch64-linux-tdep.c (aarch64_linux_core_read_description): - Likewise. - * aarch64-tdep.c (tdesc_aarch64_list): Add. - (aarch64_read_description): Use VQ to index tdesc_aarch64_list. - (aarch64_gdbarch_init): Add parmeter zero. - * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter. - * arch/aarch64.c (aarch64_create_target_description): Check VQ. - * arch/aarch64.h (aarch64_create_target_description): Add VQ. - parmeter. - * doc/gdb.texinfo: Describe SVE feature - * features/aarch64-sve.c: New file. - -2018-05-31 Omair Javaid <omair.javaid@linaro.org> - - PR gdb/23210 - * gdbarch.sh (significant_addr_bit): Default to zero when - not set by target architecture. - * gdbarch.c: Re-generated. - * utils.c (address_significant): Update. - -2018-05-30 Joel Brobecker <brobecker@adacore.com> - - * stack.c (func_command): Remove trailing newline in call to error. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (regcache_raw_collect): Remove, update callers to - use regcache::raw_collect. - * regcache.c (regcache_raw_collect): Remove. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (regcache_raw_supply): Remove, update callers to - use detached_regcache::raw_supply. - * regcache.c (regcache_raw_supply): Remove. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (regcache_cooked_write_part): Remove, update - callers to use regcache::cooked_write_part. - * regcache.c (regcache_cooked_write_part): Remove. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (regcache_cooked_read_part): Remove, update callers - to use readable_regcache::cooked_read_part. - * regcache.c (regcache_cooked_read_part): Remove. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (regcache_cooked_read_value): Remove, update - callers to use readable_regcache::cooked_read_value. - * regcache.c (regcache_cooked_read_value): Remove. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (regcache_cooked_write): Remove, update callers to - use regcache::cooked_write. - * regcache.c (regcache_cooked_write): Remove. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (regcache_invalidate): Remove, update callers to - use detached_regcache::invalidate instead. - * regcache.c (regcache_invalidate): Remove. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (regcache_raw_write_part): Remove, update callers - to use regcache::raw_write_part instead. - * regcache.c (regcache_raw_write_part): Remove. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (regcache_raw_read_part): Remove, update callers to - use readable_regcache::raw_read_part instead. - * regcache.c (regcache_raw_read_part): Remove. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (regcache_cooked_read): Remove, update callers to - use readable_regcache::cooked_read instead. - * regcache.c (regcache_cooked_read): Remove. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (regcache_raw_write): Remove, update callers to use - regcache::raw_write instead. - * regcache.c (regcache_raw_write): Remove. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (regcache_raw_read): Remove, update callers to use - readable_regcache::raw_read instead. - * regcache.c (regcache_raw_read): Remove. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (regcache_raw_update): Remove, update callers to - use readable_regcache::raw_update instead. - * regcache.c (regcache_raw_update): Remove. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (regcache_register_status): Remove, update callers - to use reg_buffer::get_register_status directly instead. - * regcache.c (regcache_register_status): Remove. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.h (regcache_get_ptid): Remove, update all callers to - call regcache::ptid instead. - * regcache.c (regcache_get_ptid): Remove. - -2018-05-30 Simon Marchi <simon.marchi@ericsson.com> - - * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o. - -2018-05-30 Pedro Alves <palves@redhat.com> - - * common/common-exceptions.h (exception_rethrow): Use - ATTRIBUTE_NORETURN. - -2018-05-29 Simon Marchi <simon.marchi@polymtl.ca> - - * breakpoint.c (print_solib_event, check_status_catch_solib): - Remove struct keyword in range-based for loops. - * dbxread.c (find_corresponding_bincl_psymtab): Likewise. - * dwarf2read.c (compute_delayed_physnames, rust_union_quirks); - Likewise. - * linespec.c (find_superclass_methods, search_minsyms_for_name): - Likewise. - * symfile.c (addr_info_make_relative): Likewise. - * thread.c (value_in_thread_stack_temporaries): Likewise. - -2018-06-12 Weimin Pan <weimin.pan@oracle.com> - - PR gdb/16841 - * valops.c (value_struct_elt_for_reference): Call check_typedef on - aggregate type to get its real type before accessing it. - -2018-05-29 Weimin Pan <weimin.pan@oracle.com> - - * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration. - * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition. - * coff-pe-read.c (add_pe_forwarded_sym): Replace - lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol. - * glibc-tdep.c (glibc_skip_solib_resolver): Likewise. - * jit.c (jit_breakpoint_re_set_internal): Likewise. - * printcmd.c (info_address_command): Likewise. - -2018-05-29 Tom Tromey <tom@tromey.com> - - * windows-nat.c (handle_exception): Update fall-through comment. - -2018-05-29 Tom Tromey <tom@tromey.com> - - * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC. - (struct program_space) <added_solibs>: Now a std::vector. - * breakpoint.c (print_solib_event): Update. - (check_status_catch_solib): Update. - * progspace.c (clear_program_space_solib_cache): Update. - * solib.c (update_solib_list): Update. - -2018-05-29 Tom Tromey <tom@tromey.com> - - * python/py-type.c (typy_richcompare): Update. - * guile/scm-type.c (tyscm_equal_p_type_smob): Update. - * gdbtypes.h (types_deeply_equal): Return bool. - (types_equal): Likewise. - * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't - declare VEC. - (check_types_equal): Change worklist to std::vector. Return - bool. - (struct type_equality_entry): Add constructor. - (compare_maybe_null_strings): Return bool. - (check_types_worklist): Return bool. Change worklist to - std::vector. - (types_deeply_equal): Use std::vector. - (types_equal): Return bool. - (compare_maybe_null_strings): Simplify. - -2018-05-29 Tom Tromey <tom@tromey.com> - - * record-btrace.c (tp_t): Remove typedef. Don't declare VEC. - -2018-05-29 Tom Tromey <tom@tromey.com> - - * objc-lang.h: Don't include cp-support.h. - * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't - declare VEC. - -2018-05-27 Tom Tromey <tom@tromey.com> - - * Makefile.in (DEPFILES): Don't reference REMOTE_OBS. - -2018-05-25 Tom Tromey <tom@tromey.com> - - * value.c (value::location): Initialize. - -2018-05-25 Tom Tromey <tom@tromey.com> - - * dbxread.c (init_bincl_list): Remove. - (bincl_list): Now a std::vector. - (bincls_allocated, next_bincl): Remove. - (free_bincl_list, do_free_bincl_list_cleanup) - (make_cleanup_free_bincl_list): Remove. - (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore, - unique_xmalloc_ptr. - (find_corresponding_bincl_psymtab, read_dbx_symtab): Update. - (struct header_file_location): Add constructor. - (add_bincl_to_list): Remove. - -2018-05-25 Tom Tromey <tom@tromey.com> - - * tui/tui.c (tui_enable): Update. - * mi/mi-interp.c (mi_interp::init): Update. - * interps.h (class interp) <name>: New method. - <m_name>: Rename from name. - (~scoped_restore_interp): Update. - * interps.c (interp::interp): Update. - (interp_add, interp_set, interp_lookup_existing) - (current_interp_named_p): Update. - -2018-05-25 Tom Tromey <tom@tromey.com> - - * interps.c (interp_name): Remove. - * mi/mi-interp.c (mi_interp::init): Update. - * interps.h (interp_name): Remove. - (~scoped_restore_interp): Update. - * tui/tui.c (tui_enable): Update. - -2018-05-25 Tom Tromey <tom@tromey.com> - - * utils.c (fputs_maybe_filtered): Update. - * linespec.c (decode_line_full): Update. - * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified) - (mi_print_breakpoint_for_event, mi_solib_loaded) - (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed) - (mi_user_selected_context_changed): Update. - * mi/mi-main.c (mi_execute_command): Update. - * cli/cli-script.c (execute_control_command): Update. - * python/python.c (execute_gdb_command): Update. - * solib.c (info_sharedlibrary_command): Update. - * interps.c (interp_ui_out): Remove. - * interps.h (interp_ui_out): Remove. - -2018-05-25 Tom Tromey <tom@tromey.com> - - * tui/tui-interp.c (as_tui_interp): Use dynamic_cast. - * mi/mi-interp.c (as_mi_interp): Use dynamic_cast. - * cli/cli-interp.c (as_cli_interp): Use dynamic_cast. - -2018-05-25 Tom Tromey <tom@tromey.com> - - * cli/cli-interp.c (safe_execute_command): Use scoped_restore. - * interps.c (interp_exec): Use scoped_restore. - -2018-05-25 Tom Tromey <tom@tromey.com> - - * remote.c (remote_target::remote_file_get): Use - gdb::byte_vector. - (remote_target::remote_file_put): Likewise. - -2018-05-25 Tom Tromey <tom@tromey.com> - - * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now - a std::string. - (get_pe_section_index, add_pe_exported_sym): Update. - (read_pe_exported_syms): Use gdb::def_vector. - -2018-05-25 Tom Tromey <tom@tromey.com> - - * frame.c (remove_prev_frame): Remove. - (get_prev_frame_if_no_cycle): Use TRY/CATCH. - -2018-05-25 Maciej W. Rozycki <macro@mips.com> - - * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset): - Remove prototypes. - * mips-linux-nat.c (supply_fpregset): Always call - `mips64_supply_fpregset' rather than `mips_supply_fpregset'. - (fill_fpregset): Always call `mips64_fill_fpregset' rather than - `mips_fill_fpregset'. - * mips-linux-tdep.c (mips_supply_fpregset) - (mips_supply_fpregset_wrapper, mips_fill_fpregset) - (mips_fill_fpregset_wrapper): Remove functions. - (mips64_supply_fpregset, mips64_fill_fpregset): Update comments. - (mips_linux_fpregset): Remove variable. - (mips_linux_iterate_over_regset_sections): Use - `mips64_linux_fpregset' in place of `mips_linux_fpregset'. - (mips_linux_o32_sigframe_init): Remove comment. - -2018-05-25 Pedro Alves <palves@redhat.com> - - * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS) - (struct readahead_cache, struct packet_reg, struct - remote_arch_state, class remote_state): Move higher up in the - file. - (remote_target::m_remote_state): Now an object instead of a pointer. - (remote_target::get_remote_state): Adjust. - -2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com> - - * stack.c (select_and_print_frame): Delete. - (struct function_bounds): Move struct within function. - (func_command): Most content moved into new function - find_frame_for_function, use new function, print result, add - function comment. - (find_frame_for_function): New function, now returns a result. - -2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * stack.c (iterate_over_block_arg_vars): Fix comment. - (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout. - -2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com> - - PR gdb/23203 - * frame.c - (scoped_restore_selected_frame::scoped_restore_selected_frame): - Define. - (scoped_restore_selected_frame::~scoped_restore_selected_frame): - Define. - * frame.h (class scoped_restore_selected_frame): New class. - * stack.c (print_frame_local_vars): Remove catching and rethrowing - of any exception, use scoped_restore_selected_frame to restore the - frame instead. - -2018-05-24 Pedro Alves <palves@redhat.com> - - * darwin-nat.h (darwin_nat_target::create_inferior): Mark with - override. - -2018-05-23 Tom Tromey <tom@tromey.com> - - * complaints.c (struct complaints): Remove. - (symfile_complaint_book): Remove. - (series): New global. - (complaint_internal): Update. - (clear_complaints): Update. - -2018-05-23 Tom Tromey <tom@tromey.com> - - * complaints.c (counters): New global. - (struct complain): Remove. - (struct complaints) <root>: Remove. - (complaint_sentinel): Remove. - (symfile_complaint_book): Update. - (find_complaint) Remove. - (complaint_internal, clear_complaints): Update. - -2018-05-23 Tom Tromey <tom@tromey.com> - - * complaints.c (struct complain) <file, line>: Remove. - (find_complaint): Remove file, line parameters. - (complaint_internal): Update. - -2018-05-23 Tom Tromey <tom@tromey.com> - - * complaints.c (vcomplaint): Remove. - (complaint_internal) Merge in contents of vcomplaint. - -2018-05-23 Tom Tromey <tom@tromey.com> - - * complaints.c (struct complaints) <explanation>: Remove. - (symfile_explanations): Remove. - (symfile_complaint_book): Update. - (vcomplaint): Update. - (struct explanation): Remove. - -2018-05-23 Tom Tromey <tom@tromey.com> - - * complaints.c (symfile_complaints): Remove. - (complaint_internal): Remove "complaints" parameter. - (clear_complaints, vcomplaint): Remove "c" parameter. - (get_complaints): Remove. - * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint) - (dwarf2_debug_line_missing_file_complaint) - (dwarf2_debug_line_missing_end_sequence_complaint) - (dwarf2_complex_location_expr_complaint) - (dwarf2_const_value_length_mismatch_complaint) - (dwarf2_section_buffer_overflow_complaint) - (dwarf2_macro_malformed_definition_complaint) - (dwarf2_invalid_attrib_class_complaint) - (create_addrmap_from_index, dw2_symtab_iter_next) - (dw2_expand_marked_cus) - (dw2_debug_names_iterator::find_vec_in_debug_names) - (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next) - (create_debug_type_hash_table, init_cutu_and_read_dies) - (partial_die_parent_scope, add_partial_enumeration) - (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die) - (dwarf2_compute_name, dwarf2_physname, read_namespace_alias) - (read_import_statement, read_file_scope, create_dwo_cu_reader) - (create_cus_hash_table, create_dwp_hash_table) - (inherit_abstract_dies, read_func_scope, read_call_site_scope) - (dwarf2_rnglists_process, dwarf2_ranges_process) - (dwarf2_add_type_defn, dwarf2_attach_fields_to_type) - (dwarf2_add_member_fn, get_alignment, maybe_set_alignment) - (handle_struct_member_die, process_structure_scope) - (read_array_type, read_common_block, read_module_type) - (read_tag_pointer_type, read_typedef, read_base_type) - (read_subrange_type, load_partial_dies, partial_die_info::read) - (partial_die_info::read, partial_die_info::read) - (partial_die_info::read, read_checked_initial_length_and_offset) - (dwarf2_string_attr, read_formatted_entries) - (dwarf_decode_line_header) - (lnp_state_machine::check_line_address, dwarf_decode_lines_1) - (new_symbol, dwarf2_const_value_attr, lookup_die_type) - (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset) - (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) - (get_signatured_type, get_DW_AT_signature_type) - (decode_locdesc, file_file_name, consume_improper_spaces) - (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header) - (dwarf_decode_macro_bytes, dwarf_decode_macros) - (dwarf2_symbol_mark_computed, set_die_type) - (read_attribute_value): Update. - * stap-probe.c (handle_stap_probe, get_stap_base_address): - Update. - * dbxread.c (unknown_symtype_complaint) - (lbrac_mismatch_complaint, repeated_header_complaint) - (set_namestring, function_outside_compilation_unit_complaint) - (read_dbx_symtab, process_one_symbol): Update. - * gdbtypes.c (stub_noname_complaint): Update. - * windows-nat.c (handle_unload_dll): Update. - * coffread.c (coff_symtab_read, enter_linenos, decode_type) - (decode_base_type): Update. - * xcoffread.c (bf_notfound_complaint, ef_complaint) - (eb_complaint, record_include_begin, record_include_end) - (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab) - (process_xcoff_symbol, read_symbol) - (function_outside_compilation_unit_complaint) - (scan_xcoff_symtab): Update. - * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update. - * buildsym.c (finish_block_internal, make_blockvector) - (end_symtab_get_static_block, augment_type_symtab): Update. - * dtrace-probe.c (dtrace_process_dof) - (dtrace_static_probe_ops::get_probes): Update. - * complaints.h (struct complaint): Don't declare. - (symfile_complaints): Remove. - (complaint_internal): Remove "complaints" parameter. - (complaint): Likewise. - (clear_complaints): Likewise. - * symfile.c (syms_from_objfile_1, finish_new_objfile) - (reread_symbols): Update. - * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program) - (dwarf2_frame_cache, decode_frame_entry): Update. - * dwarf2loc.c (dwarf_reg_to_regnum): Update. - * objc-lang.c (lookup_objc_class, lookup_child_selector) - (info_selectors_command): Update. - * macrotab.c (macro_include, check_for_redefinition) - (macro_undef): Update. - * objfiles.c (filter_overlapping_sections): Update. - * stabsread.c (invalid_cpp_abbrev_complaint) - (reg_value_complaint, stabs_general_complaint, dbx_lookup_type) - (define_symbol, error_type, read_type, rs6000_builtin_type) - (stabs_method_name_from_physname, read_member_functions) - (read_cpp_abbrev, read_baseclasses, read_tilde_fields) - (attach_fields_to_type, complain_about_struct_wipeout) - (read_range_type, read_args, common_block_start) - (common_block_end, cleanup_undefined_types_1, scan_file_globals): - Update. - * mdebugread.c (index_complaint, unknown_ext_complaint) - (basic_type_complaint, bad_tag_guess_complaint) - (bad_rfd_entry_complaint, unexpected_type_code_complaint) - (reg_value_complaint, parse_symbol, parse_type, upgrade_type) - (parse_procedure, parse_lines) - (function_outside_compilation_unit_complaint) - (parse_partial_symbols, psymtab_to_symtab_1, cross_ref) - (bad_tag_guess_complaint, reg_value_complaint): Update. - * cp-support.c (demangled_name_complaint): Update. - * macroscope.c (sal_macro_scope): Update. - * dwarf-index-write.c (class debug_names): Update. - -2018-05-23 Tom Tromey <tom@tromey.com> - - * complaints.c (clear_complaints): Remove "noisy" parameter. - * complaints.h (clear_complaints): Update. - * symfile.c (syms_from_objfile_1, finish_new_objfile) - (reread_symbols): Update. - -2018-05-23 Tom Tromey <tom@tromey.com> - - * complaints.c (enum complaint_series): Remove FIRST_MESSAGE, - SUBSEQUENT_MESSAGE. - (vcomplaint, clear_complaints): Update. - (symfile_explanations): Remove some messages. - -2018-05-23 Tom Tromey <tom@tromey.com> - - * complaints.c (internal_complaint): Remove. - * complaints.h (internal_complaint): Remove. - -2018-05-22 Maciej W. Rozycki <macro@mips.com> - - * i387-tdep.c (i387_collect_xsave): Make `i' unsigned. - -2018-05-22 Pedro Alves <palves@redhat.com> - - * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror) - (remote_fileio_badfd, remote_fileio_return_errno) - (remote_fileio_return_success, remote_fileio_func_open) - (remote_fileio_func_open, remote_fileio_func_close) - (remote_fileio_func_read, remote_fileio_func_write) - (remote_fileio_func_lseek, remote_fileio_func_rename) - (remote_fileio_func_unlink, remote_fileio_func_stat) - (remote_fileio_func_fstat, remote_fileio_func_gettimeofday) - (remote_fileio_func_isatty, remote_fileio_func_system): Add - remote_target parameter. - (remote_fio_func_map) <func>: Add remote_target parameter. - (do_remote_fileio_request, remote_fileio_request): - * remote-fileio.h (remote_fileio_request): - * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add - remote_target parameter. - (remote_notif_process, handle_notification): Adjust to pass down - the remote. - (remote_notif_state_allocate): Add remote_target parameter. Save - it. - * remote-notif.h (struct remote_target): Forward declare. - (struct notif_client) <parse, ack, can_get_pending_events>: Add - remote_target parameter. - (struct remote_notif_state) <remote>: New field. - (remote_notif_ack, remote_notif_parse): Add remote_target - parameter. - (remote_notif_state_allocate, remote_notif_state_allocate): Add - remote_target parameter. - * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info) - (threads_listing_context, rmt_thread_action, protocol_feature) - (packet_reg, stop_reply, stop_reply_p, enum packet_support) - (packet_result, struct threads_listing_context, remote_state): - Move definitions and declarations higher up. - (remote_target) <~remote_target>: Declare. - (remote_download_command_source, remote_file_put, remote_file_get) - (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite) - (remote_hostio_pread_vFile, remote_hostio_send_command) - (remote_hostio_set_filesystem, remote_hostio_open) - (remote_hostio_close, remote_hostio_unlink, remote_state) - (get_remote_state, get_remote_packet_size, get_memory_packet_size) - (get_memory_write_packet_size, get_memory_read_packet_size) - (append_pending_thread_resumptions, remote_detach_1) - (append_resumption, remote_resume_with_vcont) - (add_current_inferior_and_thread, wait_ns, wait_as) - (process_stop_reply, remote_notice_new_inferior) - (process_initial_stop_replies, remote_add_thread) - (btrace_sync_conf, remote_btrace_maybe_reopen) - (remove_new_fork_children, kill_new_fork_children) - (discard_pending_stop_replies, stop_reply_queue_length) - (check_pending_events_prevent_wildcard_vcont) - (discard_pending_stop_replies_in_queue, stop_reply) - (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply) - (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns) - (remote_interrupt_as, remote_interrupt_ns) - (remote_get_noisy_reply, remote_query_attached) - (remote_add_inferior, remote_current_thread, get_current_thread) - (set_thread, set_general_thread, set_continue_thread) - (set_general_process, write_ptid) - (remote_unpack_thread_info_response, remote_get_threadinfo) - (parse_threadlist_response, remote_get_threadlist) - (remote_threadlist_iterator, remote_get_threads_with_ql) - (remote_get_threads_with_qxfer) - (remote_get_threads_with_qthreadinfo, extended_remote_restart) - (get_offsets, remote_check_symbols, remote_supported_packet) - (remote_query_supported, remote_packet_size) - (remote_serial_quit_handler, remote_detach_pid) - (remote_vcont_probe, remote_resume_with_hc) - (send_interrupt_sequence, interrupt_query) - (remote_notif_get_pending_events, fetch_register_using_p) - (send_g_packet, process_g_packet, fetch_registers_using_g) - (store_register_using_P, store_registers_using_G) - (set_remote_traceframe, check_binary_download) - (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1) - (remote_xfer_live_readonly_partial, remote_read_bytes) - (remote_send_printf, remote_flash_write, readchar) - (remote_serial_write, putpkt, putpkt_binary, skip_frame) - (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane) - (getpkt_or_notif_sane, remote_vkill, remote_kill_k) - (extended_remote_disable_randomization, extended_remote_run) - (send_environment_packet, extended_remote_environment_support) - (extended_remote_set_inferior_cwd, remote_write_qxfer) - (remote_read_qxfer, push_stop_reply, vcont_r_supported) - (packet_command): Now methods of ... - (remote_target): ... this class. - (m_remote_state) <remote_target>: New field. - (struct remote_state) <stop_reply_queue, - remote_async_inferior_event_token, wait_forever_enabled_p>: New - fields. - (remote_state::remote_state): Allocate stop_reply_queue. - (remote_state): Delete global. - (get_remote_state_raw): Delete. - (remote_target::get_remote_state): Allocate m_remote_state on - demand. - (get_current_remote_target): New. - (remote_ops, extended_remote_ops): Delete. - (wait_forever_enabled_p, remote_async_inferior_event_token): - Delete, moved to struct remote_state. - (remote_target::close): Delete self. Destruction bits split to - ... - (remote_target::~remote_target): ... this. - (show_memory_packet_size): Adjust to use - get_current_remote_target. - (struct protocol_feature) <func>: Add remote_target parameter. - All callers adjusted. - (curr_quit_handler_target): New. - (remote_serial_quit_handler): Reimplement. - (remote_target::open_1): Adjust to use get_current_remote_target. - Heap-allocate remote_target/extended_remote_target instances. - (vcont_builder::vcont_builder): Add remote_target parameter, and - save it in m_remote. All callers adjusted. - (vcont_builder::m_remote): New field. - (vcont_builder::restart, vcont_builder::flush) - (vcont_builder::push_action): Use it. - (remote_target::commit_resume): Use it. - (struct queue_iter_param) <remote>: New field. - (remote_target::remove_new_fork_children): Fill in 'remote' field. - (check_pending_event_prevents_wildcard_vcont_callback_data): New. - (check_pending_event_prevents_wildcard_vcont_callback) - (remote_target::check_pending_events_prevent_wildcard_vcont) - (remote_target::discard_pending_stop_replies) - (remote_target::discard_pending_stop_replies_in_queue) - (remote_target::remote_notif_remove_queued_reply): Fill in - 'remote' field. - (remote_notif_get_pending_events): New. - (remote_target::readchar, remote_target::remote_serial_write): - Save/restore curr_quit_handler_target. - (putpkt): New. - (kill_new_fork_children): Fill in 'remote' field. - (packet_command): Use get_current_remote_target, defer to - remote_target method of same name. - (scoped_remote_fd::scoped_remote_fd): Add 'remote_target' - parameter, and save it in m_remote. All callers adjusted. - (scoped_remote_fd::release): Use m_remote. - (scoped_remote_fd::m_remote): New field. - (remote_file_put, remote_file_get, remote_file_delete): Use - get_current_remote_target, defer to remote_target method of same - name. - (remote_btrace_reset): Add remote_state paremeter. Update all - callers. - (remote_async_inferior_event_handler). Pass down 'data'. - (remote_new_objfile): Use get_current_remote_target. - (remote_target::vcont_r_supported): New. - (set_range_stepping): Use get_current_remote_target and - remote_target::vcont_r_supported. - (_initialize_remote): Don't allocate 'remote_state' and - 'stop_reply_queue' globals. - * remote.h (struct remote_target): Forward declare. - (getpkt, putpkt, remote_notif_get_pending_events): Add - 'remote_target' parameter. - -2018-05-22 Pedro Alves <palves@redhat.com> - - * remote.c (vcont_builder): Now a class. Make all data members - private. - (vcont_builder) <vcont_builder, restart, flush, push_action>: - Declare methods. - (vcont_builder_restart): Rename to ... - (vcont_builder::restart): ... this. - (vcont_builder_flush): Rename to ... - (vcont_builder::flush): ... this. - (vcont_builder_push_action): Rename to ... - (vcont_builder::push_action): ... this. - (remote_target::commit_resume): Adjust. - -2018-05-22 Pedro Alves <palves@redhat.com> - - * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ... - (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this. - (get_fixed_memory_packet_size): New. - (get_memory_packet_size): Use it. - (set_memory_packet_size): Don't override the config size with - DEFAULT_MAX_MEMORY_PACKET_SIZE. - (show_memory_packet_size): Use get_fixed_memory_packet_size. - Don't refer to get_memory_packet_size if not connected to a remote - target. Show "(default)" if configured size is 0. - -2018-05-22 Pedro Alves <palves@redhat.com> - - * remote.c (remote_target::mourn_inferior): Move - discard_pending_stop_replies call here from ... - (_initialize_remote): ... here. - -2018-05-22 Pedro Alves <palves@redhat.com> - - * remote.c (compare_section_command): Remove set_general_process - call. - -2018-05-22 Pedro Alves <palves@redhat.com> - - * remote.c (struct packet_reg, struct remote_arch_state): - Move higher up in the file. - (remote_state) <m_arch_states>: Store remote_arch_state values - instead of remote_arch_state pointers. - (remote_state::get_remote_arch_state): Adjust. - -2018-05-22 Pedro Alves <palves@redhat.com> - - * remote.c: Include <unordered_map>. - (remote_state): Now a class. - (remote_state) <get_remote_arch_state>: Declare method. - <get_remote_arch_state>: New field. - (remote_arch_state) <remote_arch_state>: Declare ctor. - <regs>: Now a unique_ptr. - (remote_gdbarch_data_handle): Delete. - (get_remote_arch_state): Delete. - (remote_state::get_remote_arch_state): New. - (get_remote_state): Adjust to call remote_state's - get_remote_arch_state method. - (init_remote_state): Delete, bits factored out to ... - (remote_arch_state::remote_arch_state): ... this new method. - (get_remote_packet_size, get_memory_packet_size) - (process_g_packet, remote_target::fetch_registers) - (remote_target::prepare_to_store, store_registers_using_G) - (remote_target::store_registers, remote_target::get_trace_status): - Adjust to call remote_state's method. - (_initialize_remote): Remove reference to - remote_gdbarch_data_handle. - -2018-05-22 Pedro Alves <palves@redhat.com> - - * remote.c (struct readahead_cache) <invalidate, invalidate_fd, - pread>: New method declarations. - (remote_target::open_1): Adjust. - (readahead_cache_invalidate): Rename to ... - (readahead_cache::invalidate): ... this, and adjust to be a class - method. - (readahead_cache_invalidate_fd): Rename to ... - (readahead_cache::invalidate_fd): ... this, and adjust to be a - class method. - (remote_hostio_pwrite): Adjust. - (remote_hostio_pread_from_cache): Rename to ... - (readahead_cache::pread): ... this, and adjust to be a class - method. - (remote_hostio_close): Adjust. - -2018-05-22 Pedro Alves <palves@redhat.com> - - * remote.c (remote_hostio_close_cleanup): Delete. - (class scoped_remote_fd): New. - (remote_file_put, remote_file_get): Use it. - -2018-05-22 Pedro Alves <palves@redhat.com> - - (struct vCont_action_support): Use bool and initialize all fields. - (struct readahead_cache): Initialize all fields. - (remote_state): Use bool and initialize all fields. - (remote_state::remote_state, remote_state::~remote_state): New. - (new_remote_state): Delete. - (_initialize_remote): Use new to allocate remote_state. - -2018-05-22 Pedro Alves <palves@redhat.com> - 張俊芝 <zjz@zjz.name> - - PR gdb/22973 - * c-exp.y: Include "c-support.h". - (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead - of tolower. Use c_ident_is_alpha to scan names. - * c-lang.c: Include "c-support.h". - (convert_ucn, convert_octal, convert_hex, convert_escape): Use - ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit. - * c-support.h: New file, with bits factored out from ... - * cp-name-parser.y: ... this file. - Include "c-support.h". - (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to - c-support.h and renamed. - (symbol_end, yylex): Adjust. - -2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> - - * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the - parameter type to CORE_ADDR. - * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the - parameter type in declaration to CORE_ADDR. - * ppc-linux-tdep.c (ppc_linux_core_read_description): Call - target_auxv_search to get AT_HWCAP and use the result to get the - target description. - * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type - to CORE_ADDR. Remove the cast of the return value to unsigned - long. Fix error predicate of target_auxv_search. - (ppc_linux_nat_target::read_description): Change the type of the - hwcap variable to CORE_ADDR. - -2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> - - * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only - if the size of fpscr is larger than 32 bits. - -2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> - - * ppc-linux-tdep.c (ppc_linux_vsxregset): New function. - (ppc32_linux_vsxregmap): New global. - (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap, - regcache_supply_regset, and regcache_collect_regset. - * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare. - * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove. - (fetch_vsx_register, store_vsx_register): Remove. - (fetch_vsx_registers): Add regno parameter. Get regset using - ppc_linux_vsxregset. Use regset to supply registers. - (store_vsx_registers): Add regno parameter. Get regset using - ppc_linux_vsxregset. Use regset to collect registers. - (fetch_register): Call fetch_vsx_registers instead of - fetch_vsx_register. - (store_register): Call store_vsx_registers instead of - store_vsx_register. - (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the - new regno parameter. - (store_ppc_registers): Call store_vsx_registers with -1 for the - new regno parameter. - * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget) - (ppc_collect_vsxregset): Remove. - -2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> - - * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register - offset fields. - * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers - for vector register offset fields. - (ppc64_fbsd_reg_offsets): Likewise. - * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment - to vector register offset fields. - * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment - to vector register offset fields. - * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to - vector register offset fields. - * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove - initializers for vector register offset fields. - (rs6000_aix64_reg_offsets): Likewise. - * rs6000-tdep.c (ppc_vrreg_offset): Remove. - (ppc_supply_vrregset): Remove. - (ppc_collect_vrregset): Remove. - * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function. - (ppc_linux_vrregset) : New function. - (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap) - (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals. - (ppc32_linux_vrregset): Remove. - (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset - and use result instead of ppc32_linux_vrregset. - (ppc32_linux_reg_offsets): Remove initializers for vector register - offset fields. - (ppc64_linux_reg_offsets): Likewise. - * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration. - * ppc-linux-nat.c: Include regset.h. - (gdb_vrregset_t): Adjust comment to account for little-endian - mode. - (supply_vrregset, fill_vrregset): Remove. - (fetch_altivec_register, store_altivec_register): Remove. - (fetch_altivec_registers): Add regno parameter. Get regset using - ppc_linux_vrregset. Use regset to supply registers. - (store_altivec_registers): Add regno parameter. Get regset using - ppc_linux_vrregset. Use regset to collect registers. - (fetch_register): Call fetch_altivec_registers instead of - fetch_altivec_register. - (store_register): Call store_altivec_registers instead of - store_altivec_register. - (fetch_ppc_registers): Call fetch_altivec_registers with -1 for - the new regno parameter. - (store_ppc_registers): Call store_altivec_registers with -1 for - the new regno parameter. - -2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> - - * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET) - (PPC_LINUX_SIZEOF_VSXREGSET): Define. - * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove. - (gdb_vrregset_t): Change array type size to - PPC_LINUX_SIZEOF_VRREGSET. - (gdb_vsxregset_t): Change array type size to - PPC_LINUX_SIZEOF_VSXREGSET. - * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): - Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and - PPC_LINUX_SIZEOF_VSXREGSET. - -2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> - - * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES. - * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to - nat/ppc-linux.c. - (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call - ppc_linux_target_wordsize with tid. - (ppc_linux_nat_target::read_description): Call ppc_linux_target - wordsize with tid. - * nat/ppc-linux.c: Include nat/gdb_ptrace.h. - (ppc64_64bit_inferior_p): Add static and inline specifiers. - (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add - tid parameter. Remove static specifier. - * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration. - (ppc_linux_target_wordsize): New declaration. - -2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> - - * arch/ppc-linux-common.c: New file. - * arch/ppc-linux-common.h: New file. - * arch/ppc-linux-tdesc.h: New file. - * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o. - * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o. - (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and - arch/ppc-linux-tdesc.h. - * ppc-linux-nat.c: Include arch/ppc-linux-common.h and - arch/ppc-linux-tdesc.h. - (ppc_linux_nat_target::read_description): Remove target - description matching code. Fill a ppc_linux_features struct and - call ppc_linux_match_description with it. Move comment about ISA - 2.05 to ppc-linux-common.c. - * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and - arch/ppc-linux-tdesc.h. - (ppc_linux_core_read_description): Remove target description - matching code. Fill a ppc_linux_features struct and call - ppc_linux_match_description with it. - * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l) - (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l) - (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l) - (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l) - (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l) - (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l) - (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l) - (tdesc_powerpc_e500l): Remove. - -2018-05-22 Joel Brobecker <brobecker@adacore.com> - - * ada-lang.c (catch_assert_command): Pass empty string instead - of NULL for excep_string argument. - -2018-05-22 Maciej W. Rozycki <macro@mips.com> - - * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if - the width of the requested register exceeds the width of the - `ptrace' data type. - -2018-05-21 Tom Tromey <tom@tromey.com> - - * printcmd.c (output_command): Remove. - (output_command_const): Rename to output_command. - * valprint.h (output_command): Rename from output_command_const. - * tracepoint.c (trace_dump_actions): Call output_command. - -2018-05-21 Tom Tromey <tom@tromey.com> - - * mi/mi-cmd-catch.c (mi_cmd_catch_assert) - (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update. - * ada-lang.h (create_ada_exception_catchpoint): Update. - * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a - std::string. - (create_excep_cond_exprs, ~ada_catchpoint) - (should_stop_exception, print_one_exception) - (print_mention_exception, print_recreate_exception): Update. - (ada_get_next_arg): Remove. - (catch_ada_exception_command_split): Use std::string. Change type - of "excep_string", "cond_string". - (catch_ada_exception_command): Update. - (create_ada_exception_catchpoint): Change type of excep_string. - (ada_exception_sal): Remove excep_string parameter. - (~ada_catchpoint): Remove. - -2018-05-21 Tom Tromey <tom@tromey.com> - - * ada-lang.c (ada_collect_symbol_completion_matches): Remove - cleanup. - -2018-05-21 Tom Tromey <tom@tromey.com> - - * ada-lang.c (ada_exception_message_1, ada_exception_message): - Return unique_xmalloc_ptr. - (print_it_exception): Update. - -2018-05-21 Tom Tromey <tom@tromey.com> - - * tracepoint.c (trace_dump_actions): Use std::string. - -2018-05-21 Tom Tromey <tom@tromey.com> - - * symfile.c (reread_symbols): Use std::string for original_name. - -2018-05-21 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr. - (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default - constructor. - -2018-05-20 Simon Marchi <simon.marchi@polymtl.ca> - - * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong - instance to... - (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this. - * objfiles.c (get_objfile_bfd_data): Allocate - objfile_per_bfd_storage with obstack_new when allocating on - obstack. - -2018-05-20 Simon Marchi <simon.marchi@ericsson.com> - - * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or - OBSTACK_ZALLOC. - * dwarf2-frame.c (dwarf2_build_frame_info): Likewise. - * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise. - * mdebugread.c (mdebug_build_psymtabs): Likewise. - (add_pending): Likewise. - (parse_symbol): Likewise. - (parse_partial_symbols): Likewise. - (psymtab_to_symtab_1): Likewise. - (new_psymtab): Likewise. - (elfmdebug_build_psymtabs): Likewise. - * minsyms.c (terminate_minimal_symbol_table): Likewise. - * objfiles.c (get_objfile_bfd_data): Likewise. - (objfile_register_static_link): Likewise. - * psymtab.c (allocate_psymtab): Likewise. - * stabsread.c (read_member_functions): Likewise. - * xcoffread.c (xcoff_end_psymtab): Likewise. - -2018-05-20 Simon Marchi <simon.marchi@ericsson.com> - - * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if - compiler supports std::is_trivially_constructible. - * common/poison.h: Include obstack.h. - (IsMallocable): Define to is_trivially_constructible if the - compiler supports it, define to true_type otherwise. - (xobnew): New. - (XOBNEW): Redefine. - (xobnewvec): New. - (XOBNEWVEC): Redefine. - * gdb_obstack.h (obstack_zalloc): New. - (OBSTACK_ZALLOC): Redefine. - (obstack_calloc): New. - (OBSTACK_CALLOC): Redefine. - (obstack_new): New. - * gdbarch.sh: Include gdb_obstack in gdbarch.h. - (gdbarch_obstack): New declaration in gdbarch.h, definition in - gdbarch.c. - (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use - obstack_calloc/obstack_zalloc. - (gdbarch_obstack_zalloc): Remove. - * target-descriptions.c (tdesc_data_init): Use obstack_new. - -2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * stack.c (backtrace_command_1): Remove useless variable int i. - -2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * stack.c (print_frame_info): Fix comment. - -2018-05-18 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (struct dwz_file): Add constructor, initializers. - <dwz_bfd>: Now a gdb_bfd_ref_ptr. - (~dwarf2_per_objfile): Update - (dwarf2_get_dwz_file): Use new. - * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a - unique_ptr. - -2018-05-18 Tom Tromey <tom@tromey.com> - - * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a - unique_ptr. - * dwarf2read.c (struct dwp_file): Add constructor and - initializers. - (open_and_init_dwp_file): Return a unique_ptr. - (dwarf2_per_objfile, create_dwp_hash_table) - (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2) - (lookup_dwo_unit_in_dwp): Update. - (open_and_init_dwp_file, get_dwp_file): Update. - -2018-05-18 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (dwarf2_per_objfile): Update. - (struct mapped_index): Add initializers. - (dwarf2_read_index): Use new. - (dw2_symtab_iter_init): Update. - * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a - unique_ptr. - -2018-05-18 Simon Marchi <simon.marchi@ericsson.com> - - * dwarf2read.c (mapped_index) <total_size>: Remove. - -2018-05-18 Simon Marchi <simon.marchi@ericsson.com> - - * unittests/format_pieces-selftests.c (test_format_specifier): - Add ARI comments. - -2018-05-18 Tom Tromey <tom@tromey.com> - - * c-typeprint.c (maybe_print_hole): New function. - (c_print_type_struct_field_offset): Update. - (c_type_print_base_struct_union): Call maybe_print_hole. - -2018-05-17 Keith Seitz <keiths@redhat.com> - - * breakpoint.c (build_bpstat_chain): New function, moved from - bpstat_stop_status. - (bpstat_stop_status): Add optional parameter, `stop_chain'. - If no stop chain is passed, call build_bpstat_chain to build it. - * breakpoint.h (build_bpstat_chain): Declare. - (bpstat_stop_status): Move documentation here from breakpoint.c. - * infrun.c (handle_signal_stop): Before eliding inlined frames, - build the stop chain and pass it to skip_inline_frames. - Pass this stop chain to bpstat_stop_status. - * inline-frame.c: Include breakpoint.h. - (stopped_by_user_bp_inline_frame): New function. - (skip_inline_frames): Add parameter `stop_chain'. - Move documention to inline-frame.h. - If non-NULL, use stopped_by_user_bp_inline_frame to determine - whether the frame should be elided. - * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'. - Add moved documentation and update for new parameter. - -2018-05-17 Simon Marchi <simon.marchi@ericsson.com> - - PR cli/14975 - * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add - unittests/format_pieces-selftests.c. - * common/format.h (format_piece) <operator==>: New. - (format_pieces) <operator[]>: Remove. - * common/format.c (format_pieces::format_pieces): Handle \e. - * unittests/format_pieces-selftests.c: New. - -2018-05-17 Tom Tromey <tom@tromey.com> - - PR symtab/23010: - * dwarf2read.c (load_cu, dw2_do_instantiate_symtab) - (dw2_instantiate_symtab): Add skip_partial parameter. - (dw2_find_last_source_symtab, dw2_map_expand_apply) - (dw2_lookup_symbol, dw2_expand_symtabs_for_function) - (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname) - (dw2_expand_symtabs_matching_one) - (dw2_find_pc_sect_compunit_symtab) - (dw2_debug_names_lookup_symbol) - (dw2_debug_names_expand_symtabs_for_function): Update. - (init_cutu_and_read_dies): Add skip_partial parameter. - (process_psymtab_comp_unit, build_type_psymtabs_1) - (process_skeletonless_type_unit, load_partial_comp_unit) - (psymtab_to_symtab_1): Update. - (load_full_comp_unit): Add skip_partial parameter. - (process_imported_unit_die, dwarf2_read_addr_index) - (follow_die_offset, dwarf2_fetch_die_loc_sect_off) - (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off) - (read_signatured_type): Update. - -2018-05-17 Simon Marchi <simon.marchi@ericsson.com> - - * value.c (release_value): Remove unused variable. - (record_latest_value): Likewise. - (access_value_history): Likewise. - (preserve_values): Likewise. - -2018-05-17 Tom Tromey <tom@tromey.com> - - * extension.h (struct ext_lang_type_printers) <py_type_printers>: - Initialize. - -2018-05-16 Maciej W. Rozycki <macro@mips.com> - - PR gdb/22286 - * linux-nat-trad.c (linux_nat_trad_target::fetch_register): - Also handle registers whose width is not a multiple of - PTRACE_TYPE_RET. - (linux_nat_trad_target::store_register): Likewise. - -2018-05-16 Tom Tromey <tom@tromey.com> - - * gdbcore.h (core_bfd): Redefine. - * corelow.c (core_target::close): Update. - (core_target_open): Update. - * progspace.h (struct program_space) <cbfd>: Now a - gdb_bfd_ref_ptr. - -2018-05-16 Tom Tromey <tom@tromey.com> - - PR cli/19551: - * symfile-add-flags.h (enum symfile_add_flags) - <SYMFILE_NOT_FILENAME>: New constant. - * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get - objfile name from BFD. - (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME. - * minidebug.c (find_separate_debug_file_in_section): Put - ".gnu_debugdata" into BFD's file name. - -2018-05-16 Simon Marchi <simon.marchi@ericsson.com> - - * regcache.c (regcache_read_ftype, regcache_write_ftype): - Remove. - -2018-05-15 Tamar Christina <tamar.christina@arm.com> - - PR binutils/21446 - * aarch64-tdep.c (aarch64_analyze_prologue, - aarch64_software_single_step, aarch64_displaced_step_copy_insn): - Indicate not interested in errors. - -2018-05-15 Maciej W. Rozycki <macro@mips.com> - - * mips-linux-nat.c (mips_linux_nat_target::fetch_registers): - Supply the MIPS_ZERO_REGNUM register. - -2018-05-15 Maciej W. Rozycki <macro@mips.com> - - * mips-tdep.c (mask_address_var): Make variable static. - -2018-05-14 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (rust_union_quirks): Clear rust_unions. - -2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com> - - * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not - FXSAVE_ADDR for the mxcsr register. - -2018-05-11 Max Filippov <jcmvbkbc@gmail.com> - - * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition. - -2018-05-11 Pedro Alves <palves@redhat.com> - - * corelow.c (core_target) <core_target>: No longer inline. - Initialize m_core_gdbarch, m_core_vec and build the section table - here. - <~core_target>: New. - <core_gdbarch, get_core_register_section>: New methods. - <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields, - factored out from ... - <core_data, core_vec, core_gdbarch>: ... these deleted globals. - (core_ops): Delete. - (sniff_core_bfd): Add gdbarch parameter. - (core_close): Delete, merged into ... - (core_target::close): ... here. Delete self. - (core_close_cleanup): Delete. - (core_target_open): Allocate a core_target on the heap. Use a - unique_ptr instead of a cleanup. Bits moved into the core_target - ctor. Adjust to use core_target methods instead of globals. - (get_core_register_section): Rename to ... - (core_target::get_core_register_section): ... this and adjust. - (struct get_core_registers_cb_data): New. - (get_core_registers_cb): Use it. Use bool. - (core_target::fetch_registers, core_target::files_info) - (core_target::xfer_partial, core_target::read_description) - (core_target::pid_to, core_target::thread_name): Adjust to - reference class fields instead of globals. - * target.h (struct target_ops_deleter, target_ops_up): New. - -2018-05-11 Pedro Alves <palves@redhat.com> - - * corefile.c (core_file_command): Move to corelow.c. - * corelow.c (the_core_target): Delete. - (core_file_command): Moved from corefile.c. Check exec_bfd - instead of the_core_target. Use target_detach instead of calling - into the_core_target directly. - (maybe_say_no_core_file_now): New. - (core_target::detach): Use it. - (_initialize_corelow): Remove references to the_core_target. - * gdbcore.h (the_core_target): Delete. - -2018-05-11 Tom Tromey <tromey@redhat.com> - Pedro Alves <palves@redhat.com> - - * corefile.c (core_bfd): Remove. - * gdbcore.h (core_bfd): Now a macro. - * progspace.h (struct program_space) <cbfd>: New field. - -2018-05-11 Tom Tromey <tom@tromey.com> - - * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use - gdb::def_vector. - -2018-05-10 Tom Tromey <tom@tromey.com> - - * configure: Rebuild. - * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3. - -2018-05-10 Joel Brobecker <brobecker@adacore.com> - - PR server/23158: - * regformats/regdat.sh: Adjust script, following the addition - of the new expedite_regs parameter to init_target_desc. - -2018-05-10 Omair Javaid <omair.javaid@linaro.org> - - PR gdb/23127 - * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to - set_gdbarch_significant_addr_bit. - * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to - set_gdbarch_significant_addr_bit. - * utils.c (address_significant): Update to sign extend addr. - -2018-05-09 Max Filippov <jcmvbkbc@gmail.com> - - * xtensa-linux-tdep.c (xtensa-tdep.h): New include. - (xtensa_linux_init_abi): Limit tdep->num_regs by - tdep->num_nopriv_regs. - * xtensa-tdep.c (xtensa_derive_tdep): Calculate - tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's - not initialized. - -2018-05-08 Simon Marchi <simon.marchi@ericsson.com> - - * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE. - -2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com> - - * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant. - (I387_MXCSR_INIT_VAL): New constant. - * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave - buffer if it was supplied by the inferior. - * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL. - (i387_xsave_get_clear_bv): New function. - (i387_supply_xsave): Only read x87 control registers from the - xsave buffer if the feature is enabled, and the state will have - been written, otherwise, provide a suitable default. - (i387_collect_xsave): Pre-clear all registers in xsave buffer, - including x87 control registers. Update control registers if they - have changed from the default value, and mark features as enabled - as required. - * i387-tdep.h (i387_xsave_get_clear_bv): Declare. - -2018-05-08 Ulrich Weigand <uweigand@de.ibm.com> - - * spu-tdep.c (info_spu_event_command): Fix output formatting. - -2018-05-07 Tom Tromey <tom@tromey.com> - - * configure: Rebuild. - * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond. - -2018-05-07 Tom Tromey <tom@tromey.com> - - PR tdep/20362: - * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D - bit. Use correct value for VDIV. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * configure: Rebuild. - * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * linux-record.c (record_linux_system_call) <case - RECORD_SYS_RECVFROM>: Add "break". - -2018-05-04 Tom Tromey <tom@tromey.com> - - * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>: - Add missing "break". - * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>: - Add missing "break". - -2018-05-04 Tom Tromey <tom@tromey.com> - - * rs6000-tdep.c (ppc_process_record_op4) - (ppc_process_record_op63): Add fall-through comment. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * i386-tdep.c (i386_process_record): Add fall-through comment. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * stabsread.c (define_symbol) <case 'p'>: Add fall-through - comment. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment. - * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment. - * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through - comment. - * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through - comment. - * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through - comment. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * s390-tdep.c (s390_process_record): Fix fall-through comments. - * xcoffread.c (scan_xcoff_symtab): Move comment later. - * symfile.c (section_is_mapped): Fix fall-through comment. - * stabsread.c (define_symbol, read_member_functions): Fix - fall-through comment. - * s390-linux-tdep.c (s390_process_record): Fix fall-through - comment. - * remote.c (remote_wait_as): Fix fall-through comment. - * p-exp.y (yylex): Fix fall-through comment. - * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through - comment. - * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment. - * mdebugread.c (parse_partial_symbols): Fix fall-through comment. - * jv-exp.y (yylex): Fix fall-through comment. - * go-exp.y (lex_one_token): Fix fall-through comment. - * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix - fall-through comment. - * f-exp.y (yylex): Fix fall-through comment. - * dwarf2read.c (process_die): Fix fall-through comments. - * dbxread.c (process_one_symbol): Fix fall-through comment. - * d-exp.y (lex_one_token): Fix fall-through comment. - * cp-name-parser.y (yylex): Fix fall-through comment. - * coffread.c (coff_symtab_read): Fix fall-through comment. - * c-exp.y (lex_one_token): Fix fall-through comment. - * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through - comment. - * arch/arm.c (arm_instruction_changes_pc): Fix fall-through - comment. - -2018-05-04 Tom Tromey <tom@tromey.com> - - PR python/22730: - * NEWS: Mention gdb.execute change. - * gdbcmd.h (execute_control_command): Don't declare. - * python/python.c (execute_gdb_command): Use read_command_lines_1, - execute_control_commands, execute_control_commands_to_string. - * cli/cli-script.h (execute_control_commands) - (execute_control_commands_to_string): Declare. - (execute_control_command): Add from_tty parameter. - * cli/cli-script.c (execute_control_commands) - (execute_control_commands_to_string): New functions. - (execute_user_command): Use execute_control_commands. - (execute_control_command_1): Add "from_tty" parameter. Update. - (execute_control_command): Likewise. - -2018-05-04 Tom Tromey <tom@tromey.com> - - PR python/22731: - * NEWS: Mention that breakpoint commands are writable. - * python/py-breakpoint.c (bppy_set_commands): New function. - (breakpoint_object_getset) <"commands">: Use it. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * tracepoint.c (actions_command): Update. - * mi/mi-cmd-break.c (mi_command_line_array) - (mi_command_line_array_cnt, mi_command_line_array_ptr) - (mi_read_next_line): Remove. - (mi_cmd_break_commands): Update. - * cli/cli-script.h (read_command_lines, read_command_lines_1): Use - function_view. - * cli/cli-script.c (get_command_line): Update. - (process_next_line): Use function_view. Constify. - (recurse_read_control_structure, read_command_lines) - (read_command_lines_1): Change argument types to function_view. - (do_define_command, document_command): Update. - * breakpoint.h (check_tracepoint_command): Don't declare. - * breakpoint.c (check_tracepoint_command): Remove. - (commands_command_1, create_tracepoint_from_upload): Update. - -2018-05-04 Tom Tromey <tom@tromey.com> - - PR gdb/11750: - * cli/cli-script.h (enum command_control_type) <define_control>: - New constant. - * cli/cli-script.c (multi_line_command_p): Handle define_control. - (build_command_line, execute_control_command_1) - (process_next_line): Likewise. - (do_define_command): New function, extracted from define_command. - (define_command): Use it. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * tracepoint.c (actions_command): Update. - * cli/cli-script.h (read_command_lines): Update. - * cli/cli-script.c (read_command_lines): Constify prompt_arg. - (MAX_TMPBUF): Remove define. - (define_command): Use string_printf. - (document_command): Likewise. - * breakpoint.c (commands_command_1): Update. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * top.c (execute_command): Update. - * cli/cli-script.h (print_command_lines): Now varargs. - * cli/cli-script.c (print_command_lines): Now varargs. - (execute_control_command_1) <case while_control, case if_control>: - Update. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * tracepoint.c (all_tracepoint_actions): Rename from - all_tracepoint_actions_and_cleanup. Change return type. - (actions_command, encode_actions_1, encode_actions) - (trace_dump_actions, tdump_command): Update. - * remote.c (remote_download_command_source): Update. - * python/python.c (gdbpy_eval_from_control_command) - (python_command, python_interactive_command): Update. - * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. - * guile/guile.c (guile_command) - (gdbscm_eval_from_control_command, guile_command): Update. - * compile/compile.c (compile_code_command) - (compile_print_command, compile_to_object): Update. - * cli/cli-script.h (struct command_lines_deleter): New. - (counted_command_line): New typedef. - (struct command_line): Add constructor, destructor. - <body_list>: Remove. - <body_list_0, body_list_1>: New members. - (command_line_up): Remove typedef. - (read_command_lines, read_command_lines_1, get_command_line): - Update. - (copy_command_lines): Don't declare. - * cli/cli-script.c (build_command_line): Use "new". - (get_command_line): Return counted_command_line. - (print_command_lines, execute_user_command) - (execute_control_command_1, while_command, if_command): Update. - (realloc_body_list): Remove. - (process_next_line, recurse_read_control_structure): Update. - (read_command_lines, read_command_lines_1): Return counted_command_line. - (free_command_lines): Use "delete". - (copy_command_lines): Remove. - (define_command, document_command, show_user_1): Update. - * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now - a counted_command_line. - * breakpoint.h (counted_command_line): Remove typedef. - (breakpoint_set_commands): Update. - * breakpoint.c (check_no_tracepoint_commands) - (validate_commands_for_breakpoint): Update. - (breakpoint_set_commands): Change commands to be a - counted_command_line. - (commands_command_1, update_dprintf_command_list) - (create_tracepoint_from_upload): Update. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * cli/cli-decode.h (cmd_list_element): New constructor. - (~cmd_list_element): New destructor. - (struct cmd_list_element): Add initializers. - * cli/cli-decode.c (do_add_cmd): Use "new". - (delete_cmd): Use "delete". - -2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com> - Pedro Alves <palves@redhat.com> - - PR breakpoints/19806 and support for PR external/20207. - * NEWS: Mention Aarch64 watchpoint improvements. - * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed - watchpoints and PR external/20207 watchpoints. - * nat/aarch64-linux-hw-point.c - (kernel_supports_any_contiguous_range): New. - (aarch64_watchpoint_offset): New. - (aarch64_watchpoint_length): Support PR external/20207 watchpoints. - (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts. - (aarch64_point_is_aligned): Support PR external/20207 watchpoints. - (aarch64_align_watchpoint): New parameters aligned_offset_p and - next_addr_orig_p. Support PR external/20207 watchpoints. - (aarch64_downgrade_regs): New. - (aarch64_dr_state_insert_one_point): New parameters offset and - addr_orig. - (aarch64_dr_state_remove_one_point): Likewise. - (aarch64_handle_breakpoint): Update caller. - (aarch64_handle_aligned_watchpoint): Likewise. - (aarch64_handle_unaligned_watchpoint): Support addr_orig and - aligned_offset. - (aarch64_linux_set_debug_regs): Remove const from state. Call - aarch64_downgrade_regs. - (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp. - * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ... - (DR_CONTROL_MASK): ... this. - (struct aarch64_debug_reg_state): New field dr_addr_orig_wp. - (unsigned int aarch64_watchpoint_offset): New prototype. - (aarch64_linux_set_debug_regs): Remove const from state. - * utils.c (align_up, align_down): Move to ... - * common/common-utils.c (align_up, align_down): ... here. - * utils.h (align_up, align_down): Move to ... - * common/common-utils.h (align_up, align_down): ... here. - -2018-05-04 Joel Brobecker <brobecker@adacore.com> - - * sparc-tdep.c (sparc_structure_return_p): Re-implement to - match the ABI as summarized in GCC's gcc/config/sparc/sparc.c. - (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p. - Re-implement to match the ABI as summarized in GCC's - gcc/config/sparc/sparc.c. All callers updated. - (sparc32_store_arguments): Remove assertion. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * printcmd.c: Don't include tui.h. - (decode_format): Use skip_spaces. - -2018-05-04 Tom Tromey <tom@tromey.com> - - PR gdb/22619: - * printcmd.c (last_count): New global. - (x_command): Use saved count when repeating. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * nto-procfs.c (do_closedir_cleanup): Remove. - (procfs_pidlist): Use gdb_dir_up. - * procfs.c (do_closedir_cleanup): Remove. - (proc_update_threads): Use gdb_dir_up. - * common/filestuff.h (struct gdb_dir_deleter): New. - (gdb_dir_up): New typedef. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * ada-lang.c (print_mention_exception): Use std::string. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * ada-lang.c (create_excep_cond_exprs): Update. - (ada_exception_catchpoint_cond_string): Use std::string. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * ada-lang.c (xget_renaming_scope): Return std::string. - (old_renaming_is_invisible): Update. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr. - (target_bfd::target_bfd, target_bfd::~target_bfd): Update. - -2018-05-04 Ulrich Weigand <uweigand@de.ibm.com> - - * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error. - -2018-05-04 Tom Tromey <tom@tromey.com> - - * remote.c (remote_query_supported_append): Change type. - (remote_check_symbols): Update. - -2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com> - - PR gdb/11420 - * configure.ac: Prepend libpython. - * python/python-config.py: Likewise. - * configure: Regenerate. - -2018-05-03 Simon Marchi <simon.marchi@ericsson.com> - - * Makefile.in (%.c: %.l): Use -t instead of --stdout. - -2018-05-03 Pedro Alves <palves@redhat.com> - - * s390-linux-nat.c - (s390_linux_nat_target::have_continuable_watchpoint): Mark with - override. Write 'true' instead of '1'. - (s390_linux_nat_target::watchpoint_addr_within_range): Remove - declaration. - -2018-05-02 Pedro Alves <palves@redhat.com> - - * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use - add_inf_child_target. - * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use - add_inf_child_target. - * aix-thread.c (aix_thread_target_info): New. - (aix_thread_target) <shortname, longname, doc>: Delete. - <info>: New. - * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use - add_inf_child_target. - * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use - add_inf_child_target. - * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use - add_inf_child_target. - * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use - add_inf_child_target. - * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use - add_inf_child_target. - * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use - add_inf_child_target. - * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use - add_inf_child_target. - * arm-linux-nat.c (_initialize_arm_linux_nat): Use - add_inf_child_target. - * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use - add_inf_child_target. - * bfd-target.c (target_bfd_target_info): New. - (target_bfd) <shortname, longname, doc>: Delete. - <info>: New. - * bsd-kvm.c (bsd_kvm_target_info): New. - (bsd_kvm_target) <shortname, longname, doc>: Delete. - <info>: New. - (bsd_kvm_target::open): Rename to ... - (bsd_kvm_target_open): ... this. Adjust. - * bsd-uthread.c (bsd_uthread_target_info): New. - (bsd_uthread_target) <shortname, longname, doc>: Delete. - <info>: New. - * corefile.c (core_file_command): Adjust. - * corelow.c (core_target_info): New. - (core_target) <shortname, longname, doc>: Delete. - <info>: New. - (core_target::open): Rename to ... - (core_target_open): ... this. Adjust. - * ctf.c (ctf_target_info): New. - (ctf_target) <shortname, longname, doc>: Delete. - <info>: New. - (ctf_target::open): Rename to ... - (ctf_target_open): ... this. - (_initialize_ctf): Adjust. - * exec.c (exec_target_info): New. - (exec_target) <shortname, longname, doc>: Delete. - <info>: New. - (exec_target::open): Rename to ... - (exec_target_open): ... this. - * gdbcore.h (core_target_open): Declare. - * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target. - * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use - add_inf_child_target. - * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use - add_inf_child_target. - * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use - add_inf_child_target. - * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use - add_inf_child_target. - * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use - add_inf_child_target. - * i386-gnu-nat.c (_initialize_i386gnu_nat): Use - add_inf_child_target. - * i386-linux-nat.c (_initialize_i386_linux_nat): Use - add_inf_child_target. - * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use - add_inf_child_target. - * i386-obsd-nat.c (_initialize_i386obsd_nat): Use - add_inf_child_target. - * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use - add_inf_child_target. - * inf-child.c (inf_child_target_info): New. - (inf_child_target::info): New. - (inf_child_open_target): Remove 'target' parameter. Use - get_native_target instead. - (inf_child_target::open): Delete. - (add_inf_child_target): New. - * inf-child.h (inf_child_target) <shortname, longname, doc, open>: - Delete. - <info>: New. - (add_inf_child_target): Declare. - (inf_child_open_target): Declare. - * linux-thread-db.c (thread_db_target_info): New. - (thread_db_target) <shortname, longname, doc>: Delete. - <info>: New. - * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use - add_inf_child_target. - * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use - add_inf_child_target. - * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use - add_inf_child_target. - * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use - add_inf_child_target. - * make-target-delegates (print_class): Adjust. - * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use - add_inf_child_target. - * mips-linux-nat.c (_initialize_mips_linux_nat): Use - add_inf_child_target. - * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use - add_inf_child_target. - * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use - add_inf_child_target. - * nto-procfs.c (nto_native_target_info): New. - (nto_procfs_target_native) <shortname, longname, doc>: - Delete. - <info>: New. - (nto_procfs_target_info): New. - (nto_procfs_target_procfs) <shortname, longname, doc>: - Delete. - <info>: New. - (init_procfs_targets): Adjust. - * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use - add_inf_child_target. - * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use - add_inf_child_target. - * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use - add_inf_child_target. - * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use - add_inf_child_target. - * ravenscar-thread.c (ravenscar_target_info): New. - (ravenscar_thread_target) <shortname, longname, doc>: - Delete. - <info>: New. - * record-btrace.c (record_btrace_target_info): - (record_btrace_target) <shortname, longname, doc>: Delete. - <info>: New. - (record_btrace_target::open): Rename to ... - (record_btrace_target_open): ... this. Adjust. - * record-full.c (record_longname, record_doc): New. - (record_full_base_target) <shortname, longname, doc>: Delete. - <info>: New. - (record_full_target_info): New. - (record_full_target): <shortname>: Delete. - <info>: New. - (record_full_core_open_1, record_full_open_1): Update comments. - (record_full_base_target::open): Rename to ... - (record_full_open): ... this. - (cmd_record_full_restore): Update. - (_initialize_record_full): Update. - * remote-sim.c (remote_sim_target_info): New. - (gdbsim_target) <shortname, longname, doc>: Delete. - <info>: New. - (gdbsim_target::open): Rename to ... - (gdbsim_target_open): ... this. - (_initialize_remote_sim): Adjust. - * remote.c (remote_doc): New. - (remote_target_info): New. - (remote_target) <shortname, longname, doc>: Delete. - <info>: New. - (extended_remote_target_info): New. - (extended_remote_target) <shortname, longname, doc>: Delete. - <info>: New. - (remote_target::open_1): Make static. Adjust. - * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target. - * s390-linux-nat.c (_initialize_s390_nat): Use - add_inf_child_target. - * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use - add_inf_child_target. - * sol-thread.c (thread_db_target_info): New. - (sol_thread_target) <shortname, longname, doc>: Delete. - <info>: New. - * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use - add_inf_child_target. - * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use - add_inf_child_target. - * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use - add_inf_child_target. - * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use - add_inf_child_target. - * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use - add_inf_child_target. - * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use - add_inf_child_target. - * spu-linux-nat.c (_initialize_spu_nat): Use - add_inf_child_target. - * spu-multiarch.c (spu_multiarch_target_info): New. - (spu_multiarch_target) <shortname, longname, doc>: Delete. - <info>: New. - * target-delegates.c: Regenerate. - * target.c: Include <unordered_map>. - (target_ops_p): Delete. - (DEF_VEC_P(target_ops_p)): Delete. - (target_factories): New. - (test_target_info): New. - (test_target_ops::info): New. - (open_target): Adjust to use target_factories. - (add_target_with_completer): Rename to ... - (add_target): ... this. Change prototype. Register target_info - and open callback in target_factories. Register target_info in - command context instead of target_ops. - (add_target): Delete old implementation. - (add_deprecated_target_alias): Change prototype. Adjust. - (the_native_target): New. - (set_native_target, get_native_target): New. - (find_default_run_target): Use the_native_target. - (find_attach_target, find_run_target): Simplify. - (target_ops::open): Delete. - (dummy_target_info): New. - (dummy_target::shortname, dummy_target::longname) - (dummy_target::doc): Delete. - (dummy_target::info): New. - (debug_target::shortname, debug_target::longname) - (debug_target::doc): Delete. - (debug_target::info): New. - * target.h (struct target_info): New. - (target_ops::~target_ops): Add comment. - (target_ops::info): New. - (target_ops::shortname, target_ops::longname, target_ops::doc): No - longer virtual. Implement in terms of target_info. - (set_native_target, get_native_target): Declare. - (target_open_ftype): New. - (add_target, add_target_with_completer) - (add_deprecated_target_alias): Change prototype. - (test_target) <shortname, longname, doc>: Delete. - <info>: New. - * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use - add_inf_child_target. - * tracefile-tfile.c (tfile_target_info): New. - (tfile_target) <shortname, longname, doc>: Delete. - <info>: New. - (tfile_target::open): Rename to ... - (tfile_target_open): ... this. - (_initialize_tracefile_tfile): Adjust. - * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use - add_inf_child_target. - * windows-nat.c (_initialize_windows_nat): Use - add_inf_child_target. - * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use - add_inf_child_target. - -2018-05-02 Pedro Alves <palves@redhat.com> - - * linux-nat.h (linux_nat_target) <low_new_thread, - low_delete_thread, low_new_fork, low_forget_process, - low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>: - New virtual methods. - (linux_nat_set_new_thread, linux_nat_set_delete_thread) - (linux_nat_new_fork_ftype, linux_nat_set_new_fork) - (linux_nat_forget_process_ftype, linux_nat_set_forget_process) - (linux_nat_forget_process, linux_nat_set_siginfo_fixup) - (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event): - Delete. - * linux-fork.c (delete_fork): Adjust to call low method. - * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread) - (linux_nat_new_fork, linux_nat_forget_process_hook) - (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup) - (linux_nat_status_is_event): - (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp) - (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust - to call low method. - (sigtrap_is_event): Rename to ... - (linux_nat_target::low_status_is_event): ... this. - (linux_nat_set_status_is_event): Delete. - (save_stop_reason, linux_nat_wait_1) - (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call - low methods. - (linux_nat_set_new_thread, linux_nat_set_delete_thread) - (linux_nat_set_new_fork, linux_nat_set_forget_process) - (linux_nat_forget_process, linux_nat_set_siginfo_fixup) - (linux_nat_set_prepare_to_resume): Delete. - * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to - low virtual methods. - * amd64-linux-nat.c: Likewise. - * arm-linux-nat.c: Likewise. - * i386-linux-nat.c: Likewise. - * ia64-linux-nat.c: Likewise. - * mips-linux-nat.c: Likewise. - * ppc-linux-nat.c: Likewise. - * s390-linux-nat.c: Likewise. - * sparc64-linux-nat.c: Likewise. - * x86-linux-nat.c: Likewise. - * x86-linux-nat.h: Include "nat/x86-linux.h". - (x86_linux_nat_target) <low_new_fork, low_forget_process, - low_prepare_to_resume, low_new_thread, low_delete_thread>: - Override methods. - -2018-05-02 Pedro Alves <palves@redhat.com> - - * target.h (target_ops) - <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint, - stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint, - stopped_by_watchpoint, have_continuable_watchpoint, - stopped_data_address, watchpoint_addr_within_range, - can_accel_watchpoint_condition, can_run, thread_alive, - has_all_memory, has_memory, has_stack, has_registers, - has_execution, can_async_p, is_async_p, supports_non_stop, - always_non_stop_p, can_execute_reverse, supports_multi_process, - supports_enable_disable_tracepoint, - supports_disable_randomization, supports_string_tracing, - supports_evaluation_of_breakpoint_conditions, - can_run_breakpoint_commands, filesystem_is_local, - can_download_tracepoint, get_trace_state_variable_value, - set_trace_notes, get_tib_address, use_agent, can_use_agent, - record_is_replaying, record_will_replay, - augmented_libraries_svr4_read>: Adjust to return bool. - * aarch64-linux-nat.c: All implementations adjusted. - * aix-thread.c: All implementations adjusted. - * arm-linux-nat.c: All implementations adjusted. - * breakpoint.c: All implementations adjusted. - * bsd-kvm.c: All implementations adjusted. - * bsd-uthread.c: All implementations adjusted. - * corelow.c: All implementations adjusted. - * ctf.c: All implementations adjusted. - * darwin-nat.c: All implementations adjusted. - * darwin-nat.h: All implementations adjusted. - * exec.c: All implementations adjusted. - * fbsd-nat.c: All implementations adjusted. - * fbsd-nat.h: All implementations adjusted. - * gnu-nat.c: All implementations adjusted. - * gnu-nat.h: All implementations adjusted. - * go32-nat.c: All implementations adjusted. - * ia64-linux-nat.c: All implementations adjusted. - * inf-child.c: All implementations adjusted. - * inf-child.h: All implementations adjusted. - * inf-ptrace.c: All implementations adjusted. - * inf-ptrace.h: All implementations adjusted. - * linux-nat.c: All implementations adjusted. - * linux-nat.h: All implementations adjusted. - * mips-linux-nat.c: All implementations adjusted. - * nto-procfs.c: All implementations adjusted. - * ppc-linux-nat.c: All implementations adjusted. - * procfs.c: All implementations adjusted. - * ravenscar-thread.c: All implementations adjusted. - * record-btrace.c: All implementations adjusted. - * record-full.c: All implementations adjusted. - * remote-sim.c: All implementations adjusted. - * remote.c: All implementations adjusted. - * s390-linux-nat.c: All implementations adjusted. - * sol-thread.c: All implementations adjusted. - * spu-multiarch.c: All implementations adjusted. - * target-delegates.c: All implementations adjusted. - * target.c: All implementations adjusted. - * target.h: All implementations adjusted. - * tracefile-tfile.c: All implementations adjusted. - * tracefile.c: All implementations adjusted. - * tracefile.h: All implementations adjusted. - * windows-nat.c: All implementations adjusted. - * x86-linux-nat.h: All implementations adjusted. - * x86-nat.h: All implementations adjusted. - -2018-05-02 Pedro Alves <palves@redhat.com> - - * make-target-delegates (scan_target_h): Don't trim lines here. - Replace sequences of tabs and/or whitespace with a single - whitespace. - (top level, parsing methods): Trim each line before processing it - here. - -2018-05-02 Pedro Alves <palves@redhat.com> - John Baldwin <jhb@freebsd.org> - - * target.h (enum strata) <debug_stratum>: New. - (struct target_ops) <all delegation methods>: Replace by C++ - virtual methods, and drop "to_" prefix. All references updated - throughout. - <to_shortname, to_longname, to_doc, to_data, - to_have_steppable_watchpoint, to_have_continuable_watchpoint, - to_has_thread_control, to_attach_no_wait>: Delete, replaced by - virtual methods. All references updated throughout. - <can_attach, supports_terminal_ours, can_create_inferior, - get_thread_control_capabilities, attach_no_wait>: New - virtual methods. - <insert_breakpoint, remove_breakpoint>: Now - TARGET_DEFAULT_NORETURN methods. - <info_proc>: Now returns bool. - <to_magic>: Delete. - (OPS_MAGIC): Delete. - (current_target): Delete. All references replaced by references - to ... - (target_stack): ... this. New. - (target_shortname, target_longname): Adjust. - (target_can_run): Now a function declaration. - (default_child_has_all_memory, default_child_has_memory) - (default_child_has_stack, default_child_has_registers) - (default_child_has_execution): Remove target_ops parameter. - (complete_target_initialization): Delete. - (memory_breakpoint_target): New template class. - (test_target_ops): Refactor as a C++ class with virtual methods. - * make-target-delegates (NAME_PART): Tighten. - (POINTER_PART, CP_SYMBOL): New. - (SIMPLE_RETURN_PART): Reimplement. - (VEC_RETURN_PART): Expect less. - (RETURN_PART, VIRTUAL_PART): New. - (METHOD): Adjust to C++ virtual methods. - (scan_target_h): Remove reference to C99. - (dname): Output "target_ops::" prefix. - (write_function_header): Adjust to output a C++ class method. - (write_declaration): New. - (write_delegator): Adjust to output a C++ class method. - (tdname): Output "dummy_target::" prefix. - (write_tdefault, write_debugmethod): Adjust to output a C++ class - method. - (tdefault_names, debug_names): Delete. - (return_types, tdefaults, styles, argtypes_array): New. - (top level): All methods are delegators. - (print_class): New. - (top level): Print dummy_target and debug_target classes. - * target-delegates.c: Regenerate. - * target-debug.h (target_debug_print_enum_info_proc_what) - (target_debug_print_thread_control_capabilities) - (target_debug_print_thread_info_p): New. - * target.c (dummy_target): Delete. - (the_dummy_target, the_debug_target): New. - (target_stack): Now extern. - (set_targetdebug): Push/unpush debug target. - (default_child_has_all_memory, default_child_has_memory) - (default_child_has_stack, default_child_has_registers) - (default_child_has_execution): Remove target_ops parameter. - (complete_target_initialization): Delete. - (add_target_with_completer): No longer call - complete_target_initialization. - (target_supports_terminal_ours): Use regular delegation. - (update_current_target): Delete. - (push_target): No longer check magic number. Don't call - update_current_target. - (unpush_target): Don't call update_current_target. - (target_is_pushed): No longer check magic number. - (target_require_runnable): Skip for all stratums over - process_stratum. - (target_ops::info_proc): New. - (target_info_proc): Use find_target_at and - find_default_run_target. - (target_supports_disable_randomization): Use regular delegation. - (target_get_osdata): Use find_target_at. - (target_ops::open, target_ops::close, target_ops::can_attach) - (target_ops::attach, target_ops::can_create_inferior) - (target_ops::create_inferior, target_ops::can_run) - (target_can_run): New. - (default_fileio_target): Use regular delegation. - (target_ops::fileio_open, target_ops::fileio_pwrite) - (target_ops::fileio_pread, target_ops::fileio_fstat) - (target_ops::fileio_close, target_ops::fileio_unlink) - (target_ops::fileio_readlink): New. - (target_fileio_open_1, target_fileio_unlink) - (target_fileio_readlink): Always call the target method. Handle - FILEIO_ENOSYS. - (return_zero, return_zero_has_execution): Delete. - (init_dummy_target): Delete. - (dummy_target::dummy_target, dummy_target::shortname) - (dummy_target::longname, dummy_target::doc) - (debug_target::debug_target, debug_target::shortname) - (debug_target::longname, debug_target::doc): New. - (target_supports_delete_record): Use regular delegation. - (setup_target_debug): Delete. - (maintenance_print_target_stack): Skip debug_stratum. - (initialize_targets): Instantiate the_dummy_target and - the_debug_target. - * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to - use target_stack. - (target_auxv_search, fprint_target_auxv): Adjust. - (info_auxv_command): Adjust to use target_stack. - * auxv.h (target_auxv_parse): Remove 'ops' parameter. - * exceptions.c (print_flush): Handle a NULL target_stack. - * regcache.c (target_ops_no_register): Refactor as class with - virtual methods. - - * exec.c (exec_target): New class. - (exec_ops): Now an exec_target. - (exec_open, exec_close_1, exec_get_section_table) - (exec_xfer_partial, exec_files_info, exec_has_memory) - (exec_make_note_section): Refactor as exec_target methods. - (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops): - Delete. - (exec_target::find_memory_regions): New. - (_initialize_exec): Don't call init_exec_ops. - * gdbcore.h (exec_file_clear): Delete. - - * corefile.c (core_target): Delete. - (core_file_command): Adjust. - * corelow.c (core_target): New class. - (the_core_target): New. - (core_close): Remove target_ops parameter. - (core_close_cleanup): Adjust. - (core_target::close): New. - (core_open, core_detach, get_core_registers, core_files_info) - (core_xfer_partial, core_thread_alive, core_read_description) - (core_pid_to_str, core_thread_name, core_has_memory) - (core_has_stack, core_has_registers, core_info_proc): Rework as - core_target methods. - (ignore, core_remove_breakpoint, init_core_ops): Delete. - (_initialize_corelow): Initialize the_core_target. - * gdbcore.h (core_target): Delete. - (the_core_target): New. - - * ctf.c: (ctf_target): New class. - (ctf_ops): Now a ctf_target. - (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers) - (ctf_xfer_partial, ctf_get_trace_state_variable_value) - (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target - methods. - (init_ctf_ops): Delete. - (_initialize_ctf): Don't call it. - * tracefile-tfile.c (tfile_target): New class. - (tfile_ops): Now a tfile_target. - (tfile_open, tfile_close, tfile_files_info) - (tfile_get_tracepoint_status, tfile_trace_find) - (tfile_fetch_registers, tfile_xfer_partial) - (tfile_get_trace_state_variable_value, tfile_traceframe_info): - Refactor as tfile_target methods. - (tfile_xfer_partial_features): Remove target_ops parameter. - (init_tfile_ops): Delete. - (_initialize_tracefile_tfile): Don't call it. - * tracefile.c (tracefile_has_all_memory, tracefile_has_memory) - (tracefile_has_stack, tracefile_has_registers) - (tracefile_thread_alive, tracefile_get_trace_status): Refactor as - tracefile_target methods. - (init_tracefile_ops): Delete. - (tracefile_target::tracefile_target): New. - * tracefile.h: Include "target.h". - (tracefile_target): New class. - (init_tracefile_ops): Delete. - - * spu-multiarch.c (spu_multiarch_target): New class. - (spu_ops): Now a spu_multiarch_target. - (spu_thread_architecture, spu_region_ok_for_hw_watchpoint) - (spu_fetch_registers, spu_store_registers, spu_xfer_partial) - (spu_search_memory, spu_mourn_inferior): Refactor as - spu_multiarch_target methods. - (init_spu_ops): Delete. - (_initialize_spu_multiarch): Remove references to init_spu_ops, - complete_target_initialization. - - * ravenscar-thread.c (ravenscar_thread_target): New class. - (ravenscar_ops): Now a ravenscar_thread_target. - (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list) - (ravenscar_thread_alive, ravenscar_pid_to_str) - (ravenscar_fetch_registers, ravenscar_store_registers) - (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint) - (ravenscar_stopped_by_hw_breakpoint) - (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address) - (ravenscar_mourn_inferior, ravenscar_core_of_thread) - (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target - methods. - (init_ravenscar_thread_ops): Delete. - (_initialize_ravenscar): Remove references to - init_ravenscar_thread_ops and complete_target_initialization. - - * bsd-uthread.c (bsd_uthread_ops_hack): Delete. - (bsd_uthread_target): New class. - (bsd_uthread_ops): Now a bsd_uthread_target. - (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops. - (bsd_uthread_close, bsd_uthread_mourn_inferior) - (bsd_uthread_fetch_registers, bsd_uthread_store_registers) - (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive) - (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info) - (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods. - (bsd_uthread_target): Delete function. - (_initialize_bsd_uthread): Remove reference to - complete_target_initialization. - - * bfd-target.c (target_bfd_data): Delete. Fields folded into ... - (target_bfd): ... this new class. - (target_bfd_xfer_partial, target_bfd_get_section_table) - (target_bfd_close): Refactor as target_bfd methods. - (target_bfd::~target_bfd): New. - (target_bfd_reopen): Adjust. - (target_bfd::close): New. - - * record-btrace.c (record_btrace_target): New class. - (record_btrace_ops): Now a record_btrace_target. - (record_btrace_open, record_btrace_stop_recording) - (record_btrace_disconnect, record_btrace_close) - (record_btrace_async, record_btrace_info) - (record_btrace_insn_history, record_btrace_insn_history_range) - (record_btrace_insn_history_from, record_btrace_call_history) - (record_btrace_call_history_range) - (record_btrace_call_history_from, record_btrace_record_method) - (record_btrace_is_replaying, record_btrace_will_replay) - (record_btrace_xfer_partial, record_btrace_insert_breakpoint) - (record_btrace_remove_breakpoint, record_btrace_fetch_registers) - (record_btrace_store_registers, record_btrace_prepare_to_store) - (record_btrace_to_get_unwinder) - (record_btrace_to_get_tailcall_unwinder, record_btrace_resume) - (record_btrace_commit_resume, record_btrace_wait) - (record_btrace_stop, record_btrace_can_execute_reverse) - (record_btrace_stopped_by_sw_breakpoint) - (record_btrace_supports_stopped_by_sw_breakpoint) - (record_btrace_stopped_by_hw_breakpoint) - (record_btrace_supports_stopped_by_hw_breakpoint) - (record_btrace_update_thread_list, record_btrace_thread_alive) - (record_btrace_goto_begin, record_btrace_goto_end) - (record_btrace_goto, record_btrace_stop_replaying_all) - (record_btrace_execution_direction) - (record_btrace_prepare_to_generate_core) - (record_btrace_done_generating_core): Refactor as - record_btrace_target methods. - (init_record_btrace_ops): Delete. - (_initialize_record_btrace): Remove reference to - init_record_btrace_ops. - * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to - the execution_direction global. - (record_full_base_target, record_full_target) - (record_full_core_target): New classes. - (record_full_ops): Now a record_full_target. - (record_full_core_ops): Now a record_full_core_target. - (record_full_target::detach, record_full_target::disconnect) - (record_full_core_target::disconnect) - (record_full_target::mourn_inferior, record_full_target::kill): - New. - (record_full_open, record_full_close, record_full_async): Refactor - as methods of the record_full_base_target class. - (record_full_resume, record_full_commit_resume): Refactor - as methods of the record_full_target class. - (record_full_wait, record_full_stopped_by_watchpoint) - (record_full_stopped_data_address) - (record_full_stopped_by_sw_breakpoint) - (record_full_supports_stopped_by_sw_breakpoint) - (record_full_stopped_by_hw_breakpoint) - (record_full_supports_stopped_by_hw_breakpoint): Refactor as - methods of the record_full_base_target class. - (record_full_store_registers, record_full_xfer_partial) - (record_full_insert_breakpoint, record_full_remove_breakpoint): - Refactor as methods of the record_full_target class. - (record_full_can_execute_reverse, record_full_get_bookmark) - (record_full_goto_bookmark, record_full_execution_direction) - (record_full_record_method, record_full_info, record_full_delete) - (record_full_is_replaying, record_full_will_replay) - (record_full_goto_begin, record_full_goto_end, record_full_goto) - (record_full_stop_replaying): Refactor as methods of the - record_full_base_target class. - (record_full_core_resume, record_full_core_kill) - (record_full_core_fetch_registers) - (record_full_core_prepare_to_store) - (record_full_core_store_registers, record_full_core_xfer_partial) - (record_full_core_insert_breakpoint) - (record_full_core_remove_breakpoint) - (record_full_core_has_execution): Refactor - as methods of the record_full_core_target class. - (record_full_base_target::supports_delete_record): New. - (init_record_full_ops): Delete. - (init_record_full_core_ops): Delete. - (record_full_save): Refactor as method of the - record_full_base_target class. - (_initialize_record_full): Remove references to - init_record_full_ops and init_record_full_core_ops. - - * remote.c (remote_target, extended_remote_target): New classes. - (remote_ops): Now a remote_target. - (extended_remote_ops): Now an extended_remote_target. - (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint) - (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint) - (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint) - (remote_pass_signals, remote_set_syscall_catchpoint) - (remote_program_signals, ) - (remote_thread_always_alive): Remove target_ops parameter. - (remote_thread_alive, remote_thread_name) - (remote_update_thread_list, remote_threads_extra_info) - (remote_static_tracepoint_marker_at) - (remote_static_tracepoint_markers_by_strid) - (remote_get_ada_task_ptid, remote_close, remote_start_remote) - (remote_open): Refactor as methods of remote_target. - (extended_remote_open, extended_remote_detach) - (extended_remote_attach, extended_remote_post_attach): - (extended_remote_supports_disable_randomization) - (extended_remote_create_inferior): : Refactor as method of - extended_remote_target. - (remote_set_permissions, remote_open_1, remote_detach) - (remote_follow_fork, remote_follow_exec, remote_disconnect) - (remote_resume, remote_commit_resume, remote_stop) - (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior) - (remote_terminal_ours, remote_wait, remote_fetch_registers) - (remote_prepare_to_store, remote_store_registers) - (remote_flash_erase, remote_flash_done, remote_files_info) - (remote_kill, remote_mourn, remote_insert_breakpoint) - (remote_remove_breakpoint, remote_insert_watchpoint) - (remote_watchpoint_addr_within_range) - (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint) - (remote_check_watch_resources, remote_stopped_by_sw_breakpoint) - (remote_supports_stopped_by_sw_breakpoint) - (remote_stopped_by_hw_breakpoint) - (remote_supports_stopped_by_hw_breakpoint) - (remote_stopped_by_watchpoint, remote_stopped_data_address) - (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint) - (remote_verify_memory): Refactor as methods of remote_target. - (remote_write_qxfer, remote_read_qxfer): Remove target_ops - parameter. - (remote_xfer_partial, remote_get_memory_xfer_limit) - (remote_search_memory, remote_rcmd, remote_memory_map) - (remote_pid_to_str, remote_get_thread_local_address) - (remote_get_tib_address, remote_read_description): Refactor as - methods of remote_target. - (remote_target::fileio_open, remote_target::fileio_pwrite) - (remote_target::fileio_pread, remote_target::fileio_close): New. - (remote_hostio_readlink, remote_hostio_fstat) - (remote_filesystem_is_local, remote_can_execute_reverse) - (remote_supports_non_stop, remote_supports_disable_randomization) - (remote_supports_multi_process, remote_supports_cond_breakpoints) - (remote_supports_enable_disable_tracepoint) - (remote_supports_string_tracing) - (remote_can_run_breakpoint_commands, remote_trace_init) - (remote_download_tracepoint, remote_can_download_tracepoint) - (remote_download_trace_state_variable, remote_enable_tracepoint) - (remote_disable_tracepoint, remote_trace_set_readonly_regions) - (remote_trace_start, remote_get_trace_status) - (remote_get_tracepoint_status, remote_trace_stop) - (remote_trace_find, remote_get_trace_state_variable_value) - (remote_save_trace_data, remote_get_raw_trace_data) - (remote_set_disconnected_tracing, remote_core_of_thread) - (remote_set_circular_trace_buffer, remote_traceframe_info) - (remote_get_min_fast_tracepoint_insn_len) - (remote_set_trace_buffer_size, remote_set_trace_notes) - (remote_use_agent, remote_can_use_agent, remote_enable_btrace) - (remote_disable_btrace, remote_teardown_btrace) - (remote_read_btrace, remote_btrace_conf) - (remote_augmented_libraries_svr4_read, remote_load) - (remote_pid_to_exec_file, remote_can_do_single_step) - (remote_execution_direction, remote_thread_handle_to_thread_info): - Refactor as methods of remote_target. - (init_remote_ops, init_extended_remote_ops): Delete. - (remote_can_async_p, remote_is_async_p, remote_async) - (remote_thread_events, remote_upload_tracepoints) - (remote_upload_trace_state_variables): Refactor as methods of - remote_target. - (_initialize_remote): Remove references to init_remote_ops and - init_extended_remote_ops. - - * remote-sim.c (gdbsim_target): New class. - (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill) - (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close) - (gdbsim_detach, gdbsim_resume, gdbsim_interrupt) - (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial) - (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive) - (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory): - Refactor as methods of gdbsim_target. - (gdbsim_ops): Now a gdbsim_target. - (init_gdbsim_ops): Delete. - (gdbsim_cntrl_c): Adjust. - (_initialize_remote_sim): Remove reference to init_gdbsim_ops. - - * amd64-linux-nat.c (amd64_linux_nat_target): New class. - (the_amd64_linux_nat_target): New. - (amd64_linux_fetch_inferior_registers) - (amd64_linux_store_inferior_registers): Refactor as methods of - amd64_linux_nat_target. - (_initialize_amd64_linux_nat): Adjust. Set linux_target. - * i386-linux-nat.c: Don't include "linux-nat.h". - (i386_linux_nat_target): New class. - (the_i386_linux_nat_target): New. - (i386_linux_fetch_inferior_registers) - (i386_linux_store_inferior_registers, i386_linux_resume): Refactor - as methods of i386_linux_nat_target. - (_initialize_i386_linux_nat): Adjust. Set linux_target. - * inf-child.c (inf_child_ops): Delete. - (inf_child_fetch_inferior_registers) - (inf_child_store_inferior_registers): Delete. - (inf_child_post_attach, inf_child_prepare_to_store): Refactor as - methods of inf_child_target. - (inf_child_target::supports_terminal_ours) - (inf_child_target::terminal_init) - (inf_child_target::terminal_inferior) - (inf_child_target::terminal_ours_for_output) - (inf_child_target::terminal_ours, inf_child_target::interrupt) - (inf_child_target::pass_ctrlc, inf_child_target::terminal_info): - New. - (inf_child_open, inf_child_disconnect, inf_child_close) - (inf_child_mourn_inferior, inf_child_maybe_unpush_target) - (inf_child_post_startup_inferior, inf_child_can_run) - (inf_child_pid_to_exec_file): Refactor as methods of - inf_child_target. - (inf_child_follow_fork): Delete. - (inf_child_target::can_create_inferior) - (inf_child_target::can_attach): New. - (inf_child_target::has_all_memory, inf_child_target::has_memory) - (inf_child_target::has_stack, inf_child_target::has_registers) - (inf_child_target::has_execution): New. - (inf_child_fileio_open, inf_child_fileio_pwrite) - (inf_child_fileio_pread, inf_child_fileio_fstat) - (inf_child_fileio_close, inf_child_fileio_unlink) - (inf_child_fileio_readlink, inf_child_use_agent) - (inf_child_can_use_agent): Refactor as methods of - inf_child_target. - (return_zero, inf_child_target): Delete. - (inf_child_target::inf_child_target): New. - * inf-child.h: Include "target.h". - (inf_child_target): Delete function prototype. - (inf_child_target): New class. - (inf_child_open_target, inf_child_mourn_inferior) - (inf_child_maybe_unpush_target): Delete. - * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New. - (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint) - (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior) - (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior) - (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach) - (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume) - (inf_ptrace_wait, inf_ptrace_xfer_partial) - (inf_ptrace_thread_alive, inf_ptrace_files_info) - (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as - methods of inf_ptrace_target. - (inf_ptrace_target): Delete function. - * inf-ptrace.h: Include "inf-child.h". - (inf_ptrace_target): Delete function declaration. - (inf_ptrace_target): New class. - (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete. - * linux-nat.c (linux_target): New. - (linux_ops, linux_ops_saved, super_xfer_partial): Delete. - (linux_nat_target::~linux_nat_target): New. - (linux_child_post_attach, linux_child_post_startup_inferior) - (linux_child_follow_fork, linux_child_insert_fork_catchpoint) - (linux_child_remove_fork_catchpoint) - (linux_child_insert_vfork_catchpoint) - (linux_child_remove_vfork_catchpoint) - (linux_child_insert_exec_catchpoint) - (linux_child_remove_exec_catchpoint) - (linux_child_set_syscall_catchpoint, linux_nat_pass_signals) - (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach) - (linux_nat_resume, linux_nat_stopped_by_watchpoint) - (linux_nat_stopped_data_address) - (linux_nat_stopped_by_sw_breakpoint) - (linux_nat_supports_stopped_by_sw_breakpoint) - (linux_nat_stopped_by_hw_breakpoint) - (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait) - (linux_nat_kill, linux_nat_mourn_inferior) - (linux_nat_xfer_partial, linux_nat_thread_alive) - (linux_nat_update_thread_list, linux_nat_pid_to_str) - (linux_nat_thread_name, linux_child_pid_to_exec_file) - (linux_child_static_tracepoint_markers_by_strid) - (linux_nat_is_async_p, linux_nat_can_async_p) - (linux_nat_supports_non_stop, linux_nat_always_non_stop_p) - (linux_nat_supports_multi_process) - (linux_nat_supports_disable_randomization, linux_nat_async) - (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space) - (linux_nat_core_of_thread, linux_nat_filesystem_is_local) - (linux_nat_fileio_open, linux_nat_fileio_readlink) - (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as - methods of linux_nat_target. - (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial) - (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops - parameter. - (check_stopped_by_watchpoint): Adjust. - (linux_xfer_partial): Delete. - (linux_target_install_ops, linux_target, linux_nat_add_target): - Delete. - (linux_nat_target::linux_nat_target): New. - * linux-nat.h: Include "inf-ptrace.h". - (linux_nat_target): New. - (linux_target, linux_target_install_ops, linux_nat_add_target): - Delete function declarations. - (linux_target): Declare global. - * linux-thread-db.c (thread_db_target): New. - (thread_db_target::thread_db_target): New. - (thread_db_ops): Delete. - (the_thread_db_target): New. - (thread_db_detach, thread_db_wait, thread_db_mourn_inferior) - (thread_db_update_thread_list, thread_db_pid_to_str) - (thread_db_extra_thread_info) - (thread_db_thread_handle_to_thread_info) - (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid) - (thread_db_resume): Refactor as methods of thread_db_target. - (init_thread_db_ops): Delete. - (_initialize_thread_db): Remove reference to init_thread_db_ops. - * x86-linux-nat.c: Don't include "linux-nat.h". - (super_post_startup_inferior): Delete. - (x86_linux_nat_target::~x86_linux_nat_target): New. - (x86_linux_child_post_startup_inferior) - (x86_linux_read_description, x86_linux_enable_btrace) - (x86_linux_disable_btrace, x86_linux_teardown_btrace) - (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as - methods of x86_linux_nat_target. - (x86_linux_create_target): Delete. Bits folded ... - (x86_linux_add_target): ... here. Now takes a linux_nat_target - pointer. - * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h". - (x86_linux_nat_target): New class. - (x86_linux_create_target): Delete. - (x86_linux_add_target): Now takes a linux_nat_target pointer. - * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint) - (x86_region_ok_for_watchpoint, x86_stopped_data_address) - (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint) - (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint) - (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and - make extern. - (x86_use_watchpoints): Delete. - * x86-nat.h: Include "breakpoint.h" and "target.h". - (x86_use_watchpoints): Delete. - (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint) - (x86_stopped_by_watchpoint, x86_stopped_data_address) - (x86_insert_watchpoint, x86_remove_watchpoint) - (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint) - (x86_stopped_by_hw_breakpoint): New declarations. - (x86_nat_target): New template class. - - * ppc-linux-nat.c (ppc_linux_nat_target): New class. - (the_ppc_linux_nat_target): New. - (ppc_linux_fetch_inferior_registers) - (ppc_linux_can_use_hw_breakpoint) - (ppc_linux_region_ok_for_hw_watchpoint) - (ppc_linux_ranged_break_num_registers) - (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint) - (ppc_linux_insert_mask_watchpoint) - (ppc_linux_remove_mask_watchpoint) - (ppc_linux_can_accel_watchpoint_condition) - (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint) - (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint) - (ppc_linux_watchpoint_addr_within_range) - (ppc_linux_masked_watch_num_registers) - (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse) - (ppc_linux_read_description): Refactor as methods of - ppc_linux_nat_target. - (_initialize_ppc_linux_nat): Adjust. Set linux_target. - - * procfs.c (procfs_xfer_partial): Delete forward declaration. - (procfs_target): New class. - (the_procfs_target): New. - (procfs_target): Delete function. - (procfs_auxv_parse, procfs_attach, procfs_detach) - (procfs_fetch_registers, procfs_store_registers, procfs_wait) - (procfs_xfer_partial, procfs_resume, procfs_pass_signals) - (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior) - (procfs_create_inferior, procfs_update_thread_list) - (procfs_thread_alive, procfs_pid_to_str) - (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint) - (procfs_stopped_data_address, procfs_insert_watchpoint) - (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint) - (proc_find_memory_regions, procfs_info_proc) - (procfs_make_note_section): Refactor as methods of procfs_target. - (_initialize_procfs): Adjust. - * sol-thread.c (sol_thread_target): New class. - (sol_thread_ops): Now a sol_thread_target. - (sol_thread_detach, sol_thread_resume, sol_thread_wait) - (sol_thread_fetch_registers, sol_thread_store_registers) - (sol_thread_xfer_partial, sol_thread_mourn_inferior) - (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list) - (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target. - (init_sol_thread_ops): Delete. - (_initialize_sol_thread): Adjust. Remove references to - init_sol_thread_ops and complete_target_initialization. - - * windows-nat.c (windows_nat_target): New class. - (windows_fetch_inferior_registers) - (windows_store_inferior_registers, windows_resume, windows_wait) - (windows_attach, windows_detach, windows_pid_to_exec_file) - (windows_files_info, windows_create_inferior) - (windows_mourn_inferior, windows_interrupt, windows_kill_inferior) - (windows_close, windows_pid_to_str, windows_xfer_partial) - (windows_get_tib_address, windows_get_ada_task_ptid) - (windows_thread_name, windows_thread_alive): Refactor as - windows_nat_target methods. - (do_initial_windows_stuff): Adjust. - (windows_target): Delete function. - (_initialize_windows_nat): Adjust. - - * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt) - (darwin_mourn_inferior, darwin_kill_inferior) - (darwin_create_inferior, darwin_attach, darwin_detach) - (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial) - (darwin_pid_to_exec_file, darwin_get_ada_task_ptid) - (darwin_supports_multi_process): Refactor as darwin_nat_target - methods. - (darwin_resume_to, darwin_files_info): Delete. - (_initialize_darwin_inferior): Rename to ... - (_initialize_darwin_nat): ... this. Adjust to C++ification. - * darwin-nat.h: Include "inf-child.h". - (darwin_nat_target): New class. - (darwin_complete_target): Delete. - * i386-darwin-nat.c (i386_darwin_nat_target): New class. - (darwin_target): New. - (i386_darwin_fetch_inferior_registers) - (i386_darwin_store_inferior_registers): Refactor as methods of - darwin_nat_target. - (darwin_complete_target): Delete, with ... - (_initialize_i386_darwin_nat): ... bits factored out here. - - * alpha-linux-nat.c (alpha_linux_nat_target): New class. - (the_alpha_linux_nat_target): New. - (alpha_linux_register_u_offset): Refactor as - alpha_linux_nat_target method. - (_initialize_alpha_linux_nat): Adjust. - * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete. - (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) - (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as - methods of linux_nat_trad_target. - (linux_trad_target): Delete. - * linux-nat-trad.h (linux_trad_target): Delete function. - (linux_nat_trad_target): New class. - * mips-linux-nat.c (mips_linux_nat_target): New class. - (super_fetch_registers, super_store_registers, super_close): - Delete. - (the_mips_linux_nat_target): New. - (mips64_linux_regsets_fetch_registers) - (mips64_linux_regsets_store_registers) - (mips64_linux_fetch_registers, mips64_linux_store_registers) - (mips_linux_register_u_offset, mips_linux_read_description) - (mips_linux_can_use_hw_breakpoint) - (mips_linux_stopped_by_watchpoint) - (mips_linux_stopped_data_address) - (mips_linux_region_ok_for_hw_watchpoint) - (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint) - (mips_linux_close): Refactor as methods of mips_linux_nat. - (_initialize_mips_linux_nat): Adjust to C++ification. - - * aix-thread.c (aix_thread_target): New class. - (aix_thread_ops): Now an aix_thread_target. - (aix_thread_detach, aix_thread_resume, aix_thread_wait) - (aix_thread_fetch_registers, aix_thread_store_registers) - (aix_thread_xfer_partial, aix_thread_mourn_inferior) - (aix_thread_thread_alive, aix_thread_pid_to_str) - (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid): - Refactor as methods of aix_thread_target. - (init_aix_thread_ops): Delete. - (_initialize_aix_thread): Remove references to init_aix_thread_ops - and complete_target_initialization. - * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete. - (rs6000_nat_target): New class. - (the_rs6000_nat_target): New. - (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers) - (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior) - (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods. - (super_create_inferior): Delete. - (_initialize_rs6000_nat): Adjust to C++ification. - - * arm-linux-nat.c (arm_linux_nat_target): New class. - (the_arm_linux_nat_target): New. - (arm_linux_fetch_inferior_registers) - (arm_linux_store_inferior_registers, arm_linux_read_description) - (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint) - (arm_linux_remove_hw_breakpoint) - (arm_linux_region_ok_for_hw_watchpoint) - (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint) - (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint) - (arm_linux_watchpoint_addr_within_range): Refactor as methods of - arm_linux_nat_target. - (_initialize_arm_linux_nat): Adjust to C++ification. - - * aarch64-linux-nat.c (aarch64_linux_nat_target): New class. - (the_aarch64_linux_nat_target): New. - (aarch64_linux_fetch_inferior_registers) - (aarch64_linux_store_inferior_registers) - (aarch64_linux_child_post_startup_inferior) - (aarch64_linux_read_description) - (aarch64_linux_can_use_hw_breakpoint) - (aarch64_linux_insert_hw_breakpoint) - (aarch64_linux_remove_hw_breakpoint) - (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint) - (aarch64_linux_region_ok_for_hw_watchpoint) - (aarch64_linux_stopped_data_address) - (aarch64_linux_stopped_by_watchpoint) - (aarch64_linux_watchpoint_addr_within_range) - (aarch64_linux_can_do_single_step): Refactor as methods of - aarch64_linux_nat_target. - (super_post_startup_inferior): Delete. - (_initialize_aarch64_linux_nat): Adjust to C++ification. - - * hppa-linux-nat.c (hppa_linux_nat_target): New class. - (the_hppa_linux_nat_target): New. - (hppa_linux_fetch_inferior_registers) - (hppa_linux_store_inferior_registers): Refactor as methods of - hppa_linux_nat_target. - (_initialize_hppa_linux_nat): Adjust to C++ification. - - * ia64-linux-nat.c (ia64_linux_nat_target): New class. - (the_ia64_linux_nat_target): New. - (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint) - (ia64_linux_stopped_data_address) - (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers) - (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as - ia64_linux_nat_target methods. - (super_xfer_partial): Delete. - (_initialize_ia64_linux_nat): Adjust to C++ification. - - * m32r-linux-nat.c (m32r_linux_nat_target): New class. - (the_m32r_linux_nat_target): New. - (m32r_linux_fetch_inferior_registers) - (m32r_linux_store_inferior_registers): Refactor as - m32r_linux_nat_target methods. - (_initialize_m32r_linux_nat): Adjust to C++ification. - - * m68k-linux-nat.c (m68k_linux_nat_target): New class. - (the_m68k_linux_nat_target): New. - (m68k_linux_fetch_inferior_registers) - (m68k_linux_store_inferior_registers): Refactor as - m68k_linux_nat_target methods. - (_initialize_m68k_linux_nat): Adjust to C++ification. - - * s390-linux-nat.c (s390_linux_nat_target): New class. - (the_s390_linux_nat_target): New. - (s390_linux_fetch_inferior_registers) - (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint) - (s390_insert_watchpoint, s390_remove_watchpoint) - (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint) - (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint) - (s390_auxv_parse, s390_read_description): Refactor as methods of - s390_linux_nat_target. - (_initialize_s390_nat): Adjust to C++ification. - - * sparc-linux-nat.c (sparc_linux_nat_target): New class. - (the_sparc_linux_nat_target): New. - (_initialize_sparc_linux_nat): Adjust to C++ification. - * sparc-nat.c (sparc_fetch_inferior_registers) - (sparc_store_inferior_registers): Remove target_ops parameter. - * sparc-nat.h (sparc_fetch_inferior_registers) - (sparc_store_inferior_registers): Remove target_ops parameter. - * sparc64-linux-nat.c (sparc64_linux_nat_target): New class. - (the_sparc64_linux_nat_target): New. - (_initialize_sparc64_linux_nat): Adjust to C++ification. - - * spu-linux-nat.c (spu_linux_nat_target): New class. - (the_spu_linux_nat_target): New. - (spu_child_post_startup_inferior, spu_child_post_attach) - (spu_child_wait, spu_fetch_inferior_registers) - (spu_store_inferior_registers, spu_xfer_partial) - (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target - methods. - (_initialize_spu_nat): Adjust to C++ification. - - * tilegx-linux-nat.c (tilegx_linux_nat_target): New class. - (the_tilegx_linux_nat_target): New. - (fetch_inferior_registers, store_inferior_registers): - Refactor as methods. - (_initialize_tile_linux_nat): Adjust to C++ification. - - * xtensa-linux-nat.c (xtensa_linux_nat_target): New class. - (the_xtensa_linux_nat_target): New. - (xtensa_linux_fetch_inferior_registers) - (xtensa_linux_store_inferior_registers): Refactor as - xtensa_linux_nat_target methods. - (_initialize_xtensa_linux_nat): Adjust to C++ification. - - * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete. - (fbsd_pid_to_exec_file, fbsd_find_memory_regions) - (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial) - (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name) - (fbsd_update_thread_list, fbsd_resume, fbsd_wait) - (fbsd_stopped_by_sw_breakpoint) - (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork) - (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint) - (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint) - (fbsd_post_startup_inferior, fbsd_post_attach) - (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint) - (fbsd_set_syscall_catchpoint) - (super_xfer_partial, super_resume, super_wait) - (fbsd_supports_stopped_by_hw_breakpoint): Delete. - (fbsd_handle_debug_trap): Remove target_ops parameter. - (fbsd_nat_add_target): Delete. - * fbsd-nat.h: Include "inf-ptrace.h". - (fbsd_nat_add_target): Delete. - (USE_SIGTRAP_SIGINFO): Define. - (fbsd_nat_target): New class. - - * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers) - (amd64bsd_store_inferior_registers): Remove target_ops parameter. - (amd64bsd_target): Delete. - * amd64-bsd-nat.h: New file. - * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of - "x86-bsd-nat.h". - (amd64_fbsd_nat_target): New class. - (the_amd64_fbsd_nat_target): New. - (amd64fbsd_read_description): Refactor as method of - amd64_fbsd_nat_target. - (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. - (_initialize_amd64fbsd_nat): Adjust to C++ification. - * amd64-nat.h (amd64bsd_target): Delete function declaration. - * i386-bsd-nat.c (i386bsd_fetch_inferior_registers) - (i386bsd_store_inferior_registers): Remove target_ops parameter. - (i386bsd_target): Delete. - * i386-bsd-nat.h (i386bsd_target): Delete function declaration. - (i386bsd_fetch_inferior_registers) - (i386bsd_store_inferior_registers): Declare. - (i386_bsd_nat_target): New class. - * i386-fbsd-nat.c (i386_fbsd_nat_target): New class. - (the_i386_fbsd_nat_target): New. - (i386fbsd_resume, i386fbsd_read_description): Refactor as - i386_fbsd_nat_target methods. - (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. - (_initialize_i386fbsd_nat): Adjust to C++ification. - * x86-bsd-nat.c (super_mourn_inferior): Delete. - (x86bsd_mourn_inferior, x86bsd_target): Delete. - (_initialize_x86_bsd_nat): Adjust to C++ification. - * x86-bsd-nat.h: Include "x86-nat.h". - (x86bsd_target): Delete declaration. - (x86bsd_nat_target): New class. - - * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class. - (the_aarch64_fbsd_nat_target): New. - (aarch64_fbsd_fetch_inferior_registers) - (aarch64_fbsd_store_inferior_registers): Refactor as methods of - aarch64_fbsd_nat_target. - (_initialize_aarch64_fbsd_nat): Adjust to C++ification. - * alpha-bsd-nat.c (alpha_bsd_nat_target): New class. - (the_alpha_bsd_nat_target): New. - (alphabsd_fetch_inferior_registers) - (alphabsd_store_inferior_registers): Refactor as - alpha_bsd_nat_target methods. - (_initialize_alphabsd_nat): Refactor as methods of - alpha_bsd_nat_target. - * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h". - (the_amd64_nbsd_nat_target): New. - (_initialize_amd64nbsd_nat): Adjust to C++ification. - * amd64-obsd-nat.c: Include "amd64-bsd-nat.h". - (the_amd64_obsd_nat_target): New. - (_initialize_amd64obsd_nat): Adjust to C++ification. - * arm-fbsd-nat.c (arm_fbsd_nat_target): New. - (the_arm_fbsd_nat_target): New. - (arm_fbsd_fetch_inferior_registers) - (arm_fbsd_store_inferior_registers, arm_fbsd_read_description): - (_initialize_arm_fbsd_nat): Refactor as methods of - arm_fbsd_nat_target. - (_initialize_arm_fbsd_nat): Adjust to C++ification. - * arm-nbsd-nat.c (arm_netbsd_nat_target): New class. - (the_arm_netbsd_nat_target): New. - (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as - arm_netbsd_nat_target. - (_initialize_arm_netbsd_nat): Adjust to C++ification. - * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class. - (the_hppa_nbsd_nat_target): New. - (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as - hppa_nbsd_nat_target methods. - (_initialize_hppanbsd_nat): Adjust to C++ification. - * hppa-obsd-nat.c (hppa_obsd_nat_target): New class. - (the_hppa_obsd_nat_target): New. - (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as - methods of hppa_obsd_nat_target. - (_initialize_hppaobsd_nat): Adjust to C++ification. Use - add_target. - * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New. - (_initialize_i386nbsd_nat): Adjust to C++ification. Use - add_target. - * i386-obsd-nat.c (the_i386_obsd_nat_target): New. - (_initialize_i386obsd_nat): Use add_target. - * m68k-bsd-nat.c (m68k_bsd_nat_target): New class. - (the_m68k_bsd_nat_target): New. - (m68kbsd_fetch_inferior_registers) - (m68kbsd_store_inferior_registers): Refactor as methods of - m68k_bsd_nat_target. - (_initialize_m68kbsd_nat): Adjust to C++ification. - * mips-fbsd-nat.c (mips_fbsd_nat_target): New class. - (the_mips_fbsd_nat_target): New. - (mips_fbsd_fetch_inferior_registers) - (mips_fbsd_store_inferior_registers): Refactor as methods of - mips_fbsd_nat_target. - (_initialize_mips_fbsd_nat): Adjust to C++ification. Use - add_target. - * mips-nbsd-nat.c (mips_nbsd_nat_target): New class. - (the_mips_nbsd_nat_target): New. - (mipsnbsd_fetch_inferior_registers) - (mipsnbsd_store_inferior_registers): Refactor as methods of - mips_nbsd_nat_target. - (_initialize_mipsnbsd_nat): Adjust to C++ification. - * mips64-obsd-nat.c (mips64_obsd_nat_target): New class. - (the_mips64_obsd_nat_target): New. - (mips64obsd_fetch_inferior_registers) - (mips64obsd_store_inferior_registers): Refactor as methods of - mips64_obsd_nat_target. - (_initialize_mips64obsd_nat): Adjust to C++ification. Use - add_target. - * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of - nbsd_nat_target. - * nbsd-nat.h: Include "inf-ptrace.h". - (nbsd_nat_target): New class. - * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list) - (obsd_wait): Refactor as methods of obsd_nat_target. - (obsd_add_target): Delete. - * obsd-nat.h: Include "inf-ptrace.h". - (obsd_nat_target): New class. - * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class. - (the_ppc_fbsd_nat_target): New. - (ppcfbsd_fetch_inferior_registers) - (ppcfbsd_store_inferior_registers): Refactor as methods of - ppc_fbsd_nat_target. - (_initialize_ppcfbsd_nat): Adjust to C++ification. Use - add_target. - * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class. - (the_ppc_nbsd_nat_target): New. - (ppcnbsd_fetch_inferior_registers) - (ppcnbsd_store_inferior_registers): Refactor as methods of - ppc_nbsd_nat_target. - (_initialize_ppcnbsd_nat): Adjust to C++ification. - * ppc-obsd-nat.c (ppc_obsd_nat_target): New class. - (the_ppc_obsd_nat_target): New. - (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as - methods of ppc_obsd_nat_target. - (_initialize_ppcobsd_nat): Adjust to C++ification. Use - add_target. - * sh-nbsd-nat.c (sh_nbsd_nat_target): New class. - (the_sh_nbsd_nat_target): New. - (shnbsd_fetch_inferior_registers) - (shnbsd_store_inferior_registers): Refactor as methods of - sh_nbsd_nat_target. - (_initialize_shnbsd_nat): Adjust to C++ification. - * sparc-nat.c (sparc_xfer_wcookie): Make extern. - (inf_ptrace_xfer_partial): Delete. - (sparc_xfer_partial, sparc_target): Delete. - * sparc-nat.h (sparc_fetch_inferior_registers) - (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare. - (sparc_target): Delete function declaration. - (sparc_target): New template class. - * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New. - (_initialize_sparcnbsd_nat): Adjust to C++ification. - * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New. - (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use - add_target. - * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New. - (_initialize_sparc64nbsd_nat): Adjust to C++ification. - * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New. - (_initialize_sparc64obsd_nat): Adjust to C++ification. Use - add_target. - * vax-bsd-nat.c (vax_bsd_nat_target): New class. - (the_vax_bsd_nat_target): New. - (vaxbsd_fetch_inferior_registers) - (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target - methods. - (_initialize_vaxbsd_nat): Adjust to C++ification. - - * bsd-kvm.c (bsd_kvm_target): New class. - (bsd_kvm_ops): Now a bsd_kvm_target. - (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial) - (bsd_kvm_files_info, bsd_kvm_fetch_registers) - (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of - bsd_kvm_target. - (bsd_kvm_return_one): Delete. - (bsd_kvm_add_target): Adjust to C++ification. - - * nto-procfs.c (nto_procfs_target, nto_procfs_target_native) - (nto_procfs_target_procfs): New classes. - (procfs_open_1, procfs_thread_alive, procfs_update_thread_list) - (procfs_files_info, procfs_pid_to_exec_file, procfs_attach) - (procfs_post_attach, procfs_wait, procfs_fetch_registers) - (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint) - (procfs_remove_breakpoint, procfs_insert_hw_breakpoint) - (procfs_remove_hw_breakpoint, procfs_resume) - (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt) - (procfs_kill_inferior, procfs_store_registers) - (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor - as methods of nto_procfs_target. - (nto_procfs_ops): Now an nto_procfs_target_procfs. - (nto_native_ops): Delete. - (procfs_open, procfs_native_open): Delete. - (nto_native_ops): Now an nto_procfs_target_native. - (init_procfs_targets): Adjust to C++ification. - (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint) - (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint): - Refactor as methods of nto_procfs_target. - - * go32-nat.c (go32_nat_target): New class. - (the_go32_nat_target): New. - (go32_attach, go32_resume, go32_wait, go32_fetch_registers) - (go32_store_registers, go32_xfer_partial, go32_files_info) - (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior) - (go32_terminal_init, go32_terminal_info, go32_terminal_inferior) - (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive) - (go32_pid_to_str): Refactor as methods of go32_nat_target. - (go32_target): Delete. - (_initialize_go32_nat): Adjust to C++ification. - - * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior) - (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach) - (gnu_stop, gnu_thread_alive, gnu_xfer_partial) - (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of - gnu_nat_target. - (gnu_target): Delete. - * gnu-nat.h (gnu_target): Delete. - (gnu_nat_target): New class. - * i386-gnu-nat.c (gnu_base_target): New. - (i386_gnu_nat_target): New class. - (the_i386_gnu_nat_target): New. - (_initialize_i386gnu_nat): Adjust to C++ification. - -2018-05-02 Pedro Alves <palves@redhat.com> - - * bfd-target.c (target_bfd_xclose): Rename to ... - (target_bfd_close): ... this. - (target_bfd_reopen): Adjust. - * target.c (target_close): Remove references to to_xclose. - * target.h (target_ops::to_xclose): Delete. - (target_ops::to_close): Update comments. - -2018-05-02 Pedro Alves <palves@redhat.com> - - * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of - "linux-nat.h". - * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o. - * inf-ptrace.c (inf_ptrace_register_u_offset) - (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) - (inf_ptrace_store_register, inf_ptrace_store_registers) - (inf_ptrace_trad_target): Move to ... - * linux-nat-trad.c: ... this new file. - * linux-nat-trad.h: New file. - * linux-nat.c (linux_target_install_ops): Make extern. - (linux_trad_target): Delete. - * linux-nat.h (linux_trad_target): Delete declaration. - (linux_target_install_ops): Declare. - * mips-linux-nat.c: Include "linux-nat-trad.h" instead of - "linux-nat.h". - -2018-05-02 Pedro Alves <palves@redhat.com> - - * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call - procfs_target/add_target here. - * procfs.c (procfs_target): Make static. - (_initialize_procfs): Call add_target here. - * procfs.h (struct target_ops): Remove forward declaration. - (procfs_target): Remove declaration. - * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete. - -2018-05-02 Pedro Alves <palves@redhat.com> - - * procfs.c (procfs_stopped_by_watchpoint) - (procfs_insert_watchpoint, procfs_remove_watchpoint) - (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address): - Forward declare. - (procfs_use_watchpoints): Delete, move contents... - (procfs_target): ... here. - * procfs.h (procfs_use_watchpoints): Delete declaration. - * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call - procfs_use_watchpoints. - * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call - procfs_use_watchpoints. - -2018-05-02 Tom Tromey <tom@tromey.com> - - PR python/20084: - * python/python.c (gdbpy_parameter_value): Handle var_zuinteger - and var_zuinteger_unlimited. - * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER - and PARAM_ZUINTEGER_UNLIMITED. - (set_parameter_value): Handle var_zuinteger and - var_zuinteger_unlimited. - (add_setshow_generic): Likewise. - (parmpy_init): Likewise. - -2018-04-28 Dan Robertson <danlrobertson89@gmail.com> - - PR rust/23124 - * gdb/rust-exp.y (convert_params_to_types): Ensure that the params - pointer is not null before dereferencing it. - -2018-04-30 Tom Tromey <tom@tromey.com> - - * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of - is_mi_like_p. - -2018-04-30 Tom Tromey <tom@tromey.com> - - * breakpoint.c (mention): Remove use of is_mi_like_p. - (print_mention_ranged_breakpoint): Likewise. - * break-catch-throw.c (print_it_exception_catchpoint): Remove use - of is_mi_like_p. - -2018-04-30 Tom Tromey <tom@tromey.com> - - * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p. - -2018-04-30 Tom Tromey <tom@tromey.com> - - * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist) - (info_spu_event_command): Remove some uses of is_mi_like_p. - -2018-04-30 Tom Tromey <tom@tromey.com> - - * python/py-framefilter.c (py_print_single_arg) - (enumerate_locals, py_print_args, py_print_frame): Remove some - uses of is_mi_like_p. - -2018-04-30 Tom Tromey <tom@tromey.com> - - * ui-out.c: Update. - * cli-out.h (cli_ui_out::do_is_mi_like_p): Update. - * ui-out.h (ui_out::is_mi_like_p): Now const. - (ui_out::do_is_mi_like_p): Now const. - * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update. - -2018-04-30 Tom Tromey <tom@tromey.com> - - * varobj.c (varobj_set_visualizer): Use new_reference. - * python/python.c (gdbpy_decode_line): Use new_reference. - * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use - new_reference. - -2018-04-30 Tom Tromey <tom@tromey.com> - - * varobj.c (install_new_value): Use new_reference. - * value.h (value_incref): Return void. Swap intro comment with - value_decref. - * value.c (set_value_parent): Use new_reference. - (value_incref): Return void. Update intro comment. - (release_value): Use new_reference. - * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference. - -2018-04-30 Tom Tromey <tom@tromey.com> - - * symfile-mem.c (symbol_file_add_from_memory): Use new_reference. - * gdb_bfd.h (new_bfd_ref): Remove. - (gdb_bfd_open): Update comment. - * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) - (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion) - (gdb_bfd_fdopenr): Use new_reference. - * exec.c (exec_file_attach): Use new_reference. - -2018-04-30 Tom Tromey <tom@tromey.com> - - * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static - method. - -2018-04-30 Tom Tromey <tom@tromey.com> - - * jit.c (jit_read_code_entry): Use type_align. - * i386-tdep.c (i386_gdbarch_init): Don't call - set_gdbarch_long_long_align_bit. - * gdbarch.sh: Remove long_long_align_bit. - * gdbarch.c, gdbarch.h: Rebuild. - * arc-tdep.c (arc_type_align): New function. - (arc_gdbarch_init): Use arc_type_align. Don't call - set_gdbarch_long_long_align_bit. - -2018-04-30 Tom Tromey <tom@tromey.com> - - * rust-lang.c (rust_type_alignment): Remove. - (rust_composite_type): Use type_align. - -2018-04-30 Tom Tromey <tom@tromey.com> - - * NEWS: Mention Type.align. - * python/py-type.c (typy_get_alignof): New function. - (type_object_getset): Add "alignof". - -2018-04-30 Tom Tromey <tom@tromey.com> - - PR exp/17095: - * NEWS: Update. - * std-operator.def (UNOP_ALIGNOF): New operator. - * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>: - New. - * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New. - * c-lang.c (c_op_print_tab): Add alignof. - * c-exp.y (ALIGNOF): New token. - (exp): Add "ALIGNOF" production. - (ident_tokens): Add _Alignof and alignof. - -2018-04-30 Tom Tromey <tom@tromey.com> - - * i386-tdep.c (i386_type_align): New function. - (i386_gdbarch_init): Update. - * gdbarch.sh (type_align): New method. - * gdbarch.c, gdbarch.h: Rebuild. - * arch-utils.h (default_type_align): Declare. - * arch-utils.c (default_type_align): New function. - * gdbtypes.h (TYPE_ALIGN_BITS): New define. - (struct type) <align_log2>: New field. - <instance_flags>: Now a bitfield. - (TYPE_RAW_ALIGN): New macro. - (type_align, type_raw_align, set_type_align): Declare. - * gdbtypes.c (type_align, type_raw_align, set_type_align): New - functions. - * dwarf2read.c (quirk_rust_enum): Set type alignment. - (get_alignment, maybe_set_alignment): New functions. - (read_structure_type, read_enumeration_type, read_array_type) - (read_set_type, read_tag_pointer_type, read_tag_reference_type) - (read_subrange_type, read_base_type): Set type alignment. - -2018-04-30 Simon Marchi <simon.marchi@ericsson.com> - - * dwarf2read.c (read_index_from_section): Use bool. - -2018-04-29 Fabian Groffen <grobian@gentoo.org> - - PR gdb/22950 - * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys - with #ifdef. - -2018-04-29 John Reiser <jreiser@BitWagon.com> - - PR build/22873 - * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the - last step, and do it atomically. - -2018-04-27 Alexandre Oliva <aoliva@redhat.com> - - * compile/compile-c-types.c (convert_int, convert_float): - Update for C FE v1. - -2018-04-27 Tom Tromey <tom@tromey.com> - - PR rust/22545: - * rust-lang.c (rust_inclusive_range_type_p): New function. - (rust_range): Handle inclusive ranges. - (rust_compute_range): Likewise. - * rust-exp.y (struct rust_op) <inclusive>: New field. - (DOTDOTEQ): New constant. - (range_expr): Add "..=" productions. - (operator_tokens): Add "..=" token. - (ast_range): Add "inclusive" parameter. - (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive - ranges. - * parse.c (operator_length_standard) <case OP_RANGE>: Handle new - bounds values. - * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE, - LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants. - Update comments. - * expprint.c (print_subexp_standard): Handle new bounds values. - (dump_subexp_body_standard): Likewise. - -2018-04-27 Tom Tromey <tom@tromey.com> - - * configure: Rebuild. - * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override. - * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not - "OVERRIDE". - (class symbol_needs_eval_context): Likewise. - * dwarf2read.c (mock_mapped_index::symbol_name_count) - (mock_mapped_index::symbol_name_at): Use "override". Remove - "virtual". - * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use - "override". - (class dwarf_expr_executor): Use "override", not "OVERRIDE". - * aarch64-tdep.c (instruction_reader::read): Use "override". - (instruction_reader_test::read): Likewise. - * arm-tdep.c (instruction_reader::read): Use "override". - (instruction_reader_thumb::read): Likewise. - -2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl> - - PR remote/9665 - * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result - instead of remote_send. - (remote_send): Remove. - -2018-04-26 Pedro Alves <palves@redhat.com> - - * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use - find_function_start_sal instead of find_pc_line. - -2018-04-26 Pedro Alves <palves@redhat.com> - - * breakpoint.c (set_breakpoint_location_function): Handle - mst_data_gnu_ifunc. - * c-exp.y (variable production): Handle mst_data_gnu_ifunc. - * elfread.c (elf_symtab_read): Give data symbols with - BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type. - (elf_rel_plt_read): Update comment. - * linespec.c (convert_linespec_to_sals): Handle - mst_data_gnu_ifunc. - (minsym_found): Handle mst_data_gnu_ifunc. - * minsyms.c (msymbol_is_function, minimal_symbol_reader::record) - (find_solib_trampoline_target): Handle mst_data_gnu_ifunc. - * parse.c (find_minsym_type_and_address): Handle - mst_data_gnu_ifunc. - * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc. - * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc. - * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update - comment. - <mst_data_gnu_ifunc>: New enumerator. - -2018-04-26 Pedro Alves <palves@redhat.com> - - * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ... - (lookup_minimal_symbol_by_pc_section): ... this. Replace - 'want_trampoline' parameter by a lookup_msym_prefer parameter. - Handle it. - (lookup_minimal_symbol_by_pc_section): Delete old implementation. - (lookup_minimal_symbol_by_pc): Adjust. - (in_gnu_ifunc_stub): Prefer GNU ifunc symbols. - (lookup_solib_trampoline_symbol_by_pc): Adjust. - * minsyms.h (lookup_msym_prefer): New enum. - (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' - parameter by a lookup_msym_prefer parameter. - -2018-04-26 Pedro Alves <palves@redhat.com> - - * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name - ends in "@plt" instead of looking at the symbol's section. - -2018-04-26 Pedro Alves <palves@redhat.com> - - * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove - all references. - (find_pc_partial_function_gnu_ifunc): Rename to ... - (find_pc_partial_function): ... this, and remove references to - 'is_gnu_ifunc_p'. - (find_pc_partial_function): Delete old implementation. - * symtab.h (find_pc_partial_function_gnu_ifunc): Delete. - -2018-04-26 Pedro Alves <palves@redhat.com> - - * linespec.c (struct bound_minimal_symbol_search_key): New. - (convert_linespec_to_sals): Sort minimal symbols earlier. Don't - skip first line if we found a GNU ifunc minimal symbol by name. - (compare_msymbols): Change parameters to work with a destructured - lhs minsym. - (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New - functions. - -2018-04-26 Pedro Alves <palves@redhat.com> - - * breakpoint.c (set_breakpoint_location_function): Don't resolve - ifunc targets here. Instead, if we have an ifunc minsym, use its - address/name. - (add_location_to_breakpoint): Store the minsym and the objfile in - the breakpoint location. - * breakpoint.h (bp_location) <msymbol, objfile>: New fields. - * linespec.c (minsym_found): Resolve GNU ifunc targets here. - Record the minsym in the sal. - * symtab.h (symtab_and_line) <msymbol>: New field. - -2018-04-26 Pedro Alves <palves@redhat.com> - - * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P - unless we actually resolved the ifunc. - -2018-04-26 Pedro Alves <palves@redhat.com> - - * c-exp.y (variable production): Prefer ifunc minsyms over - regular function symbols. - * symtab.c (find_gnu_ifunc): New function. - * minsyms.h (lookup_msym_prefer): New enum. - (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' - parameter by a lookup_msym_prefer parameter. - * symtab.h (find_gnu_ifunc): New declaration. - -2018-04-26 Pedro Alves <palves@redhat.com> - - * blockframe.c (find_gnu_ifunc_target_type): New function. - (find_function_type): New. - * eval.c (evaluate_var_msym_value): For GNU ifunc types, always - return a value with a memory address. - (eval_call): For calls to GNU ifunc functions, try to find the - type of the target function from the type that the resolver - returns. - * gdbtypes.c (objfile_type): Don't install a return type for ifunc - symbols. - * infcall.c (find_function_return_type): Delete. - (find_function_addr): Add 'function_type' parameter. For calls to - GNU ifunc functions, try to find the type of the target function - from the type that the resolver returns, and return it via - FUNCTION_TYPE. - (call_function_by_hand_dummy): Adjust to use the function type - returned by find_function_addr. - (find_function_addr): Add 'function_type' parameter and move - description here. - * symtab.h (find_function_type, find_gnu_ifunc_target_type): New - declarations. - -2018-04-26 Pedro Alves <palves@redhat.com> - - * c-exp.y (variable production): Skip finding an alias for ifunc - symbols. - -2018-04-26 Pedro Alves <palves@redhat.com> - - * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too. - -2018-04-25 Pedro Alves <palves@redhat.com> - - * infcmd.c (kill_command): Print the pid as string, not the whole - thread's ptid. Add comment. s/has been killed/killed/ in output - message. - * remote.c (remote_detach_1): Print the pid as string, not the - whole thread's ptid. - -2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> - Sergio Durigan Junior <sergiodj@redhat.com> - Pedro Alves <palves@redhat.com> - - * infcmd.c (kill_command): Print message when inferior has - been killed. - * inferior.c (print_inferior_events): Remove 'static'. Set as - '1'. - (add_inferior): Improve message printed when - 'print_inferior_events' is on. - (exit_inferior): Remove message printed when - 'print_inferior_events' is on. - (detach_inferior): Improve message printed when - 'print_inferior_events' is on. - (initialize_inferiors): Use 'add_inferior_silent' to set - 'current_inferior_'. - * inferior.h (print_inferior_events): Declare here as - 'extern'. - * infrun.c (follow_fork_inferior): Print '[Attaching...]' or - '[Detaching...]' messages when 'print_inferior_events' is on. - Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']' - as prefix/suffix for messages. Remove periods. Fix erroneous - 'Detaching after fork from child...', replace it by '... from - parent...'. - (handle_vfork_child_exec_or_exit): Add '[' and ']' as - prefix/suffix when printing 'Detaching...' messages. Print - them when 'print_inferior_events' is on. - * remote.c (remote_detach_1): Print message when detaching - from inferior and '!is_fork_parent'. - -2018-04-24 Tom Tromey <tom@tromey.com> - - * cli-out.h: Reindent. - -2018-04-24 Tom Tromey <tom@tromey.com> - - * cli-out.c (cli_ui_out::out_field_fmt): Remove. - (cli_ui_out::do_field_string): Use fputs_filtered. - * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove. - -2018-04-23 Tom Tromey <tom@tromey.com> - - * guile/scm-frame.c (gdbscm_frame_read_var): Use - gdb::unique_xmalloc_ptr. - -2018-04-23 Tom Tromey <tom@tromey.com> - - * configure: Rebuild. - -2018-04-22 Rajendra SY <rajendra.sy@gmail.com> - - PR gdb/23095 - * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to - prepare_for_testing. Set normal_bp to r_debug_state if target - is bsd. - -2018-04-21 Pedro Alves <palves@redhat.com> - Rajendra SY <rajendra.sy@gmail.com> - - * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing. - * remote.c (extended_remote_attach): In all-stop mode, mark the - thread as executing. - -2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> - - * thread.c (thread_apply_all_command): Fix comment. - (thread_command): Fix comment. - -2018-04-10 Alan Hayward <alan.hayward@arm.com> - - * common/tdesc.h (tdesc_create_feature): Remove xml filename - parameter. - * features/aarch64-core.c (create_feature_aarch64_core): - Regenerate. - * features/aarch64-fpu.c (create_feature_aarch64_fpu): - Likewise. - * features/i386/32bit-avx.c (create_feature_i386_32bit_avx): - Likewise. - * features/i386/32bit-avx512.c - (create_feature_i386_32bit_avx512): Likewise. - * features/i386/32bit-core.c (create_feature_i386_32bit_core): - Likewise. - * features/i386/32bit-linux.c (create_feature_i386_32bit_linux): - Likewise. - * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx): - Likewise. - * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys): - Likewise. - * features/i386/32bit-sse.c (create_feature_i386_32bit_sse): - Likewise. - * features/i386/64bit-avx.c (create_feature_i386_64bit_avx): - Likewise. - * features/i386/64bit-avx512.c - (create_feature_i386_64bit_avx512): Likewise. - * features/i386/64bit-core.c (create_feature_i386_64bit_core): - Likewise. - * features/i386/64bit-linux.c (create_feature_i386_64bit_linux): - Likewise. - * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx): - Likewise. - * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys): - Likewise. - * features/i386/64bit-segments.c - (create_feature_i386_64bit_segments): Likewise. - * features/i386/64bit-sse.c (create_feature_i386_64bit_sse): - Likewise. - * features/i386/x32-core.c - (create_feature_i386_x32_core): Likewise. - * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise. - * features/tic6x-core.c (create_feature_tic6x_core): Likewise. - * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise. - * target-descriptions.c: In generated code, don't pass xml - filename. - -2018-04-18 Alan Hayward <alan.hayward@arm.com> - - * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing. - (print_xml_feature::visit_post): Likewise. - (print_xml_feature::visit): Likewise. - * common/tdesc.h (tdesc_get_features_xml): Use const tdesc. - (print_xml_feature): Add new class. - * regformats/regdat.sh: Null xmltarget on feature targets. - * target-descriptions.c (struct target_desc): Add xmltarget. - (maintenance_check_tdesc_xml_convert): Add unittest function. - (tdesc_get_features_xml): Add function to get xml. - (maintenance_check_xml_descriptions): Test xml generation. - * xml-tdesc.c (string_read_description_xml): Add function. - * xml-tdesc.h (string_read_description_xml): Add declaration. - -2018-04-18 Alan Hayward <alan.hayward@arm.com> - - * features/Makefile: Add feature marker to targets with new style - target descriptions. - * regformats/aarch64.dat: Regenerate. - * regformats/i386/amd64-avx-avx512-linux.dat: Likewise. - * regformats/i386/amd64-avx-linux.dat: Likewise. - * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise. - * regformats/i386/amd64-avx-mpx-linux.dat: Likewise. - * regformats/i386/amd64-linux.dat: Likewise. - * regformats/i386/amd64-mpx-linux.dat: Likewise. - * regformats/i386/amd64.dat: Likewise. - * regformats/i386/i386-avx-avx512-linux.dat: Likewise. - * regformats/i386/i386-avx-linux.dat: Likewise. - * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise. - * regformats/i386/i386-avx-mpx-linux.dat: Likewise. - * regformats/i386/i386-linux.dat: Likewise. - * regformats/i386/i386-mmx-linux.dat: Likewise. - * regformats/i386/i386-mpx-linux.dat: Likewise. - * regformats/i386/i386.dat: Likewise. - * regformats/i386/x32-avx-avx512-linux.dat: Likewise. - * regformats/i386/x32-avx-linux.dat: Likewise. - * regformats/i386/x32-linux.dat: Likewise. - * regformats/tic6x-c62x-linux.dat: Likewise. - * regformats/tic6x-c64x-linux.dat: Likewise. - * regformats/tic6x-c64xp-linux.dat: Likewise. - * regformats/regdat.sh: Parse feature marker. - -2018-04-18 Alan Hayward <alan.hayward@arm.com> - - * common/tdesc.h (tdesc_architecture_name): Add new declaration. - (tdesc_osabi_name): Likewise. - * target-descriptions.c (tdesc_architecture_name): Add new - function. - (tdesc_osabi_name): Likewise. - -2018-04-18 Alan Hayward <alan.hayward@arm.com> - - * common/tdesc.c (tdesc_predefined_type): Move to here. - (tdesc_named_type): Likewise. - (tdesc_create_vector): Likewise. - (tdesc_create_struct): Likewise. - (tdesc_set_struct_size): Likewise. - (tdesc_create_union): Likewise. - (tdesc_create_flags): Likewise. - (tdesc_create_enum): Likewise. - (tdesc_add_field): Likewise. - (tdesc_add_typed_bitfield): Likewise. - (tdesc_add_bitfield): Likewise. - (tdesc_add_flag): Likewise. - (tdesc_add_enum_value): Likewise. - * common/tdesc.h (struct tdesc_type_builtin): Likewise. - (struct tdesc_type_vector): Likewise. - (struct tdesc_type_field): Likewise. - (struct tdesc_type_with_fields): Likewise. - (tdesc_create_enum): Add declaration. - (tdesc_add_typed_bitfield): Likewise. - (tdesc_add_enum_value): Likewise. - * target-descriptions.c (tdesc_type_field): Move from here. - (tdesc_type_builtin): Likewise. - (tdesc_type_vector): Likewise. - (tdesc_type_with_fields): Likewise. - (tdesc_predefined_types): Likewise. - (tdesc_named_type): Likewise. - (tdesc_create_vector): Likewise. - (tdesc_create_struct): Likewise. - (tdesc_set_struct_size): Likewise. - (tdesc_create_union): Likewise. - (tdesc_create_flags): Likewise. - (tdesc_create_enum): Likewise. - (tdesc_add_field): Likewise. - (tdesc_add_typed_bitfield): Likewise. - (tdesc_add_bitfield): Likewise. - (tdesc_add_flag): Likewise. - (tdesc_add_enum_value): Likewise. - * gdb/target-descriptions.h (tdesc_create_enum): Likewise. - (tdesc_add_typed_bitfield): Likewise. - (tdesc_add_enum_value): Likewise. - -2018-04-18 Alan Hayward <alan.hayward@arm.com> - - * common/tdesc.c (tdesc_feature::accept): Move to here. - (tdesc_feature::operator==): Likewise. - (tdesc_create_reg): Likewise. - * common/tdesc.h (tdesc_type_kind): Likewise. - (struct tdesc_type): Likewise. - (struct tdesc_feature): Likewise. - * regformats/regdat.sh: Create a feature. - * target-descriptions.c (tdesc_type_kind): Move from here. - (tdesc_type): Likewise. - (tdesc_type_up): Likewise. - (tdesc_feature): Likewise. - (tdesc_create_reg): Likewise. - -2018-04-18 Alan Hayward <alan.hayward@arm.com> - - * Makefile.in: Add arch/tdesc.c - * common/tdesc.c: New file. - * common/tdesc.h (tdesc_element_visitor): Move to here. - (tdesc_element): Likewise. - (tdesc_reg): Likewise. - (tdesc_reg_up): Likewise. - * regformats/regdef.h (reg): Add offset to constructors. - * target-descriptions.c (tdesc_element_visitor): Move from here. - (tdesc_element): Likewise. - (tdesc_reg): Likewise. - (tdesc_reg_up): Likewise. - -2018-04-17 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (quirk_rust_enum): Conditionally drop the - discriminant field. - -2018-04-17 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (quirk_rust_enum): Handle unions correctly. - -2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com> - - * symtab.c (print_symbol_info): Skip printing filename and line - number when `last' is NULL. - (symtab_symbol_info): Use empty string instead of NULL for first - invocation of print_symbol_info. - (rbreak_command): Pass NULL to `last' parameter of - print_symbol_info. - -2018-04-16 Simon Marchi <simon.marchi@ericsson.com> - - * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data - instead of nullptr. - -2018-04-16 Pedro Alves <palves@redhat.com> - - * MAINTAINERS (sh): Remove. - * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o. - (HFILES_NO_SRCDIR): Remove sh64-tdep.h. - (ALLDEPFILES): Remove sh64-tdep.c. - * NEWS: Mentions that support for SH-5/SH64 is removed. - * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o. - (sh*-*-openbsd*): Ditto. - (sh64-*-elf*): Remove. - (sh*): Remove. - * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case. - * sh-linux-tdep.c: Remove reference to bfd_mach_sh5. - * sh-tdep.c: No longer include "sh64-tdep.h". - (sh_gdbarch_init): Remove reference to bfd_mach_sh5. - * sh64-tdep.c, sh64-tdep.h: Remove files. - -2018-04-16 Pedro Alves <palves@redhat.com> - - * MAINTAINERS: Remove m88k. - * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o. - (HFILES_NO_SRCDIR): Remove m88k-tdep.h. - (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c. - * NEWS: Mention that support for m88k was removed. - * configure.host (m88*-*-*): Remove support. - * configure.nat (m88k-*-*): Remove support. - * configure.tgt (m88*-*-openbsd*): Remove. - * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete. - -2018-04-15 Simon Marchi <simon.marchi@polymtl.ca> - - * configure.tgt (x86_tobjs): New variable. - (amd64_tobjs, i386_tobjs): Use it. - -2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com> - - * symtab.c (print_symbol_info): Precede the symbol definition by - the line number when available. - * NEWS: Advertise this enhancement. - -2018-04-13 Markus Metzger <markus.t.metzger@intel.com> - - * NEWS (New options): announce set/show record btrace cpu. - * btrace.c: Include record-btrace.h. - (btrace_compute_ftrace_pt): Skip enabling errata workarounds if - the vendor is unknown. - (btrace_compute_ftrace_1): Add cpu parameter. Update callers. - Maybe overwrite the btrace configuration's cpu. - (btrace_compute_ftrace): Add cpu parameter. Update callers. - (btrace_fetch): Add cpu parameter. Update callers. - (btrace_maint_update_pt_packets): Call record_btrace_get_cpu. - Maybe overwrite the btrace configuration's cpu. Skip enabling - errata workarounds if the vendor is unknown. - * python/py-record-btrace.c: Include record-btrace.h. - (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history) - (recpy_bt_function_call_history): Call record_btrace_get_cpu. - * record-btrace.c (record_btrace_cpu_state_kind): New. - (record_btrace_cpu): New. - (set_record_btrace_cpu_cmdlist): New. - (record_btrace_get_cpu): New. - (require_btrace_thread, record_btrace_info) - (record_btrace_resume_thread): Call record_btrace_get_cpu. - (cmd_set_record_btrace_cpu_none): New. - (cmd_set_record_btrace_cpu_auto): New. - (cmd_set_record_btrace_cpu): New. - (cmd_show_record_btrace_cpu): New. - (_initialize_record_btrace): Initialize set/show record btrace cpu - commands. - * record-btrace.h (record_btrace_get_cpu): New. - -2018-04-13 Markus Metzger <markus.t.metzger@intel.com> - - * record.c (set_record_command): Fix typo in message. - -2018-04-13 Markus Metzger <markus.t.metzger@intel.com> - - * record-btrace.c (cmd_set_record_btrace): Print sub-commands. - -2018-04-13 Markus Metzger <markus.t.metzger@intel.com> - - * infrun.c (process_event_stop_test): Call - gdbarch_in_indirect_branch_thunk. - * gdbarch.sh (in_indirect_branch_thunk): New. - * gdbarch.c: Regenerated. - * gdbarch.h: Regenerated. - * x86-tdep.h: New. - * x86-tdep.c: New. - * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o. - (HFILES_NO_SRCDIR): Add x86-tdep.h. - (ALLDEPFILES): Add x86-tdep.c. - * arch-utils.h (default_in_indirect_branch_thunk): New. - * arch-utils.c (default_in_indirect_branch_thunk): New. - * i386-tdep: Include x86-tdep.h. - (i386_in_indirect_branch_thunk): New. - (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch - function. - * amd64-tdep: Include x86-tdep.h. - (amd64_in_indirect_branch_thunk): New. - (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function. - -2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com> - - PR gdb/23053 - * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type) - (recursively_write_psymbols) (debug_names::recursively_write_psymbols) - (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG - regression. - -2018-04-12 Tom Tromey <tom@tromey.com> - - * rust-lang.c (rust_print_struct_def): Remove univariant code. - (rust_evaluate_subexp): Likewise. - -2018-04-12 Pedro Alves <palves@redhat.com> - - * procfs.c (procfs_detach): Make forward declaration's prototype - match definition's protototype. - (proc_get_LDT_entry): Remove stale do_cleanups call. - -2018-04-12 Pedro Alves <palves@redhat.com> - - * target.h (target_ops::to_has_exited): Delete. - (target_has_exited): Delete. - * target-delegates.c: Regenerate. - -2018-04-11 Pedro Alves <palves@redhat.com> - - * target.c (fileio_fh_t::t): Add comment. - (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) - (target_fileio_close): Handle a NULL target. - (invalidate_fileio_fh): New. - (target_close): Call it. - * remote.c (remote_hostio_send_command): No longer check whether - remote_desc is open. - -2018-04-11 Pedro Alves <palves@redhat.com> - - * target.c (fileio_fh_t): Make it a named struct instead of a - typedef. - (fileio_fh_t::is_closed): New method. - (DEF_VEC_O (fileio_fh_t)): Remove. - (fileio_fhandles): Now a std::vector. - (is_closed_fileio_fh): Delete. - (acquire_fileio_fd): Adjust. Rename parameters. - (release_fileio_fd): Adjust. - (fileio_fd_to_fh): Reimplement as a function instead of a macro. - (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) - (target_fileio_close): Adjust. - -2018-04-10 Simon Marchi <simon.marchi@ericsson.com> - - * auto-load.c (auto_load_safe_path_vec_update): Iterate by - index. - -2018-04-10 Pedro Alves <palves@redhat.com> - - * gdbthread.h (finish_thread_state_cleanup): Delete declaration. - (scoped_finish_thread_state): New class. - * infcmd.c (run_command_1): Use it instead of finish_thread_state - cleanup. - * infrun.c (proceed, prepare_for_detach, wait_for_inferior) - (fetch_inferior_event, normal_stop): Likewise. - * thread.c (finish_thread_state_cleanup): Delete. - -2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> - Pedro Alves <palves@redhat.com> - - * value.c: Include "selftest.h" and "common/array-view.h". - (struct range) <operator ==>: New. - (test_ranges_contain): New. - (check_ranges_vector): New. - (test_insert_into_bit_range_vector): New. - (_initialize_values): Register selftests. - * common/array-view.h (operator==, operator!=): New. - -2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> - - * common/gdb_vecs.h (unordered_remove): Add overload that takes - an iterator. - * inline-frame.c: Include <algorithm>. - (struct inline_state): Add constructor. - (inline_state_s): Remove. - (DEF_VEC_O(inline_state_s)): Remove. - (inline_states): Change type to std::vector. - (find_inline_frame_state): Adjust to std::vector. - (allocate_inline_frame_state): Remove. - (clear_inline_frame_state): Adjust to std::vector. - (skip_inline_frames): Adjust to std::vector. - -2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> - - * tracepoint.h (struct trace_state_variable): Add constructor. - <name>: Change type to std::string. - * tracepoint.c (tsv_s): Remove. - (DEF_VEC_O(tsv_s)): Remove. - (tvariables): Change to std::vector. - (create_trace_state_variable): Adjust to std::vector. - (find_trace_state_variable): Likewise. - (find_trace_state_variable_by_number): Likewise. - (delete_trace_state_variable): Likewise. - (trace_variable_command): Adjust to std::string. - (delete_trace_variable_command): Likewise. - (tvariables_info_1): Adjust to std::vector. - (save_trace_state_variables): Likewise. - (start_tracing): Likewise. - (merge_uploaded_trace_state_variables): Adjust to std::vector - and std::string. - * target.h (struct target_ops) - <to_download_trace_state_variable>: Pass reference to - trace_state_variable. - * target-debug.h (target_debug_print_const_trace_state_variable_r): New. - * target-delegates.c: Re-generate. - * mi/mi-interp.c (mi_tsv_created): Adjust to std::string. - (mi_tsv_deleted): Likewise. - * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise. - * remote.c (remote_download_trace_state_variable): Change - pointer to reference and adjust. - * make-target-delegates (parse_argtypes): Handle references. - (write_function_header): Likewise. - (munge_type): Likewise. - -2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> - - * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add - string_view-selftests.c. - * unittests/basic_string_view/capacity/1.cc: Adapt to GDB - testsuite. - * unittests/basic_string_view/cons/char/1.cc: Likewise. - * unittests/basic_string_view/cons/char/2.cc: Likewise. - * unittests/basic_string_view/cons/char/3.cc: Likewise. - * unittests/basic_string_view/element_access/char/1.cc: - Likewise. - * unittests/basic_string_view/element_access/char/empty.cc: - Likewise. - * unittests/basic_string_view/element_access/char/front_back.cc: - Likewise. - * unittests/basic_string_view/inserters/char/2.cc: Likewise. - * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: - Likewise. - * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: - Likewise. - * unittests/basic_string_view/modifiers/swap/char/1.cc: - Likewise. - * unittests/basic_string_view/operations/compare/char/1.cc: - Likewise. - * unittests/basic_string_view/operations/compare/char/13650.cc: - Likewise. - * unittests/basic_string_view/operations/copy/char/1.cc: - Likewise. - * unittests/basic_string_view/operations/data/char/1.cc: - Likewise. - * unittests/basic_string_view/operations/find/char/1.cc: - Likewise. - * unittests/basic_string_view/operations/find/char/2.cc: - Likewise. - * unittests/basic_string_view/operations/find/char/3.cc: - Likewise. - * unittests/basic_string_view/operations/find/char/4.cc: - Likewise. - * unittests/basic_string_view/operations/rfind/char/1.cc: - Likewise. - * unittests/basic_string_view/operations/rfind/char/2.cc: - Likewise. - * unittests/basic_string_view/operations/rfind/char/3.cc: - Likewise. - * unittests/basic_string_view/operations/substr/char/1.cc: - Likewise. - * unittests/basic_string_view/operators/char/2.cc: Likewise. - * unittests/string_view-selftests.c: New file. - -2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> - - * unittests/basic_string_view/capacity/1.cc: New file. - * unittests/basic_string_view/capacity/empty_neg.cc: New file. - * unittests/basic_string_view/cons/char/1.cc: New file. - * unittests/basic_string_view/cons/char/2.cc: New file. - * unittests/basic_string_view/cons/char/3.cc: New file. - * unittests/basic_string_view/cons/wchar_t/1.cc: New file. - * unittests/basic_string_view/cons/wchar_t/2.cc: New file. - * unittests/basic_string_view/cons/wchar_t/3.cc: New file. - * unittests/basic_string_view/element_access/char/1.cc: New file. - * unittests/basic_string_view/element_access/char/2.cc: New file. - * unittests/basic_string_view/element_access/char/empty.cc: New file. - * unittests/basic_string_view/element_access/char/front_back.cc: New file. - * unittests/basic_string_view/element_access/wchar_t/1.cc: New file. - * unittests/basic_string_view/element_access/wchar_t/2.cc: New file. - * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file. - * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file. - * unittests/basic_string_view/include.cc: New file. - * unittests/basic_string_view/inserters/char/1.cc: New file. - * unittests/basic_string_view/inserters/char/2.cc: New file. - * unittests/basic_string_view/inserters/char/3.cc: New file. - * unittests/basic_string_view/inserters/pod/10081-out.cc: New file. - * unittests/basic_string_view/inserters/wchar_t/1.cc: New file. - * unittests/basic_string_view/inserters/wchar_t/2.cc: New file. - * unittests/basic_string_view/inserters/wchar_t/3.cc: New file. - * unittests/basic_string_view/literals/types.cc: New file. - * unittests/basic_string_view/literals/values.cc: New file. - * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file. - * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file. - * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file. - * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file. - * unittests/basic_string_view/modifiers/swap/char/1.cc: New file. - * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file. - * unittests/basic_string_view/operations/compare/char/1.cc: New file. - * unittests/basic_string_view/operations/compare/char/13650.cc: New file. - * unittests/basic_string_view/operations/compare/char/2.cc: New file. - * unittests/basic_string_view/operations/compare/char/70483.cc: New file. - * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file. - * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file. - * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file. - * unittests/basic_string_view/operations/copy/char/1.cc: New file. - * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file. - * unittests/basic_string_view/operations/data/char/1.cc: New file. - * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file. - * unittests/basic_string_view/operations/find/char/1.cc: New file. - * unittests/basic_string_view/operations/find/char/2.cc: New file. - * unittests/basic_string_view/operations/find/char/3.cc: New file. - * unittests/basic_string_view/operations/find/char/4.cc: New file. - * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file. - * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file. - * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file. - * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file. - * unittests/basic_string_view/operations/rfind/char/1.cc: New file. - * unittests/basic_string_view/operations/rfind/char/2.cc: New file. - * unittests/basic_string_view/operations/rfind/char/3.cc: New file. - * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file. - * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file. - * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file. - * unittests/basic_string_view/operations/string_conversion/1.cc: New file. - * unittests/basic_string_view/operations/substr/char/1.cc: New file. - * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file. - * unittests/basic_string_view/operators/char/2.cc: New file. - * unittests/basic_string_view/operators/wchar_t/2.cc: New file. - * unittests/basic_string_view/range_access/char/1.cc: New file. - * unittests/basic_string_view/range_access/wchar_t/1.cc: New file. - * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file. - * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file. - * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file. - * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file. - * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file. - * unittests/basic_string_view/requirements/typedefs.cc: New file. - * unittests/basic_string_view/typedefs.cc: New file. - * unittests/basic_string_view/types/1.cc: New file. - -2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> - - * common/gdb_string_view.h: Remove libstdc++ implementation - details, adjust to gdb reality. - * common/gdb_string_view.tcc: Likewise. - * cli/cli-script.c (struct string_view): Remove. - (user_args) <m_args>: Change element type to gdb::string_view. - (user_args::insert_args): Adjust. - -2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> - - * common/gdb_string_view.h: New file. - * common/gdb_string_view.tcc: New file. - -2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> - - * ax_cxx_compile_stdcxx.m4: Sync with upstream. - * configure: Re-generate. - -2018-04-09 Pedro Alves <palves@redhat.com> - - * gdbarch.sh: Include "observable.h" instead of "observer.h". - (set_target_gdbarch): Call - gdb::observers::architecture_changed.notify instead of - observer_notify_architecture_changed. - -2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> - - * tracepoint.c (struct current_traceframe_cleanup): Remove. - (do_restore_current_traceframe_cleanup): Remove. - (restore_current_traceframe_cleanup_dtor): Remove. - (make_cleanup_restore_current_traceframe): Remove. - (scoped_restore_current_traceframe::scoped_restore_current_traceframe): - New. - * tracepoint.h (struct scoped_restore_current_traceframe): New. - * infrun.c (fetch_inferior_event): Use - scoped_restore_current_traceframe. - -2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> - - * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>: - Remove. - <n_allocated_type_units>: Remove. - <all_type_units>: Change to std::vector. - * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust - to std::vector change. - (dwarf2_per_objfile::get_cutu): Likewise. - (dwarf2_per_objfile::get_tu): Likewise. - (create_signatured_type_table_from_index): Likewise. - (create_signatured_type_table_from_debug_names): Likewise. - (dw2_symtab_iter_next): Likewise. - (dw2_print_stats): Likewise. - (dw2_expand_all_symtabs): Likewise. - (dw2_expand_marked_cus): Likewise. - (dw2_debug_names_iterator::next): Likewise. - (dwarf2_initialize_objfile): Likewise. - (add_signatured_type_cu_to_table): Likewise. - (create_all_type_units): Likewise. - (add_type_unit): Likewise. - (struct tu_abbrev_offset): Add constructor. - (build_type_psymtabs_1): Adjust to std::vector change. - (print_tu_stats): Likewise. - * dwarf-index-write.c (check_dwarf64_offsets): Likewise. - (write_debug_names): Likewise. - -2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> - - * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise. - Make an std::vector. - <n_comp_units>: Remove. - * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust - to std::vector change. - (dwarf2_per_objfile::get_cutu): Likewise. - (dwarf2_per_objfile::get_cu): Likewise. - (create_cus_from_index): Likewise. - (create_addrmap_from_index): Likewise. - (create_addrmap_from_aranges): Likewise. - (dwarf2_read_index): Likewise. - (dw2_find_last_source_symtab): Likewise. - (dw2_map_symtabs_matching_filename): Likewise. - (dw2_symtab_iter_next): Likewise. - (dw2_print_stats): Likewise. - (dw2_expand_all_symtabs): Likewise. - (dw2_expand_symtabs_with_fullname): Likewise. - (dw2_expand_marked_cus): Likewise. - (dw2_map_symbol_filenames): Likewise. - (create_cus_from_debug_names): Likewise. - (dwarf2_read_debug_names): Likewise. - (dw2_debug_names_iterator::next): Likewise. - (dwarf2_initialize_objfile): Likewise. - (set_partial_user): Likewise. - (dwarf2_build_psymtabs_hard): Likewise. - (read_comp_units_from_section): Remove arguments, adjust to - std::vector change. - (create_all_comp_units): Adjust to std::vector and - read_comp_units_from_section changes. - (dwarf2_find_containing_comp_unit): Adjust to std::vector - change. - * dwarf-index-write.c (check_dwarf64_offsets): Likewise. - (psyms_seen_size): Likewise. - (write_gdbindex): Likewise. - (write_debug_names): Likewise. - -2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> - - * dwarf2read.c (create_cus_from_index_list): Replace objfile arg - with dwarf2_per_objfile. - (create_cus_from_index): Likewise. - (create_signatured_type_table_from_index): Likewise. - (dwarf2_read_index): Likewise. - (dwarf2_initialize_objfile): Likewise. - (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from - per_cu rather than get_dwarf2_per_objfile. - -2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> - - * dwarf2read.h (struct signatured_type): Forward declare. - (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>: - New methods. - * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from... - (dw2_get_cutu): ...this. - (dwarf2_per_objfile::get_cu): Rename from... - (dw2_get_cu): ...this. - (dwarf2_per_objfile::get_tu): New. - (create_addrmap_from_index): Adjust. - (create_addrmap_from_aranges): Adjust. - (dw2_find_last_source_symtab): Adjust. - (dw2_map_symtabs_matching_filename): Adjust. - (dw2_symtab_iter_next): Adjust. - (dw2_print_stats): Adjust. - (dw2_expand_all_symtabs): Adjust. - (dw2_expand_symtabs_with_fullname): Adjust. - (dw2_expand_marked_cus): Adjust. - (dw_expand_symtabs_matching_file_matcher): Adjust. - (dw2_map_symbol_filenames): Adjust. - (dw2_debug_names_iterator::next): Adjust. - (dwarf2_initialize_objfile): Adjust. - (set_partial_user): Adjust. - (dwarf2_build_psymtabs_hard): Adjust. - -2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> - - * dwarf2read.c (create_signatured_type_table_from_debug_names): - Remove unused variables. - (dw2_map_symtabs_matching_filename): Likewise. - (dwarf2_record_block_ranges): Likewise. - (dwarf2_read_addr_index): Likewise. - (follow_die_offset): Likewise. - -2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> - - * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET - to symbol_file_add_main. - -2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> - - PR mi/22299 - * mi/mi-console.c (do_fputc_async_safe): New. - (mi_console_file::write_async_safe): New. - (mi_console_file::flush): Adjust calls to fputstrn_unfiltered. - * mi/mi-console.h (class mi_console_file) <write_async_safe>: - New. - * ui-file.c (ui_file::putstrn): Adjust call to - fputstrn_unfiltered. - * utils.c (printchar): Replace do_fputs and do_fprintf - parameters by do_fputc. - (fputstr_filtered): Adjust call to printchar. - (fputstr_unfiltered): Likewise. - (fputstrn_filtered): Likewise. - (fputstrn_unfiltered): Add do_fputc parameter, pass to - printchar. - * utils.h (do_fputc_ftype): New typedef. - (fputstrn_unfiltered): Add do_fputc parameter. - -2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> - - * regformats/i386/i386-avx.dat: Remove. - -2018-04-07 Simon Marchi <simon.marchi@ericsson.com> - - PR gdb/22979 - * amd64-tdep.c (amd64_none_init_abi): New function. - (amd64_x32_none_init_abi): New function. - (_initialize_amd64_tdep): Register handlers for x86-64 and - x64_32 with GDB_OSABI_NONE. - * osabi.c (gdbarch_init_osabi): Allow running handlers for the - GDB_OSABI_NONE osabi. - -2018-04-07 Simon Marchi <simon.marchi@ericsson.com> - - PR gdb/22980 - * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add - GDB_OSABI_NONE. - * arch-utils.c (gdbarch_info_init): Don't set info->osabi. - * osabi.c (gdb_osabi_names): Add "unknown" entry. - -2018-04-07 Simon Marchi <simon.marchi@ericsson.com> - - * common/byte-vector.h (char_vector): New type. - * target.h (target_read_alloc): Return - gdb::optional<byte_vector>. - (target_read_stralloc): Return gdb::optional<char_vector>. - (target_get_osdata): Return gdb::optional<char_vector>. - * target.c (target_read_alloc_1): Templatize. Replacement - manual memory management with vector. - (target_read_alloc): Change return type, adjust. - (target_read_stralloc): Change return type, adjust. - (target_get_osdata): Change return type, adjust. - * auxv.c (struct auxv_info) <length>: Remove. - <data>: Change type to gdb::optional<byte_vector>. - (auxv_inferior_data_cleanup): Free auxv_info with delete. - (get_auxv_inferior_data): Allocate auxv_info with new, adjust. - (target_auxv_search): Adjust. - (fprint_target_auxv): Adjust. - * avr-tdep.c (avr_io_reg_read_command): Adjust. - * linux-tdep.c (linux_spu_make_corefile_notes): Adjust. - (linux_make_corefile_notes): Adjust. - * osdata.c (get_osdata): Adjust. - * remote.c (remote_get_threads_with_qxfer): Adjust. - (remote_memory_map): Adjust. - (remote_traceframe_info): Adjust. - (btrace_read_config): Adjust. - (remote_read_btrace): Adjust. - (remote_pid_to_exec_file): Adjust. - * solib-aix.c (solib_aix_get_library_list): Adjust. - * solib-dsbt.c (decode_loadmap): Don't free buf. - (dsbt_get_initial_loadmaps): Adjust. - * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust. - * solib-target.c (solib_target_current_sos): Adjust. - * tracepoint.c (sdata_make_value): Adjust. - * xml-support.c (xinclude_start_include): Adjust. - (xml_fetch_content_from_file): Adjust. - * xml-support.h (xml_fetch_another): Change return type. - (xml_fetch_content_from_file): Change return type. - * xml-syscall.c (xml_init_syscalls_info): Adjust. - * xml-tdesc.c (file_read_description_xml): Adjust. - (fetch_available_features_from_target): Change return type. - (target_fetch_description_xml): Adjust. - (target_read_description_xml): Adjust. - -2018-04-06 Tom Tromey <tom@tromey.com> - - * value.c (~value): Update. - (struct value) <contents>: Now unique_xmalloc_ptr. - (value_contents_bits_eq, allocate_value_contents) - (value_contents_raw, value_contents_all_raw) - (value_contents_for_printing, value_contents_for_printing_const) - (set_value_enclosing_type): Update. - -2018-04-06 Tom Tromey <tom@tromey.com> - - * value.c (range_s): Remove typedef, VEC. - (struct range): Add operator<. - (range_lessthan): Remove. - (ranges_contain): Change type. - (~value): Update. - (struct value) <unavailable, optimized_out>: Now std::vector. - (value_entirely_available) - (value_entirely_covered_by_range_vector) - (value_entirely_unavailable, value_entirely_optimized_out): - Update. - (insert_into_bit_range_vector): Change argument type. - (find_first_range_overlap): Likewise. - (struct ranges_and_idx, value_contents_bits_eq) - (require_not_optimized_out, require_available): Update. - (ranges_copy_adjusted): Change argument types. - (value_optimized_out, value_copy, value_fetch_lazy): Update. - -2018-04-06 Tom Tromey <tom@tromey.com> - - * value.c (~value): Update. - (struct value) <parent>: Now a value_ref_ptr. - (value_parent, set_value_parent, value_address, value_copy): - Update. - -2018-04-06 Tom Tromey <tom@tromey.com> - - * value.c (struct value): Add constructor, destructor, and member - initializers. - (allocate_value_lazy, value_decref): Update. - -2018-04-06 Tom Tromey <tom@tromey.com> - - * value.c (struct value) <released, next>: Remove. - (all_values): Now a std::vector. - (allocate_value_lazy): Update. - (value_next): Remove. - (value_mark, value_free_to_mark, release_value) - (value_release_to_mark): Update. - -2018-04-06 Tom Tromey <tom@tromey.com> - - * value.h (fetch_subexp_value, value_release_to_mark): Update. - (free_value_chain): Remove. - * value.c (free_value_chain): Remove. - (value_release_to_mark): Return a std::vector. - * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a - std::vector. - (check_condition): Update. - * eval.c (fetch_subexp_value): Change "val_chain" to a - std::vector. - * breakpoint.c (update_watchpoint): Update. - (can_use_hardware_watchpoint): Change "vals" to a std::vector. - -2018-04-06 Tom Tromey <tom@tromey.com> - - * value.h (free_all_values): Remove. - * value.c (free_all_values): Remove. - -2018-04-06 Tom Tromey <tom@tromey.com> - - * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk) - (value_history_chain, value_history_count): Remove. - (value_history): New global. - (record_latest_value, access_value_history, show_values) - (preserve_values): Update. - -2018-04-06 Tom Tromey <tom@tromey.com> - - * varobj.h (struct varobj) <value>: Now a value_ref_ptr. - * varobj.c (varobj_set_display_format, varobj_set_value) - (install_default_visualizer, construct_visualizer) - (install_new_value, ~varobj, varobj_get_value_type) - (my_value_of_variable, varobj_editable_p): Update. - * c-varobj.c (c_describe_child, c_value_of_variable) - (cplus_number_of_children, cplus_describe_child): Update. - * ada-varobj.c (ada_number_of_children, ada_name_of_child) - (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child) - (ada_value_of_variable, ada_value_is_changeable_p): Update. - -2018-04-06 Tom Tromey <tom@tromey.com> - - * printcmd.c (last_examine_address): Change type to - value_ref_ptr. - (do_examine, x_command): Update. - -2018-04-06 Tom Tromey <tom@tromey.com> - - * value.c (release_value): Update. - * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr. - (struct bpstats) <val>: Now a value_ref_ptr. - * breakpoint.c (update_watchpoint, breakpoint_init_inferior) - (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) - (~watchpoint, print_it_watchpoint, watch_command_1) - (invalidate_bp_value_on_memory_change): Update. - -2018-04-06 Tom Tromey <tom@tromey.com> - - * varobj.c (varobj_clear_saved_item) - (update_dynamic_varobj_children, install_new_value, ~varobj): - Update. - * value.h (value_incref): Move declaration earlier. - (value_decref): Rename from value_free. - (struct value_ref_policy): New. - (value_ref_ptr): New typedef. - (struct value_deleter): Remove. - (gdb_value_up): Remove typedef. - (release_value): Change return type. - (release_value_or_incref): Remove. - * value.c (set_value_parent): Update. - (value_incref): Change return type. - (value_decref): Rename from value_free. - (value_free_to_mark, free_all_values, free_value_chain): Update. - (release_value): Return value_ref_ptr. - (release_value_or_incref): Remove. - (record_latest_value, set_internalvar, clear_internalvar): - Update. - * stack.c (info_frame_command): Don't call value_free. - * python/py-value.c (valpy_dealloc, valpy_new) - (value_to_value_object): Update. - * printcmd.c (do_examine): Update. - * opencl-lang.c (lval_func_free_closure): Update. - * mi/mi-main.c (register_changed_p): Don't call value_free. - * mep-tdep.c (mep_frame_prev_register): Don't call value_free. - * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free. - * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call - value_free. - * guile/scm-value.c (vlscm_free_value_smob) - (vlscm_scm_from_value): Update. - * frame.c (frame_register_unwind, frame_unwind_register_signed) - (frame_unwind_register_unsigned, get_frame_register_bytes) - (put_frame_register_bytes): Don't call value_free. - * findvar.c (address_from_register): Don't call value_free. - * dwarf2read.c (dwarf2_compute_name): Don't call value_free. - * dwarf2loc.c (entry_data_value_free_closure) - (value_of_dwarf_reg_entry, free_pieced_value_closure) - (dwarf2_evaluate_loc_desc_full): Update. - * breakpoint.c (update_watchpoint, breakpoint_init_inferior) - (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) - (~watchpoint, watch_command_1) - (invalidate_bp_value_on_memory_change): Update. - * alpha-tdep.c (alpha_register_to_value): Don't call value_free. - -2018-04-06 Simon Marchi <simon.marchi@polymtl.ca> - - PR gdb/23022 - * warning.m4: Add -Wno-error=deprecated-register. - * configure: Re-generate. - -2018-04-05 Tom Tromey <tom@tromey.com> - - * linespec.h: Remove include of "vec.h". - -2018-04-05 Tom Tromey <tom@tromey.com> - - * linespec.c (typep): Remove typedef. - (find_methods, find_superclass_methods): Take a std::vector. - (find_method): Use std::vector. - -2018-04-05 Tom Tromey <tom@tromey.com> - - * utils.c (compare_strings): Remove. - * utils.h (compare_strings): Remove. - * objc-lang.h (find_imps): Update. - * objc-lang.c (find_methods): Take a std::vector. - (uniquify_strings, find_imps): Likewise. - * linespec.c (find_methods): Take a std::vector. - (decode_objc): Use std::vector. - (add_all_symbol_names_from_pspace, find_superclass_methods): Take - a std::vector. - (find_method, find_function_symbols): Use std::vector. - -2018-04-05 Tom Tromey <tom@tromey.com> - - * completer.c (completion_tracker::completion_tracker): Remove - cast. - (completion_tracker::discard_completions): Likewise. - * breakpoint.c (ambiguous_names_p): Remove cast. - * ada-lang.c (_initialize_ada_language): Remove cast. - * utils.h (streq): Update. - (streq_hash): Add new declaration. - * utils.c (streq): Return bool. - (streq_hash): New function. - -2018-04-05 Tom Tromey <tom@tromey.com> - - * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>: - Remove a string copy. - -2018-04-05 Tom Tromey <tom@tromey.com> - - * linespec.c (filter_results): Use std::vector. - (decode_line_2, decode_line_full): Update. - -2018-04-05 Tom Tromey <tom@tromey.com> - - * linespec.c (canonical_to_fullform): Return std::string. - (filter_results): Update. - (struct decode_line_2_item): Add constructor. - <fullform, displayform>: Now std::string. - (decode_line_2_compare_items): Now a std::sort comparator. - (decode_line_2): Update. - -2018-04-05 Tom Tromey <tom@tromey.com> - - * linespec.c (copy_token_string): Return a unique_xmalloc_ptr. - (unexpected_linespec_error): Update. - (linespec_parse_basic, parse_linespec): Update. - -2018-04-05 Tom Tromey <tom@tromey.com> - - * linespec.c (linespec_parse_basic): Reindent. - -2018-04-05 Tom Tromey <tom@tromey.com> - - * minsyms.h (iterate_over_minimal_symbols): Update. - * minsyms.c (iterate_over_minimal_symbols): Take a - gdb::function_view. - * linespec.c (struct collect_minsyms): Remove. - (compare_msyms): Now a std::sort comparator. - (add_minsym): Add parameters. - (search_minsyms_for_name): Update. Use std::vector. - -2018-04-03 Tom Tromey <tom@tromey.com> - - * mipsread.c (read_alphacoff_dynamic_symtab): Use - gdb::byte_vector. - -2018-04-02 Weimin Pan <weimin.pan@oracle.com> - - * MAINTAINERS (Write After Approval): Add Weimin Pan. - -2018-04-02 Weimin Pan <weimin.pan@oracle.com> - - PR gdb/16959 - * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when - printing static type. - -2018-04-01 Tom Tromey <tom@tromey.com> - - * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector. - (rs6000_xfer_shared_libraries): Update. - -2018-04-01 Simon Marchi <simon.marchi@polymtl.ca> - - * common/gdb_vecs.h (char_ptr): Remove. - * tracepoint.c (encode_actions_1): Remove usage of char_ptr. - -2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> - - * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC - with std::vector. - * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove. - -2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> - - * tracepoint.h (struct uploaded_tp): Initialize fields. - <actions, step_actions, cmd_strings>: Change type to - std::vector<char *>. - * tracepoint.c (get_uploaded_tp): Allocate with new. - (free_uploaded_tps): Free with delete. - (parse_tracepoint_definition): Adjust to std::vector change. - * breakpoint.c (read_uploaded_action): Likewise. - (create_tracepoint_from_upload): Likewise. - * ctf.c (ctf_write_uploaded_tp): Likewise. - (SET_ARRAY_FIELD): Likewise. - * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise. - -2018-03-30 Tom Tromey <tom@tromey.com> - - * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return - std::unique_ptr. - (svr4_keep_data_in_core): Update. - (svr4_read_so_list): Update. - -2018-03-30 Tom Tromey <tom@tromey.com> - - * windows-nat.c (handle_output_debug_string, handle_exception): - Update. - * target.h (target_read_string): Update. - * target.c (target_read_string): Change "string" to - unique_xmalloc_ptr. - * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): - Update. - * solib-frv.c (frv_current_sos): Update. - * solib-dsbt.c (dsbt_current_sos): Update. - * solib-darwin.c (darwin_current_sos): Update. - * linux-thread-db.c (inferior_has_bug): Update. - * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>: - Update. Remove alloca. - * ada-lang.c (ada_main_name): Update. - -2018-03-30 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove. - (struct dwo_file_deleter): New. - (dwo_file_up): New typedef. - (open_and_init_dwo_file): Use dwo_file_up. - (free_dwo_file_cleanup): Remove. - -2018-03-30 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (free_dwo_file): Remove "objfile" parameter. - (free_dwo_file_cleanup, free_dwo_file_from_slot): Update. - -2018-03-30 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (class free_cached_comp_units): New class. - (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it. - (free_cached_comp_units): Remove function. - -2018-03-30 Tom Tromey <tom@tromey.com> - - * utils.h (make_cleanup_unpush_target): Remove. - * inf-ptrace.c (struct target_unpusher): New. - (target_unpush_up) New typedef. - (inf_ptrace_create_inferior, inf_ptrace_attach): Use - target_unpush_up. - * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove. - -2018-03-27 Tom Tromey <tom@tromey.com> - - * utils.c (prompt_for_continue): Use unique_xmalloc_ptr. - -2018-03-27 Pedro Alves <palves@redhat.com> - Tom Tromey <tom@tromey.com> - - * top.c (class gdb_readline_wrapper_cleanup): Add constructor, - destructor. Now a class. - (gdb_readline_wrapper_cleanup): Remove function. - (gdb_readline_wrapper): Remove cleanups. - -2018-03-27 Tom Tromey <tom@tromey.com> - - * typeprint.h (struct type_print_options) <local_typedefs, - global_typedefs>: Remove "struct" keyword. - (class typedef_hash_table): New class. - (recursively_update_typedef_hash, add_template_parameters) - (create_typedef_hash, free_typedef_hash, copy_typedef_hash) - (find_typedef_in_hash): Don't declare. - * typeprint.c (struct typedef_hash_table): Move to typeprint.h. - (typedef_hash_table::recursively_update): Rename from - recursively_update_typedef_hash. Now a member. - (typedef_hash_table::add_template_parameters): Rename from - add_template_parameters. Now a member. - (typedef_hash_table::typedef_hash_table): Now a constructor; - rename from create_typedef_hash. - (typedef_hash_table::~typedef_hash_table): Now a destructor; - rename from free_typedef_hash. - (do_free_typedef_hash, make_cleanup_free_typedef_hash) - (do_free_global_table): Remove. - (typedef_hash_table::typedef_hash_table): New constructor; renamed - from copy_type_recursive. - (create_global_typedef_table): Remove. - (typedef_hash_table::find_global_typedef): Now a member of - typedef_hash_table. - (typedef_hash_table::find_typedef): Rename from - find_typedef_in_hash; now a member. - (whatis_exp): Update. - * extension.h (struct ext_lang_type_printers): Add constructor and - destructor. - (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't - declare. - * extension.c (ext_lang_type_printers::ext_lang_type_printers): - Now a constructor; rename from start_ext_lang_type_printers. - (ext_lang_type_printers): Now a destructor; rename from - free_ext_lang_type_printers. - * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1): - Update. - (c_type_print_base_struct_union): Update. Remove cleanups. - -2018-03-27 Tom Tromey <tom@tromey.com> - - * dwarf-index-write.c: Include <cmath>. - -2018-03-27 Joel Brobecker <brobecker@adacore.com> - - * NEWS: Add entry describing new "set|show varsize-limit" command. - * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit" - command. - * printcmd.c (_initialize_printcmd): Add "set var" alias of - "set variable". - -2018-03-27 Simon Marchi <simon.marchi@ericsson.com> - - * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and - dwarf-index-write.c - (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h. - * dwarf-index-common.c: New file. - * dwarf-index-common.h: New file. - * dwarf-index-write.c: New file. - * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h. - (struct dwarf2_section_info): Move from here. - (dwarf2_section_info_def): Likewise. - (DEF_VEC_O (dwarf2_section_info_def)): Likewise. - (offset_type): Likewise. - (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise. - (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise. - (DW2_GDB_INDEX_CU_SET_VALUE): Likewise. - (byte_swap): Likewise. - (MAYBE_SWAP): Likewise. - (dwarf2_per_cu_ptr): Likewise. - (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise. - (struct tu_stats): Likewise. - (struct dwarf2_per_objfile): Likewise. - (struct dwarf2_per_cu_data): Likewise. - (struct signatured_type): Likewise. - (sig_type_ptr): Likewise. - (DEF_VEC_P (sig_type_ptr)): Likewise. - (INDEX4_SUFFIX): Likewise. - (INDEX5_SUFFIX): Likewise. - (DEBUG_STR_SUFFIX): Likewise. - (dwarf2_read_section): Make non-static. - (mapped_index_string_hash): Move from here. - (dwarf5_djb_hash): Likewise. - (file_write): Likewise. - (class data_buf): Likewise. - (struct symtab_index_entry): Likewise. - (struct mapped_symtab): Likewise. - (find_slot): Likewise. - (hash_expand): Likewise. - (add_index_entry): Likewise. - (uniquify_cu_indices): Likewise. - (class c_str_view): Likewise. - (class c_str_view_hasher): Likewise. - (class vector_hasher): Likewise. - (write_hash_table): Likewise. - (psym_index_map): Likewise. - (struct addrmap_index_data): Likewise. - (add_address_entry): Likewise. - (add_address_entry_worker): Likewise. - (write_address_map): Likewise. - (symbol_kind): Likewise. - (write_psymbols): Likewise. - (struct signatured_type_index_data): Likewise. - (write_one_signatured_type): Likewise. - (recursively_count_psymbols): Likewise. - (recursively_write_psymbols): Likewise. - (class debug_names): Likewise. - (check_dwarf64_offsets): Likewise. - (psyms_seen_size): Likewise. - (write_gdbindex): Likewise. - (write_debug_names): Likewise. - (assert_file_size): Likewise. - (write_psymtabs_to_index): Likewise. - (save_gdb_index_command): Likewise. - (_initialize_dwarf2_read): Don't register the "save gdb-index" - command. - * dwarf2read.h: New file. - -2018-03-27 Joel Brobecker <brobecker@adacore.com> - - PR gdb/22670 - * dwarf2read.c (dwarf2_physname): Do not return the demangled - symbol name if the CU's language stores symbol names in linkage - format. - * language.h (struct language_defn) - <la_store_sym_names_in_linkage_form_p>: New field. Adjust - all instances of this struct. - -2018-03-26 Tom Tromey <tom@tromey.com> - - * stack.c (backtrace_command_1): Remove verbose code. - -2018-03-26 Tom Tromey <tom@tromey.com> - - * python/py-framefilter.c (py_print_type): Don't catch - exceptions. Return void. - (py_print_value): Likewise. - (py_print_single_arg): Likewise. - (enumerate_args): Don't catch exceptions. - (py_print_args): Likewise. - (py_print_frame): Likewise. - (gdbpy_apply_frame_filter): Catch exceptions here. - -2018-03-26 Tom Tromey <tom@tromey.com> - - * stack.c (_initialize_stack): Remove trailing newlines from help - text. Add "Usage" line to "backtrace" help. - -2018-03-26 Tom Tromey <tom@tromey.com> - - PR python/16486: - * python/py-framefilter.c (py_print_args): Call wrap_hint. - -2018-03-26 Tom Tromey <tom@tromey.com> - - * python/py-framefilter.c (py_print_single_arg): Return - EXT_LANG_BT_ERROR from catch. - -2018-03-26 Tom Tromey <tom@tromey.com> - - PR backtrace/15584: - * stack.c (backtrace_command_1): Move some code into no-filters - "if". - -2018-03-26 Tom Tromey <tom@tromey.com> - - * python/py-framefilter.c (throw_quit_or_print_exception): New - function. - (gdbpy_apply_frame_filter): Use it. - -2018-03-26 Tom Tromey <tom@tromey.com> - - PR cli/17716: - * python/py-framefilter.c (py_print_type, py_print_value) - (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use - RETURN_MASK_ERROR. - -2018-03-26 Tom Tromey <tom@tromey.com> - - * python/py-framefilter.c (enumerate_args): Use - gdb::unique_xmalloc_ptr. - -2018-03-26 Tom Tromey <tom@tromey.com> - - * python/py-framefilter.c (py_print_frame): Return - EXT_LANG_BT_OK. - (gdbpy_apply_frame_filter): Update comment. - * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>: - Remove. - <EXT_LANG_BT_NO_FILTERS>: Change value. - -2018-03-26 Tom Tromey <tom@tromey.com> - - PR backtrace/15582: - * stack.c (backtrace_command): Parse "hide" argument. - * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE. - * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New - constant. - -2018-03-26 Tom Tromey <tom@tromey.com> - - * stack.c (backtrace_command_1): Remove "show_locals" parameter, - add "flags". - (backtrace_command): Remove "fulltrace", add "flags". - -2018-03-26 Tom Tromey <tom@tromey.com> - - * stack.c (backtrace_command): Rewrite command line parsing. - -2018-03-26 Simon Marchi <simon.marchi@ericsson.com> - - * dwarf2read.c (DEF_VEC_I(offset_type)): Remove. - -2018-03-26 Simon Marchi <simon.marchi@ericsson.com> - - * filename-seen-cache.h: Add include guard. - -2018-03-26 Keith Seitz <keiths@redhat.com> - - * symfile.c (place_section): Remove "struct" from section_addr_info - in comment. - * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove - "struct" keyword from section_addr_info. - -2018-03-26 Alan Hayward <alan.hayward@arm.com> - - * regformats/regdef.h (reg): Add constructors. - -2018-03-25 Pedro Alves <palves@redhat.com> - - * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE - if then/else bodies in var_func_name extraction. - -2018-03-23 Weimin Pan <weimin.pan@oracle.com> - - * minsyms.c (lookup_minimal_symbol_and_objfile): Use - lookup_minimal_symbol() to find symbol entry. - * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment. - -2018-03-23 Keith Seitz <keiths@redhat.com> - - PR c++/22968 - * dwarf2read.c (scan_partial_symbols): Scan structs/classes for - nested type definitions for C++, too. - -2018-03-23 Tom Tromey <tom@tromey.com> - - * machoread.c (struct oso_el): Add a constructor. Don't define as - a typedef. - (macho_register_oso): Remove. - (macho_symtab_read): Take a std::vector. - (oso_el_compare_name): Now a std::sort comparator. - (macho_symfile_read_all_oso): Take a std::vector. - (macho_symfile_read): Use std::vector. Remove cleanups. - -2018-03-22 Tom Tromey <tom@tromey.com> - - * record-full.c (record_full_exec_insn): Use gdb::byte_vector. - (record_full_goto_bookmark): Use std::string. - -2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> - - PR tdep/18295 - * rs6000-tdep.c (skip_prologue): Match both stwux and stdux - a single mask. - -2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> - - * rs6000-tdep.c (store_insn_p): New function. - (skip_prologue): New variable alloca_reg_offset. Set lr_reg - and cr_reg to their unshifted values. Use store_insn_p to - match LR saves using either R1 or fdata->alloca_reg. Use - store_insn_p to match CR saves. Set alloca_reg_offset - when alloca_reg and framep are set. Remove lr_reg shift - when assigning to fdata->lr_register. - -2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com> - - * linux-tdep.c (linux_info_proc): For "info proc cmdline", print - command line args instead of emitting a warning. - -2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> - - * tracepoint.h (struct static_tracepoint_marker): Initialize - fields, define default constructor, move constructor and move - assignment, disable the rest. - <str_id, extra>: Make std::string. - (release_static_tracepoint_marker): Remove. - (free_current_marker): Remove. - * tracepoint.c (free_current_marker): Remove. - (parse_static_tracepoint_marker_definition): Adjust to - std::string, use new hex2str overload. - (release_static_tracepoint_marker): Remove. - (print_one_static_tracepoint_marker): Get marker by reference - and adjust to std::string. - (info_static_tracepoint_markers_command): Adjust to std::vector - changes - * target.h (static_tracepoint_marker_p): Remove typedef. - (DEF_VEC_P(static_tracepoint_marker_p)): Remove. - (struct target_ops) <to_static_tracepoint_marker_at>: Return - bool. - <to_static_tracepoint_markers_by_strid>: Return std::vector. - * target-debug.h - (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove. - (target_debug_print_std_vector_static_tracepoint_marker): New. - (target_debug_print_struct_static_tracepoint_marker_p): Rename - to... - (target_debug_print_static_tracepoint_marker_p): ... this. - * target-delegates.c: Re-generate. - * breakpoint.h (struct tracepoint) <static_trace_marker_id>: - Make std::string. - * breakpoint.c (init_breakpoint_sal): Adjust to std::string. - (decode_static_tracepoint_spec): Adjust to std::vector. - (tracepoint_print_one_detail): Adjust to std::string. - (strace_marker_decode_location): Adjust to std::string. - (update_static_tracepoint): Adjust to std::string, remove call - to release_static_tracepoint_marker. - * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): - Adjust to std::vector. - * remote.c (remote_static_tracepoint_marker_at): Return bool. - (remote_static_tracepoint_markers_by_strid): Adjust to - std::vector. - * common/rsp-low.h (hex2str): New overload with explicit count - of bytes. - * common/rsp-low.c (hex2str): New overload with explicit count - of bytes. - * unittests/rsp-low-selftests.c (test_hex2str): New function. - (_initialize_rsp_low_selftests): Add test_hex2str test. - * unittests/tracepoint-selftests.c - (test_parse_static_tracepoint_marker_definition): Adjust to - std::string. - -2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> - - * tracepoint.c (parse_static_tracepoint_marker_definition): - Consider case where the definition is followed by more - definitions. - * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add - tracepoint-selftests.c. - * unittests/tracepoint-selftests.c: New. - -2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> - - * MAINTAINERS (Write After Approval): Add Pedro Franco de - Carvalho. - -2018-03-20 Stephen Roberts <stephen.roberts@arm.com> - - * symtab.c (find_pc_sect_line): fixed indentation. - -2018-03-20 Stephen Roberts <stephen.roberts@arm.com> - - * symtab.c (find_pc_sect_line): now uses binary search. - -2018-03-19 Tom Tromey <tom@tromey.com> - - * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain - "IDENT" production. - -2018-03-19 Pedro Alves <palves@redhat.com> - Tom Tromey <tom@tromey.com> - - * unittests/observable-selftests.c: New file. - * common/observable.h: New file. - * observable.h: New file. - * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c, - arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c, - breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c, - corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c, - extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c, - infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c, - linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c, - mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c, - ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c, - python/py-breakpoint.c, python/py-finishbreakpoint.c, - python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c, - record-btrace.c, record-full.c, record.c, regcache.c, remote.c, - riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c, - spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c, - symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c, - tui/tui-interp.c, valops.c: Update all users. - * tui/tui-hooks.c (tui_bp_created_observer) - (tui_bp_deleted_observer, tui_bp_modified_observer) - (tui_inferior_exit_observer, tui_before_prompt_observer) - (tui_normal_stop_observer, tui_register_changed_observer): - Remove. - (tui_observers_token): New global. - (attach_or_detach, tui_attach_detach_observers): New functions. - (tui_install_hooks, tui_remove_hooks): Use - tui_attach_detach_observers. - * record-btrace.c (record_btrace_thread_observer): Remove. - (record_btrace_thread_observer_token): New global. - * observer.sh: Remove. - * observer.c: Rename to observable.c. - * observable.c (namespace gdb_observers): Define new objects. - (observer_debug): Move into gdb_observers namespace. - (struct observer, struct observer_list, xalloc_observer_list_node) - (xfree_observer_list_node, generic_observer_attach) - (generic_observer_detach, generic_observer_notify): Remove. - (_initialize_observer): Update. - Don't include observer.inc. - * Makefile.in (generated_files): Remove observer.h, observer.inc. - (clean mostlyclean): Likewise. - (observer.h, observer.inc): Remove targets. - (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c. - (COMMON_SFILES): Use observable.c, not observer.c. - * .gitignore: Remove observer.h. - -2018-03-18 Tom Tromey <tom@tromey.com> - - * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use - gdb::def_vector. - (bfd_lookup_symbol_from_dyn_symtab): Likewise. - -2018-03-17 Tom Tromey <tom@tromey.com> - - * auto-load.c (auto_load_objfile_script_1): Use std::string. - -2018-03-17 Tom Tromey <tom@tromey.com> - - * target.c (class scoped_target_fd): New. - (target_fileio_close_cleanup): Remove. - (target_fileio_read_alloc_1): Use scoped_target_fd. - -2018-03-16 Simon Marchi <simon.marchi@polymtl.ca> - - * silent-rules.mk: New. - * Makefile.in: Include silent-rules.mk - (srcdir, VPATH, top_srcdir): Move up. - (COMPILE): Add ECHO_CXX. - (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD. - (init.c): Add ECHO_INIT_C. - (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD. - (version.c): Add ECHO_GEN. - (printcmd.o): Add ECHO_CXX. - (target-float.o): Add ECHO_CXX. - (ada-exp.o): Add ECHO_CXX. - (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN. - (insight$(EXEEXT)): Add ECHO_CXXLD. - * gnulib/configure.ac: Add AM_SILENT_RULES. - * gnulib/aclocal.m4: Re-generate. - * gnulib/configure: Re-generate. - * gnulib/import/Makefile.in: Re-generate. - -2018-03-16 Tom Tromey <tom@tromey.com> - - * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs". - * utils.h (make_cleanup_free_section_addr_info): Don't declare. - * utils.c (do_free_section_addr_info) - (make_cleanup_free_section_addr_info): Remove. - * symfile.h (struct other_sections): Add constructor. - (struct section_addr_info): Remove. - (section_addr_info): New typedef. - (struct sym_fns) <sym_offsets>: Change type of parameter. - (build_section_addr_info_from_objfile) - (relative_addr_info_to_section_offsets, addr_info_make_relative) - (default_symfile_offsets, symbol_file_add) - (symbol_file_add_from_bfd) - (build_section_addr_info_from_section_table): Update. - (alloc_section_addr_info, free_section_addr_info): Don't declare. - * symfile.c (alloc_section_addr_info): Remove. - (build_section_addr_info_from_section_table): Change return type. - Update. - (build_section_addr_info_from_bfd) - (build_section_addr_info_from_objfile): Likewise. - (free_section_addr_info): Remove. - (relative_addr_info_to_section_offsets): Change type of "addrs". - (addrs_section_compar): Now a std::sort comparator. - (addrs_section_sort): Change return type. - (addr_info_make_relative): Change type of "addrs". Update. - (default_symfile_offsets, syms_from_objfile_1) - (syms_from_objfile, symbol_file_add_with_addrs): Likewise. - (symbol_file_add_separate): Update. - (symbol_file_add): Change type of "addrs". Update. - (add_symbol_file_command): Update. Remove cleanups. - * symfile-mem.c (symbol_file_add_from_memory): Update. Remove - cleanups. - * symfile-debug.c (debug_sym_offsets): Change type of "info". - * solib.c (solib_read_symbols): Update. - * objfiles.c (objfile_relocate): Update. Remove cleanups. - * machoread.c (macho_symfile_offsets): Update. - * jit.c (jit_bfd_try_read_symtab): Update. - -2018-03-15 Simon Marchi <simon.marchi@polymtl.ca> - - * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add - unittests/utils-selftests.c. - * unittests/utils-selftests.c: New file. - -2018-03-14 Tom Tromey <tom@tromey.com> - - PR cli/14977: - * printcmd.c (printf_c_string, printf_wide_c_string): Special case - for NULL. - -2018-03-14 Tom Tromey <tom@tromey.com> - - PR cli/19918: - * printcmd.c (printf_pointer): Allow "-" in format. - -2018-03-14 Tom Tromey <tom@tromey.com> - - * printcmd.c (_initialize_printcmd): Add usage to printf. - -2018-03-14 Yao Qi <qiyao@sourceware.org> - - * MAINTAINERS: Update my email address. - -2018-03-13 Tom Tromey <tom@tromey.com> - - * machoread.c (macho_check_dsym): Change filenamep to a - std::string*. - (macho_symfile_read): Update. - * symfile.c (load_command): Use std::string. - -2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization - to error message string. - (riscv_register_name): Use xsnprintf instead of sprintf. - (riscv_insn::fetch_instruction): Use gdb_assert instead of - internal_error. - (riscv_print_arg_location): Use gdb_assert_not_reached instead of - error. - (riscv_push_dummy_call): Likewise. - -2018-03-12 Tom Tromey <tom@tromey.com> - - * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix): - Use gdb::byte_vector. - * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector. - -2018-03-12 Yao Qi <yao.qi@linaro.org> - - * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change - parameter type to readable_regcache. - * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update - the declaration. - -2018-03-11 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (struct nextfield): Add initializers. - (struct nextfnfield): Remove. - (struct fnfieldlist): Add initializers. Remove "length" and - "head", use std::vector. - (struct decl_field_list): Remove. - (struct field_info): Add initializers. - <fields, baseclasses>: Now std::vector. - <nbaseclasses, nfnfields, typedef_field_list_count, - nested_types_list_count>: Remove. - (dwarf2_add_field, dwarf2_add_type_defn) - (dwarf2_attach_fields_to_type, dwarf2_add_member_fn) - (dwarf2_attach_fn_fields_to_type, handle_struct_member_die) - (process_structure_scope): Update. - -2018-03-11 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable - for use by std::sort. - (build_type_psymtabs_1): Use std::vector. - -2018-03-09 Eli Zaretskii <eliz@gnu.org> - - * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK, - and LIBMPFR in the printed configuration. - -2018-03-08 Tom Tromey <tom@tromey.com> - - * source.c (get_filename_and_charpos): Use scoped_fd. - * nto-procfs.c (procfs_open_1): Use scoped_fd. - (procfs_pidlist): Likewise. - * procfs.c (proc_get_LDT_entry): Use scoped_fd. - (iterate_over_mappings): Likewise. - -2018-03-08 Tom Tromey <tom@tromey.com> - - * infcall.c (struct call_return_meta_info) - <stack_temporaries_enabled>: Remove. - (get_call_return_value, call_function_by_hand_dummy): Update. - * thread.c (disable_thread_stack_temporaries): Remove. - (enable_thread_stack_temporaries): Remove. - (thread_stack_temporaries_enabled_p): Return bool. - (push_thread_stack_temporary, value_in_thread_stack_temporaries) - (get_last_thread_stack_temporary): Update. - * eval.c (evaluate_subexp): Update. - * gdbthread.h (class enable_thread_stack_temporaries): Now a - class, not a function. - (value_ptr, value_vec): Remove typedefs. - (class thread_info) <stack_temporaries_enabled>: Now bool. - <stack_temporaries>: Now a std::vector. - (thread_stack_temporaries_enabled_p) - (value_in_thread_stack_temporaries): Return bool. - -2018-03-08 Simon Marchi <simon.marchi@ericsson.com> - - * remote.c (putpkt_binary): Fix omitted bytes reporting. - (getpkt_or_notif_sane_1): Likewise. - -2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> - - * build-id.c (build_id_to_debug_bfd): Use std::string. - -2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> - - * build-id.c (find_separate_debug_file_by_buildid): Return - std::string. - * build-id.h (find_separate_debug_file_by_buildid): Return - std::string. - * coffread.c (coff_symfile_read): Adjust to std::string. - * elfread.c (elf_symfile_read): Adjust to std::string. - * symfile.c (separate_debug_file_exists): Change parameter to - std::string. - (find_separate_debug_file): Return std::string. - (find_separate_debug_file_by_debuglink): Return std::string. - * symfile.h (find_separate_debug_file_by_debuglink): Return - std::string. - -2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> - - * common/xml-utils.c (xml_escape_text): Move code to... - (xml_escape_text_append): ... this new function. - * common/xml-utils.h (xml_escape_text_append): New declaration. - * unittests/xml-utils-selftests.c (test_xml_escape_text_append): - New function. - (_initialize_xml_utils): register test_xml_escape_text_append as - a selftest. - -2018-03-07 Alan Hayward <alan.hayward@arm.com> - - * defs.h: Remove MAX_REGISTER_SIZE. - * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE - asserts. - * python/py-unwind.c (pyuw_sniffer): Likewise. - -2018-03-07 Tom Tromey <tom@tromey.com> - - * linux-tdep.c (linux_info_proc): Update. - * target.h (struct target_ops) <to_fileio_readlink>: Return - optional<string>. - (target_fileio_readlink): Return optional<string>. - * remote.c (remote_hostio_readlink): Return optional<string>. - * inf-child.c (inf_child_fileio_readlink): Return - optional<string>. - * target.c (target_fileio_readlink): Return optional<string>. - -2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com> - - * regcache.c (cooked_read_test): Add riscv to the list of - architectures that have a save_reggroup. - -2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com> - - * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given - value is not a dynamic class object. - -2018-03-06 Tom Tromey <tom@tromey.com> - - * rust-exp.y: Formatting fixes. - -2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_register_name): Remove target description - support. - (riscv_gdbarch_init): Remove target description check. - -2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c: Remove 'Contributed by ...' lines from header - comment. - * riscv-tdep.h: Likewise. - -2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_pseudo_register_read): Delete. - (riscv_pseudo_register_write): Delete. - (riscv_gdbarch_init): Remove all use of pseudo registers. - -2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> - - * record-btrace.c (btrace_print_lines): Replace cleanup - parameter with RAII equivalents. - (btrace_insn_history): Replace cleanup with RAII equivalents. - * ui-out.h (make_cleanup_ui_out_list_begin_end, - make_cleanup_ui_out_tuple_begin_end): Remove. - * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end, - make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end, - make_cleanup_ui_out_list_begin_end): Remove. - -2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> - - * record-btrace.c (record_btrace_maybe_mark_async_event): Change - parameter types to std::vector. Use bool. - (record_btrace_wait): Replace VEC(tp_t) with - std::vector<thread_info *>. - * common/gdb_vecs.h (unordered_remove, ordered_remove): New. - -2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> - - * record-btrace.c (record_btrace_disable_callback): Remove. - (struct scoped_btrace_disable): New. - (record_btrace_open): Use scoped_btrace_disable. - -2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for - reading values from registers. - -2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz - where appropriate. - -2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> - - * riscv-tdep.c (riscv_print_arg_location): Add header comment, - change parameter type. Use GDB's print functions, and use - core_addr_to_string where appropriate. - (riscv_push_dummy_call): Use core_addr_to_string where - appropriate, update call to riscv_print_arg_location, and reindent - a few lines. - (riscv_return_value): Update call to riscv_print_arg_location. - -2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> - Tim Newsome <tim@sifive.com> - Albert Ou <a0u@eecs.berkeley.edu> - Darius Rad <darius@bluespec.com> - - * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o - (HFILES_NO_SRCDIR): Add riscv-tdep.h. - (ALLDEPFILES): Add riscv-tdep.c - * configure.tgt: Add riscv support. - * riscv-tdep.c: New file. - * riscv-tdep.h: New file. - * NEWS: Mention new target. - * MAINTAINERS: Add entry for riscv. - -2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> - - * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized - fields within aggregates. - -2018-03-04 Simon Marchi <simon.marchi@polymtl.ca> - - * record-btrace.c (btrace_print_lines): Change type of flags to - gdb_disassembly_flags. - -2018-03-04 John Baldwin <jhb@FreeBSD.org> - - * fbsd-nat.c: Include "inf-ptrace.h". - (USE_SIGTRAP_SIGINFO): Conditionally define. - [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function. - (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap". - [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New - function. - [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint): - Likewise. - [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint): - Likewise. - (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set - "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint", - "supports_stopped_by_hw_breakpoint" target methods. - -2018-03-04 John Baldwin <jhb@FreeBSD.org> - - * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat". - * fbsd-nat.c (debug_fbsd_nat): New variable. - (show_fbsd_nat_debug): New function. - (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled. - (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command. - -2018-03-04 John Baldwin <jhb@FreeBSD.org> - - * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function. - * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New - prototype. - * x86-nat.c (x86_stopped_by_hw_breakpoint): New function. - (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target - method. - -2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> - - * common/gdb_vecs.c (free_char_ptr_vec): Remove. - * common/gdb_vecs.h (free_char_ptr_vec): Remove. - -2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> - - * charset.c (struct charset_vector): New. - (charsets): Change type to charset_vector. - (find_charset_names): Adjust. - (add_one): Adjust. - (_initialize_charset): Adjust. - -2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> - - * progspace.h (struct program_space) <deleted_solibs>: Change - type to std::vector<std::string>. - * progspace.c (clear_program_space_solib_cache): Adjust. - * breakpoint.c (print_solib_event): Adjust. - (check_status_catch_solib): Adjust. - * solib.c (update_solib_list): Adjust. - * ui-out.h (class ui_out) <field_string>: New overload. - * ui-out.c (ui_out::field_string): New overload. - -2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> - - * progspace.h (struct program_space): Add constructor and - destructor, initialize fields. - (add_program_space): Remove. - * progspace.c (add_program_space): Rename to... - (program_space::program_space): ... this. - (release_program_space): Rename to... - (program_space::~program_space): ... this. - (delete_program_space): Use delete to delete program_space. - (initialize_progspace): Use new to allocate program_space. - * inferior.c (add_inferior_with_spaces): Likewise. - (clone_inferior_command): Likewise. - * infrun.c (follow_fork_inferior): Likewise. - (handle_vfork_child_exec_or_exit): Likewise. - -2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> - - * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove. - (delim_string_to_char_ptr_vec): Return std::vector of - gdb::unique_xmalloc_ptr. - (dirnames_to_char_ptr_vec_append): Take std::vector of - gdb::unique_xmalloc_ptr. - (dirnames_to_char_ptr_vec): Return std::vector of - gdb::unique_xmalloc_ptr. - * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): - Take std::vector of gdb::unique_xmalloc_ptr, adjust the code. - (delim_string_to_char_ptr_vec): Return an std::vector of - gdb::unique_xmalloc_ptr, adjust the code. - (dirnames_to_char_ptr_vec_append): Take an std::vector of - gdb::unique_xmalloc_ptr, adjust the code. - (dirnames_to_char_ptr_vec): Return an std::vector of - gdb::unique_xmalloc_ptr, adjust the code. - * auto-load.c (auto_load_safe_path_vec): Change type to - std::vector of gdb::unique_xmalloc_ptr. - (auto_load_expand_dir_vars): Return an std::vector of - gdb::unique_xmalloc_ptr, adjust the code. - (auto_load_safe_path_vec_update): Adjust. - (filename_is_in_auto_load_safe_path_vec): Adjust. - (auto_load_objfile_script_1): Adjust. - * build-id.c (build_id_to_debug_bfd): Adjust. - * linux-thread-db.c (thread_db_load_search): Adjust. - * source.c (add_path): Adjust. - (openp): Adjust. - * symfile.c (find_separate_debug_file): Adjust. - * utils.c (do_free_char_ptr_vec): Remove. - (make_cleanup_free_char_ptr_vec): Remove. - -2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com> - - PR gdb/22907 - * common/pathstuff.c: Conditionally include "<windows.h>". - -2018-03-01 Georg Sauthoff <mail@georg.so> - - PR gdb/22888 - * gcore.in: Quote variables and switch interpreter to bash. - -2018-03-01 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (alloc_discriminant_info): Fix default_index - assertion. Add assertion for discriminant_index. - (quirk_rust_enum): Use correct base type name in univariant case. - -2018-03-01 Simon Marchi <simon.marchi@ericsson.com> - - * record.c (get_call_history_modifiers): Return a - record_print_flags. - (cmd_record_call_history): Adjust. - * record-btrace.c (record_btrace_call_history): Adjust. - (record_btrace_call_history_range): Adjust. - (record_btrace_call_history_from): Adjust. - * target-debug.h (target_debug_print_record_print_flags): New. - * target-delegates.c: Re-generate. - * target.c (target_call_history): Change flags type. - (target_call_history_from): Likewise. - (target_call_history_range): Likewise. - * target.h (struct target_ops) <target_call_history>: Likewise. - (target_call_history_from): Likewise. - (target_call_history_range): Likewise. - -2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> - Simon Marchi <simon.marchi@polymtl.ca> - - * common/common-utils.c: Include "sys/stat.h". - (is_regular_file): Move here from "source.c"; change return - type to "bool". - * common/common-utils.h (is_regular_file): New prototype. - * common/pathstuff.c (contains_dir_separator): New function. - * common/pathstuff.h (contains_dir_separator): New prototype. - * source.c: Don't include "sys/stat.h". - (is_regular_file): Move to "common/common-utils.c". - -2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> - - * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c". - (HFILES_NO_SRCDIR): Add "common/pathstuff.h". - * auto-load.c: Include "common/pathstuff.h". - * common/common-def.h (current_directory): Move here. - * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New - function. - * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New - prototype. - * common/pathstuff.c: New file. - * common/pathstuff.h: New file. - * compile/compile.c: Include "common/pathstuff.h". - * defs.h (current_directory): Move to "common/common-defs.h". - * dwarf2read.c: Include "common/pathstuff.h". - * exec.c: Likewise. - * guile/scm-safe-call.c: Likewise. - * linux-thread-db.c: Likewise. - * main.c: Likewise. - * nto-tdep.c: Likewise. - * objfiles.c: Likewise. - * source.c: Likewise. - * symtab.c: Likewise. - * utils.c: Include "common/pathstuff.h". - (gdb_realpath): Move to "common/pathstuff.c". - (gdb_realpath_keepfile): Likewise. - (gdb_abspath): Likewise. - * utils.h (gdb_realpath): Move to "common/pathstuff.h". - (gdb_realpath_keepfile): Likewise. - (gdb_abspath): Likewise. - -2018-02-28 John Baldwin <jhb@FreeBSD.org> - - * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a - wildcard process pid for super_resume for kernels with a - specific bug. - -2018-02-27 Phil Muldoon <pmuldoon@redhat.com> - - * compile/compile.c (get_args): Add additional comments - explaining function. - -2018-02-27 Simon Marchi <simon.marchi@polymtl.ca> - Tom Tromey <tom@tromey.com> - - * target.h (memory_write_request_s): Remove typedef. Don't define - VEC. - (target_write_memory_blocks): Change argument to std::vector. - (struct memory_write_request): Add constructor. - * target-memory.c (compare_block_starting_address): Return bool. - Change argument types. - (claim_memory): Change arguments to use std::vector. - (split_regular_and_flash_blocks, blocks_to_erase) - (compute_garbled_blocks): Likewise. - (cleanup_request_data, cleanup_write_requests_vector): Remove. - (target_write_memory_blocks): Change argument to std::vector. - * symfile.c (struct load_section_data): Add constructor and - destructor. Use std::vector for "requests". - (struct load_progress_data): Add initializers. - (load_section_callback): Update. Use "new". - (clear_memory_write_data): Remove. - (generic_load): Update. - -2018-02-27 Alan Hayward <alan.hayward@arm.com> - - * arch/aarch64.h: Use common/tdesc.h. - -2018-02-26 Maciej W. Rozycki <macro@mips.com> - - * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD - architecture with a 64-bit ABI. - -2018-02-26 Maciej W. Rozycki <macro@mips.com> - - * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination - ahead of target description loading. - -2018-02-26 Tom Tromey <tom@tromey.com> - - * stack.c (backtrace_command_1): Update. - * python/python-internal.h (gdbpy_apply_frame_filter): Change type - of "flags". - * python/py-framefilter.c (py_print_frame) - (gdbpy_apply_frame_filter): Change type of "flags". - * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type - of "flags". - (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals) - (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update. - * extension.h (enum frame_filter_flag): Rename from - frame_filter_flags. - (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE. - (apply_ext_lang_frame_filter): Change type of "flags". - * extension.c (apply_ext_lang_frame_filter): Change type of - "flags". - * extension-priv.h (struct extension_language_ops) - <apply_frame_filter>: Change type of "flags". - -2018-02-26 Tom Tromey <tom@tromey.com> - - PR python/16497: - * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix - off-by-one in py_end computation. - * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle - PRINT_MORE_FRAMES. - * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New - constant. - -2018-02-26 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (struct variant_field): New. - (struct nextfield) <variant>: New field. - (dwarf2_add_field): Handle DW_TAG_variant_part. - (dwarf2_attach_fields_to_type): Attach a discriminant_info to a - discriminated union. - (read_structure_type): Handle DW_TAG_variant_part. - (handle_struct_member_die): New function, extracted from - process_structure_scope. Handle DW_TAG_variant. - (process_structure_scope): Handle discriminated unions. Call - handle_struct_member_die. - -2018-02-26 Tom Tromey <tom@tromey.com> - - * rust-lang.h (rust_last_path_segment): Declare. - * rust-lang.c (rust_last_path_segment): Now public. Change - contract. - (struct disr_info): Remove. - (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL) - (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged) - (rust_get_disr_info, rust_tuple_variant_type_p): Remove. - (rust_enum_p, rust_enum_variant): New function. - (rust_underscore_fields): Remove "offset" parameter. - (rust_print_enum): New function. - (rust_val_print) <TYPE_CODE_UNION>: Remove enum code. - <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate. - (rust_print_struct_def): Add "for_rust_enum" parameter. Handle - enums. - (rust_internal_print_type): New function, from rust_print_type. - Remove enum code. - (rust_print_type): Call rust_internal_print_type. - (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>: - Update enum handling. - * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field. - (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum) - (rust_union_quirks): New functions. - (process_full_comp_unit, process_full_type_unit): Call - rust_union_quirks. - (process_structure_scope): Update rust_unions if necessary. - -2018-02-26 Tom Tromey <tom@tromey.com> - - * value.h (value_union_variant): Declare. - * valops.c (value_union_variant): New function. - * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro. - (struct discriminant_info): New. - (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New - enumerator. - (struct main_type) <flag_discriminated_union>: New field. - -2018-02-26 Tom Tromey <tom@tromey.com> - - * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add - unittests/unpack-selftests.c. - * unittests/unpack-selftests.c: New file. - * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases. - -2018-02-26 Yao Qi <yao.qi@linaro.org> - - * dwarf2read.c (struct partial_die_info) <read>: New method. - (read_partial_die): Remove the declaration. - (load_partial_dies): Update. - (partial_die_info::partial_die_info): - (read_partial_die): Change it to partial_die_info::read. - -2018-02-26 Yao Qi <yao.qi@linaro.org> - - * dwarf2read.c (struct partial_die_info) <fixup>: New method. - (fixup_partial_die): Remove declaration. - (scan_partial_symbols): Update. - (partial_die_parent_scope): Likewise. - (partial_die_full_name): Likewise. - (fixup_partial_die): Change it to partial_die_info::fixup. - -2018-02-26 Yao Qi <yao.qi@linaro.org> - - * dwarf2read.c (read_partial_die): Update the declaration. - (load_partial_dies): Caller update. - (read_partial_die): Remove one argument abbrev_len. - -2018-02-26 Yao Qi <yao.qi@linaro.org> - - * dwarf2read.c (struct partial_die_info): Add ctor, delete - assignment operator. - (load_partial_dies): Use ctor and copy ctor. - (read_partial_die): Update. - (dwarf2_cu::find_partial_die): Use ctor. - -2018-02-26 Yao Qi <yao.qi@linaro.org> - - * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method. - (find_partial_die_in_comp_unit): Change it to - dwarf2_cu::find_partial_die. - (find_partial_die): Update. - -2018-02-26 Yao Qi <yao.qi@linaro.org> - - * dwarf2read.c (read_partial_die): Remove the code checking abbrev - is NULL. - -2018-02-26 Yao Qi <yao.qi@linaro.org> - - * dwarf2read.c (load_partial_dies): Move the location of XOBNEW. - -2018-02-26 Alan Hayward <alan.hayward@arm.com> - - * arch/amd64.h: Use common/tdesc.h. - * arch/i386.c: Likewise. - * arch/i386.h: Likewise. - * arch/tic6x.c: Likewise. - * arch/tdesc.h: Move file from here... - * common/tdesc.h: ...to here. - * features/aarch64-core.c: Regenerate. - * features/aarch64-fpu.c: Regenerate. - * features/i386/32bit-avx.c: Regenerate. - * features/i386/32bit-avx512.c: Regenerate. - * features/i386/32bit-core.c: Regenerate. - * features/i386/32bit-linux.c: Regenerate. - * features/i386/32bit-mpx.c: Regenerate. - * features/i386/32bit-pkeys.c: Regenerate. - * features/i386/32bit-sse.c: Regenerate. - * features/i386/64bit-avx.c: Regenerate. - * features/i386/64bit-avx512.c: Regenerate. - * features/i386/64bit-core.c: Regenerate. - * features/i386/64bit-linux.c: Regenerate. - * features/i386/64bit-mpx.c: Regenerate. - * features/i386/64bit-pkeys.c: Regenerate. - * features/i386/64bit-segments.c: Regenerate. - * features/i386/64bit-sse.c: Regenerate. - * features/i386/x32-core.c: Regenerate. - * features/tic6x-c6xp.c: Regenerate. - * features/tic6x-core.c: Regenerate. - * features/tic6x-gp.c: Regenerate. - * target-descriptions.c: Use common/tdesc.h. - * target-descriptions.h: Likewise. - -2018-02-24 Tom Tromey <tom@tromey.com> - - * linux-thread-db.c (try_thread_db_load_from_pdir_1) - (try_thread_db_load_from_dir, thread_db_load_search): Use - std::string. - (info_auto_load_libthread_db_compare): Return bool. Change - argument types. - (info_auto_load_libthread_db): Use std::vector, std::string. - Remove cleanups. - -2018-02-24 Tom Tromey <tom@tromey.com> - - * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a - std::string. - * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a - std::string*. - * gdbarch.c: Rebuild. - * gdbarch.h: Rebuild. - * breakpoint.c (check_fast_tracepoint_sals): Use std::string. - * arch-utils.h (default_fast_tracepoint_valid_at): Update. - * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a - std::string*. - -2018-02-23 Simon Marchi <simon.marchi@polymtl.ca> - - * gdbtypes.h (sect_offset): Change type to uint64_t. - (sect_offset_str): New function. - * dwarf2read.c (create_addrmap_from_aranges): Use - sect_offset_str. - (error_check_comp_unit_head): Likewise. - (create_debug_type_hash_table): Likewise. - (read_cutu_die_from_dwo): Likewise. - (init_cutu_and_read_dies): Likewise. - (init_cutu_and_read_dies_no_follow): Likewise. - (process_psymtab_comp_unit_reader): Likewise. - (partial_die_parent_scope): Likewise. - (peek_die_abbrev): Likewise. - (process_queue): Likewise. - (dwarf2_physname): Likewise. - (read_namespace_alias): Likewise. - (read_import_statement): Likewise. - (create_dwo_cu_reader): Likewise. - (create_cus_hash_table): Likewise. - (lookup_dwo_cutu): Likewise. - (inherit_abstract_dies): Likewise. - (read_func_scope): Likewise. - (read_call_site_scope): Likewise. - (dwarf2_add_member_fn): Likewise. - (read_common_block): Likewise. - (read_module_type): Likewise. - (read_typedef): Likewise. - (read_subrange_type): Likewise. - (load_partial_dies): Likewise. - (read_partial_die): Likewise. - (find_partial_die): Likewise. - (read_str_index): Likewise. - (dwarf2_string_attr): Likewise. - (build_error_marker_type): Likewise. - (lookup_die_type): Likewise. - (dump_die_shallow): Likewise. - (follow_die_ref): Likewise. - (dwarf2_fetch_die_loc_sect_off): Likewise. - (dwarf2_fetch_constant_bytes): Likewise. - (follow_die_sig): Likewise. - (get_signatured_type): Likewise. - (get_DW_AT_signature_type): Likewise. - (dwarf2_find_containing_comp_unit): Likewise. - (set_die_type): Likewise. - -2018-02-21 John Baldwin <jhb@FreeBSD.org> - - * arch/aarch64.c: Include "common-defs.h". - * arch/amd64.c: Likewise. - * arch/i386.c: Likewise. - -2018-02-21 Tom Tromey <tom@tromey.com> - - * value.h: (extract_field_op): Update. - * eval.c (extract_field_op): Return a const char *. - * expression.h (parse_expression_for_completion): Update. - * completer.c (complete_expression): Update. - (add_struct_fields): Make fieldname const. - * parse.c (expout_completion_name): Now a unique_xmalloc_ptr. - (mark_completion_tag, parse_exp_in_context_1): Update. - (parse_expression_for_completion): Change "name" to - unique_xmalloc_ptr*. - -2018-02-21 Tom Tromey <tom@tromey.com> - - * infcall.c (call_function_by_hand_dummy): Use std::vector. - -2018-02-21 Yao Qi <yao.qi@linaro.org> - - * avr-tdep.c (avr_read_pc): Change parameter type to - readable_regcache. - * gdbarch.sh (read_pc): Likewise. - * gdbarch.c: Re-generated. - * gdbarch.h: Re-generated. - * hppa-tdep.c (hppa_read_pc): Change parameter type to - readable_regcache. - * ia64-tdep.c (ia64_read_pc): Likewise. - * mips-tdep.c (mips_read_pc): Likewise. - * spu-tdep.c (spu_read_pc): Likewise. - -2018-02-21 Yao Qi <yao.qi@linaro.org> - - * Makefile.in (COMMON_SFILES): Add regcache-dump.c - * regcache-dump.c: New file. - * regcache.c: Move register_dump to regcache-dump.c. - (maintenance_print_registers): Likewise. - (maintenance_print_raw_registers): Likewise. - (maintenance_print_cooked_registers): Likewise. - (maintenance_print_register_groups): Likewise. - (maintenance_print_remote_registers): Likewise. - (_initialize_regcache): Likewise. - * regcache.h (register_dump): Moved from regcache.c. - -2018-02-21 Yao Qi <yao.qi@linaro.org> - - * regcache.c (regcache::regcache): Update. - (regcache::invalidate): Move it to detached_regcache::invalidate. - (get_thread_arch_aspace_regcache): Update. - (regcache::raw_update): Update. - (regcache::cooked_read): Remove some code. - (regcache::cooked_read_value): Likewise. - (regcache::raw_write): Remove assert on m_readonly_p. - (regcache::raw_supply_integer): Move it to - detached_regcache::raw_supply_integer. - (regcache::raw_supply_zeroed): Likewise. - * regcache.h (detached_regcache) <raw_supply_integer>: New - declaration. - <raw_supply_zeroed, invalidate>: Likewise. - (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed. - <invalidate>: Likewise. - <m_readonly_p>: Removed. - -2018-02-21 Yao Qi <yao.qi@linaro.org> - - * infcmd.c (get_return_value): Let stop_regs point to - get_current_regcache. - * regcache.c (regcache::regcache): Remove. - (register_dump_reg_buffer): New class. - (regcache_print): Adjust. - * regcache.h (regcache): Remove constructors. - -2018-02-21 Yao Qi <yao.qi@linaro.org> - - * regcache.c (class register_dump): New class. - (register_dump_regcache, register_dump_none): New class. - (register_dump_remote, register_dump_groups): New class. - (regcache_print): Update. - * regcache.h (regcache_dump_what): Move it to regcache.c. - (regcache) <dump>: Remove. - -2018-02-21 Yao Qi <yao.qi@linaro.org> - - * jit.c (struct jit_unwind_private) <regcache>: Change its type to - reg_buffer_rw *. - (jit_unwind_reg_set_impl): Call raw_supply. - (jit_frame_sniffer): Use reg_buffer_rw. - * record-full.c (record_full_core_regbuf): Change its type. - (record_full_core_open_1): Use reg_buffer_rw. - (record_full_close): Likewise. - (record_full_core_fetch_registers): Use regcache->raw_supply. - (record_full_core_store_registers): Likewise. - * regcache.c (regcache::get_register_status): Move it to - reg_buffer. - (regcache_raw_set_cached_value): Remove. - (regcache::raw_set_cached_value): Remove. - (regcache::raw_write): Call raw_supply. - (regcache::raw_supply): Move it to reg_buffer_rw. - * regcache.h (regcache_raw_set_cached_value): Remove. - (reg_buffer_rw): New class. - -2018-02-21 Yao Qi <yao.qi@linaro.org> - - * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use - readonly_detached_regcache. - (dummy_frame_prev_register): Use regcache->cooked_read. - * frame.c (frame_save_as_regcache): Change return type. - (frame_pop): Update. - * frame.h (frame_save_as_regcache): Update declaration. - * inferior.h (get_infcall_suspend_state_regcache): Update - declaration. - * infrun.c (infcall_suspend_state) <registers>: use - readonly_detached_regcache. - (save_infcall_suspend_state): Don't use regcache_dup. - (get_infcall_suspend_state_regcache): Change return type. - * linux-fork.c (struct fork_info) <savedregs>: Change to - readonly_detached_regcache. - <pc>: New field. - (fork_save_infrun_state): Don't use regcache_dup. - (info_checkpoints_command): Adjust. - * mi/mi-main.c (register_changed_p): Update declaration. - (mi_cmd_data_list_changed_registers): Use - readonly_detached_regcache. - (register_changed_p): Change parameter type to - readonly_detached_regcache. - * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use - readonly_detached_regcache. - (ppu2spu_sniffer): Construct a new readonly_detached_regcache. - * regcache.c (readonly_detached_regcache::readonly_detached_regcache): - New. - (regcache::save): Move it to reg_buffer. - (regcache::restore): Change parameter type. - (regcache_dup): Remove. - * regcache.h (reg_buffer) <save>: New method. - (readonly_detached_regcache): New class. - * spu-tdep.c (spu2ppu_cache) <regcache>: Use - readonly_detached_regcache. - (spu2ppu_sniffer): Construct a new readonly_detached_regcache. - -2018-02-21 Yao Qi <yao.qi@linaro.org> - - * frame.c (frame_save_as_regcache): Use regcache method save. - (frame_pop): Use regcache method restore. - * infrun.c (restore_infcall_suspend_state): Likewise. - * linux-fork.c (fork_load_infrun_state): Likewise. - * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method - save. - * regcache.c (regcache_save): Remove. - (regcache::restore): More asserts. - (regcache_cpy): Remove. - * regcache.h (regcache_save): Remove the declaration. - (regcache::restore): Move from private to public. - Remove the friend declaration of regcache_cpy. - (regcache_cpy): Remove declaration. - -2018-02-21 Yao Qi <yao.qi@linaro.org> - - * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change - parameter type to 'readable_regcache *'. - * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. - * arm-tdep.c (arm_neon_quad_read): Likewise. - (arm_pseudo_read): Likewise. - * avr-tdep.c (avr_pseudo_register_read): Likewise. - * bfin-tdep.c (bfin_pseudo_register_read): Likewise. - * frv-tdep.c (frv_pseudo_register_read): Likewise. - * gdbarch.c: Re-generated. - * gdbarch.h: Re-generated. - * gdbarch.sh (pseudo_register_read): Change parameter type to - 'readable_regcache *'. - (pseudo_register_read_value): Likewise. - * h8300-tdep.c (pseudo_from_raw_register): Likewise. - (h8300_pseudo_register_read): Likewise. - * hppa-tdep.c (hppa_pseudo_register_read): Likewise. - * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. - (i386_pseudo_register_read_into_value): Likewise. - (i386_pseudo_register_read_value): Likewise. - * i386-tdep.h (i386_pseudo_register_read_into_value): Update - declaration. - * ia64-tdep.c (ia64_pseudo_register_read): Likewise. - * m32c-tdep.c (m32c_raw_read): Likewise. - (m32c_read_flg): Likewise. - (m32c_banked_register): Likewise. - (m32c_banked_read): Likewise. - (m32c_sb_read): Likewise. - (m32c_part_read): Likewise. - (m32c_cat_read): Likewise. - (m32c_r3r2r1r0_read): Likewise. - (m32c_pseudo_register_read): Likewise. - * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. - * mep-tdep.c (mep_pseudo_cr32_read): Likewise. - (mep_pseudo_cr64_read): Likewise. - (mep_pseudo_register_read): Likewise. - * mips-tdep.c (mips_pseudo_register_read): Likewise. - * msp430-tdep.c (msp430_pseudo_register_read): Likewise. - * nds32-tdep.c (nds32_pseudo_register_read): Likewise. - * regcache.c (regcache::raw_read): Move it to readable_regcache. - (regcache::cooked_read): Likewise. - (regcache::cooked_read_value): Likewise. - (regcache_cooked_read_signed): - (regcache::cooked_read): Likewise. - * regcache.h (readable_regcache): New class. - (regcache): Inherit readable_regcache. Move some methods to - readable_regcache. - * rl78-tdep.c (rl78_pseudo_register_read): Change - parameter type to 'readable_regcache *'. - * rs6000-tdep.c (do_regcache_raw_read): Remove. - (e500_pseudo_register_read): Change parameter type to - 'readable_regcache *'. - (dfp_pseudo_register_read): Likewise. - (vsx_pseudo_register_read): Likewise. - (efpr_pseudo_register_read): Likewise. - * s390-tdep.c (s390_pseudo_register_read): Likewise. - * sh-tdep.c (sh_pseudo_register_read): Likewise. - * sh64-tdep.c (pseudo_register_read_portions): Likewise. - (sh64_pseudo_register_read): Likewise. - * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. - * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. - * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. - (spu_pseudo_register_read): Likewise. - * xtensa-tdep.c (xtensa_register_read_masked): Likewise. - (xtensa_pseudo_register_read): Likewise. - -2018-02-21 Yao Qi <yao.qi@linaro.org> - - * regcache.c (regcache::regcache): Call reg_buffer ctor. - (regcache::arch): Move it to reg_buffer::arch. - (regcache::register_buffer): Likewise. - (regcache::assert_regnum): Likewise. - (regcache::num_raw_registers): Likewise. - * regcache.h (reg_buffer): New class. - (regcache): Inherit reg_buffer. - -2018-02-20 Simon Marchi <simon.marchi@ericsson.com> - - * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered, - gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF. - -2018-02-20 Markus Metzger <markus.t.metzger@intel.com> - - * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp. - -2018-02-19 Alan Hayward <alan.hayward@arm.com> - - * Makefile.in: (COMMON_SFILES): Add common/*.c files. - (SFILES): Remove common/*.c files. - (COMMON_OBS): Remove some *.o files built from common/*.c files. - * common/common.host: Add common reference. - * configure.ac: Likewise. - * configure: Regenerate. - -2018-02-16 Yao Qi <yao.qi@linaro.org> - - * block.c (block_namespace_info): Inherit allocate_on_obstack. - (block_initialize_namespace): Use new. - * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack. - (dwarf2_free_objfile): Use delete. - * gdbtypes.c (type_pair): Inherit allocate_on_obstack. - (copy_type_recursive): Use new. - * gdb_obstack.h (allocate_on_obstack): New. - -2018-02-15 Yao Qi <yao.qi@linaro.org> - - PR gdb/22849 - * inferior.c (exit_inferior_1): Reset inf->control. - -2018-02-15 Joel Brobecker <brobecker@adacore.com> - - * ada-lang.c (ada_to_fixed_value_create): Delete advance - declaration. - -2018-02-14 Pedro Alves <palves@redhat.com> - - * frame-unwind.c (frame_unwind_try_unwinder): Always call - frame_cleanup_after_sniffer on exception. - -2018-02-14 Tom Tromey <tom@tromey.com> - - * solist.h (struct target_so_ops) <bfd_open>: Make pathname - const. - (solib_bfd_open): Make pathname const. - * solib.c (solib_bfd_open): Make pathname const. - * solib-spu.c (spu_bfd_fopen): Make name const. - (spu_bfd_open): Make pathname const. - * solib-darwin.c (darwin_bfd_open): Make pathname const. - * solib-aix.c (solib_aix_bfd_open): Make pathname const. - -2018-02-14 Tom Tromey <tom@tromey.com> - - * symfile.c (symfile_bfd_open): Update. - * source.h (openp, source_full_path_of, find_and_open_source): - Change argument type to unique_xmalloc_ptr. - * source.c (openp): Take a unique_xmalloc_ptr. - (source_full_path_of, find_and_open_source): Likewise. - (open_source_file, symtab_to_fullname): Update. - * solist.h (struct target_so_ops) <find_and_open_solib>: Take a - unique_xmalloc_ptr. - * solib.c (solib_find_1): Use unique_xmalloc_ptr. - (exec_file_find): Update. - * psymtab.c (psymtab_to_fullname): Update. - * nto-tdep.h (nto_find_and_open_solib): Update. - * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a - unique_xmalloc_ptr. - * exec.c (exec_file_attach): Update. - * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr. - * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr. - -2018-02-14 Tom Tromey <tom@tromey.com> - - * solib.c: Include source.h. - * nto-tdep.c: Include source.h. - * mi/mi-cmd-env.c: Include source.h. - * infcmd.c: Include source.h. - * exec.c: Include source.h. - * defs.h (enum openp_flag, openp, source_full_path_of, mod_path) - (add_path, directory_switch, source_path, init_source_path): Move - declarations... - * source.h (enum openp_flag, openp, source_full_path_of, mod_path) - (add_path, directory_switch, source_path, init_source_path): - ...here. - -2018-02-14 Tom Tromey <tom@tromey.com> - - * solist.h (exec_file_find, solib_find): Return - unique_xmalloc_ptr. - (solib_bfd_fopen): Take a const char *. - * solib.c (solib_find_1): Return unique_xmalloc_ptr. - (exec_file_find, solib_find): Likewise. - (solib_bfd_fopen): Do not take ownership of "pathname". - (solib_bfd_open): Use unique_xmalloc_ptr. - * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr. - * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr. - * infrun.c (follow_exec): Use unique_xmalloc_ptr. - * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr. - -2018-02-14 Joel Brobecker <brobecker@adacore.com> - - * ada-lang.c (name_match_type_from_name): Remove reference to - ada_name_for_lookup in function's documentation. - * ada-lang.h (ada_name_for_lookup): Delete declaration. - -2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> - - * defs.h (enum openp_flags): New enum. - (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH): - Move to enum openp_flags. - (openp_flags): New enum flags. - (openp): Change parameter type to openp_flags. - * source.c (openp): Change parameter type to openp_flags. - * cli/cli-cmds.c (find_and_open_script): Use openp_flags. - * dwarf2read.c (try_open_dwop_file): Use openp_flags. - -2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> - - * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show - per-command. - -2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com> - - * dwarf2read.c (dwarf2_release_queue): Delete function, move body - into... - (class dwarf2_queue_guard): ...the destructor of this new class. - (dw2_do_instantiate_symtab): Create instance of the new class - dwarf2_queue_guard, remove cleanup. - -2018-02-09 Tom Tromey <tom@tromey.com> - - * source.c (find_source_lines): Don't reference past the end of - the vector. - -2018-02-09 Markus Metzger <markus.t.metzger@intel.com> - - * remote.c (remote_btrace_maybe_reopen): Change error message. - * btrace.c (btrace_enable): Likewise. - (parse_xml_btrace): Likewise. - (parse_xml_btrace_conf): Likewise. - -2018-02-09 Markus Metzger <markus.t.metzger@intel.com> - - * nat/linux-btrace.c (diagnose_perf_event_open_fail): New. - (linux_enable_pt, linux_enable_bts): Call - diagnose_perf_event_open_fail. - -2018-02-09 Markus Metzger <markus.t.metzger@intel.com> - - * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message. - Remove parameter and change return type. Update callers. Move it. - (linux_enable_bts, linux_enable_pt): Improve error message. - (linux_enable_pt): Remove zero buffer size check. - (linux_enable_btrace): Improve error messages. Remove NULL return - check. - -2018-02-09 Markus Metzger <markus.t.metzger@intel.com> - - * btrace.c (btrace_enable): Remove target_supports_btrace call. - * nat/linux-btrace.c (perf_event_pt_event_type): Move. - (kernel_supports_bts, kernel_supports_pt, linux_supports_bts) - (linux_supports_pt, linux_supports_btrace): Remove. - (linux_enable_bts): Call cpu_supports_bts. - * nat/linux-btrace.h (linux_supports_btrace): Remove. - * remote.c (remote_supports_btrace): Remove. - (init_remote_ops): Remove remote_supports_btrace. - * target-delegates.c: Regenerated. - * target.c (target_supports_btrace): Remove. - * target.h (target_ops) <to_supports_btrace>: Remove - (target_supports_btrace): Remove. - * x86-linux-nat.c (x86_linux_create_target): Remove - linux_supports_btrace. - -2018-02-09 Markus Metzger <markus.t.metzger@intel.com> - - * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling - btrace failed. - * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling - exception and use message in own exception. - -2018-02-09 Markus Metzger <markus.t.metzger@intel.com> - - * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h. - (perf_event_pt_event_type): Use gdb_file_up. - (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr, - scoped_fd, and scoped_mmap. - -2018-02-09 Markus Metzger <markus.t.metzger@intel.com> - - * common/scoped_mmap.h: New. - * unittests/scoped_mmap-selftest.c: New. - * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add - unittests/scoped_mmap-selftest.c. - -2018-02-09 Markus Metzger <markus.t.metzger@intel.com> - - * common/scoped_fd.h: New. - * unittests/scoped_fd-selftest.c: New. - * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add - unittests/scoped_fd-selftest.c. - -2018-02-09 Tom Tromey <tom@tromey.com> - - * auto-load.c (auto_load_section_scripts): Use - gdb::unique_xmalloc_ptr. - -2018-02-09 Tom Tromey <tom@tromey.com> - - * auto-load.c (execute_script_contents): Use std::string. - -2018-02-09 Joel Brobecker <brobecker@adacore.com> - - * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new - Python function, rather than a new command. - -2018-02-08 Tom Tromey <tom@tromey.com> - - * solib.c (solib_find_1): Use std::string. - (solib_bfd_fopen): Use unique_xmalloc_ptr. - -2018-02-08 Tom Tromey <tom@tromey.com> - - * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr. - -2018-02-08 Tom Tromey <tom@tromey.com> - - * source.c (find_source_lines): Use gdb::def_vector. - -2018-02-08 Tom Tromey <tom@tromey.com> - - * macrocmd.c (struct temporary_macro_definition): New. - (macro_define_command): Use temporary_macro_definition. Remove - cleanups. - (free_macro_definition_ptr): Remove. - -2018-02-08 Tom Tromey <tom@tromey.com> - - * macroexp.c (maybe_expand): Use std::string. - -2018-02-08 Tom Tromey <tom@tromey.com> - - * macroexp.c (struct macro_buffer): Add initializers for some - members. - (init_buffer, init_shared_buffer, free_buffer) - (free_buffer_return_text): Remove. - (macro_buffer): New constructors. - (~macro_buffer): New destructor. - (macro_buffer::set_shared): New method. - (macro_buffer::resize_buffer, macro_buffer::appendc) - (macro_buffer::appendmem): Now methods, not free functions. - (set_token, append_tokens_without_splicing, stringify) - (macro_stringify): Update. - (gather_arguments): Change return type. Remove argc_p argument, - add args_ptr argument. Use std::vector. - (substitute_args): Remove argc argument. Accept std::vector. - (expand): Update. Use std::vector. - (scan, macro_expand, macro_expand_next): Update. - -2018-02-08 Tom Tromey <tom@tromey.com> - - * symtab.c (default_collect_symbol_completion_matches_break_on): - Use unique_xmalloc_ptr. - * macroscope.h: (sal_macro_scope, user_macro_scope) - (default_macro_scope): Return unique_xmalloc_ptr. - * macroscope.c (sal_macro_scope, user_macro_scope) - (default_macro_scope): Return unique_xmalloc_ptr. - * macroexp.h (macro_expand, macro_expand_once): Return - unique_xmalloc_ptr. - * macroexp.c (macro_expand, macro_expand_once): Return - unique_xmalloc_ptr. - * macrocmd.c (macro_expand_command, macro_expand_once_command) - (info_macro_command, info_macros_command): Use - unique_xmalloc_ptr. - * compile/compile-c-support.c (write_macro_definitions): Use - unique_xmalloc_ptr. - * c-exp.y (c_parse): Use unique_xmalloc_ptr. - -2018-02-07 Simon Marchi <simon.marchi@ericsson.com> - - * value.c (value_static_field): Assign field type instead of - containing type when returning an optimized out value. - -2018-02-06 Yao Qi <yao.qi@linaro.org> - - * ft32-tdep.c (ft32_read_pc): Remove. - (ft32_write_pc): Remove. - (ft32_gdbarch_init): Update. - * m32r-tdep.c (m32r_read_pc): Remove. - (m32r_gdbarch_init): Update. - * mep-tdep.c (mep_read_pc): Remove. - (mep_gdbarch_init): Update. - * microblaze-tdep.c (microblaze_write_pc): Remove. - (microblaze_gdbarch_init): Update. - * mn10300-tdep.c (mn10300_read_pc): Remove. - (mn10300_write_pc): Remove. - (mn10300_gdbarch_init): Update. - * moxie-tdep.c (moxie_read_pc): Remove. - (moxie_write_pc): Remove. - (moxie_gdbarch_init): Update. - -2018-02-06 Yao Qi <yao.qi@linaro.org> - - * expprint.c (print_subexp_standard): Handle - OP_F77_UNDETERMINED_ARGLIST. - (dump_subexp_body_standard): Likewise. - -2018-02-05 Alan Hayward <alan.hayward@arm.com> - - * target-descriptions.c (tdesc_element_visitor) Add empty - implementations. - (tdesc_type): Move make_gdb_type from here. - (tdesc_type_builtin): Likewise. - (tdesc_type_vector): Likewise. - (tdesc_type_with_fields): Move make_gdb_type_ functions from here. - (make_gdb_type_struct): Move from tdesc_type_with_fields. - (make_gdb_type_union): Likewise. - (make_gdb_type_flags): Likewise. - (make_gdb_type_enum): Likewise. - (make_gdb_type): New function. - (tdesc_register_type): Use static make_gdb_type. - -2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com> - - * infcmd.c (default_print_one_register_info): Align natural-format - column values consistently one under another. - (pad_to_column): New function. - -2018-02-05 Joel Brobecker <brobecker@adacore.com> - - * dwarf2read.c (dwarf2_physname): Move commment. - -2018-02-01 Leszek Swirski <leszeks@google.com> - - * varobj.c (varobj_formatted_print_options): Allow recursive - pretty printing if pretty printing is enabled. - -2018-02-01 Leszek Swirski <leszeks@google.com> - - * c-exp.y (lex_one_token, classify_name, yylex): Don't classify - names after a structop as a filename. - -2018-02-01 Yao Qi <yao.qi@linaro.org> - - * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it. - (arm_record_coproc_data_proc): Likewise. - -2018-02-01 Yao Qi <yao.qi@linaro.org> - - * arm-tdep.c (arm_record_extension_space): Change ret to signed. - -2018-01-31 Nikola Prica <nikola.prica@rt-rk.com> - - * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and - assign shifted lr_reg to fdata->lr_register when lr_reg is set. - -2018-01-31 Pedro Alves <palves@redhat.com> - - * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter. - * inflow.c (child_terminal_save_inferior): Wrap reference to - tcgetpgrp in HAVE_TERMIOS_H. - (child_interrupt, child_pass_ctrlc): Wrap references to signal in - _WIN32. - * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and - always iterate over all inferiors. - (gdbsim_cntrl_c): Adjust. - * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter. - -2018-01-31 Joel Brobecker <brobecker@adacore.com> - - * gdbtypes.c (lookup_array_range_type): Make sure the array's - index type is objfile-owned if the element type is as well. - -2018-01-31 Joel Brobecker <brobecker@adacore.com> - - GDB 8.1 released. - -2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com> - - * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and - "features/s390x-linux64.c". - (_initialize_s390_linux_tdep): Remove initialization of tdescs - s390_linux32 and s390x_linux64. - (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set - default tdesc. - * s390-tdep.c: Include "features/s390-linux32.c" and - "features/s390x-linux64.c". - (s390_tdesc_valid): Add check for tdesc_has_registers. - (s390_gdbarch_init): Make sure there is always a valid tdesc. - (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and - tdesc_s390x_linux64. - * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and - tdesc_s390x_linux64 to... - * s390-tdep.h: ...here. - -2018-01-30 Pedro Alves <palves@redhat.com> - - PR gdb/13211 - * config.in, configure: Regenerate. - * configure.ac: Check for getpgid. - * go32-nat.c (go32_pass_ctrlc): New. - (go32_target): Install it. - * inf-child.c (inf_child_target): Install - child_terminal_save_inferior, child_pass_ctrlc and - child_interrupt. - * inf-ptrace.c (inf_ptrace_interrupt): Delete. - (inf_ptrace_target): No longer install it. - * infcmd.c (interrupt_target_1): Adjust. - * inferior.h (child_terminal_save_inferior, child_pass_ctrlc) - (child_interrupt): Declare. - (inferior::terminal_state): New. - * inflow.c (struct terminal_info): Update comments. - (inferior_process_group): Delete. - (terminal_is_ours): Delete. - (gdb_tty_state): New. - (child_terminal_init): Adjust. - (is_gdb_terminal, sharing_input_terminal_1) - (sharing_input_terminal): New functions. - (child_terminal_inferior): Adjust. Use sharing_input_terminal. - Set the process's actual process group in the foreground if - possible. Handle is_ours_for_output/is_ours distinction. Don't - mark terminal as the inferior's if not sharing GDB's terminal. - Don't check attach_flag. - (child_terminal_ours_for_output, child_terminal_ours): Adjust to - pass down a target_terminal_state. - (child_terminal_save_inferior): New, factored out from ... - (child_terminal_ours_1): ... this. Handle - target_terminal_state::is_ours_for_output. - (child_interrupt, child_pass_ctrlc): New. - (inflow_inferior_exit): Clear the inferior's terminal_state. - (copy_terminal_info): Copy the inferior's terminal state. - (_initialize_inflow): Remove reference to terminal_is_ours. - * inflow.h (inferior_process_group): Delete. - * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust. - * procfs.c (procfs_target): Don't install procfs_interrupt. - (procfs_interrupt): Delete. - * remote.c (remote_serial_quit_handler): Adjust. - (remote_interrupt): Remove ptid parameter. Adjust. - * target-delegates.c: Regenerate. - * target.c: Include "terminal.h". - (target_terminal::terminal_state): Rename to ... - (target_terminal::m_terminal_state): ... this. - (target_terminal::init): Adjust. - (target_terminal::inferior): Adjust to per-inferior - terminal_state. - (target_terminal::restore_inferior, target_terminal_is_ours_kind): New. - (target_terminal::ours, target_terminal::ours_for_output): Use - target_terminal_is_ours_kind. - (target_interrupt): Remove ptid parameter. Adjust. - (default_target_pass_ctrlc): Adjust. - * target.h (target_ops::to_terminal_save_inferior): New field. - (target_ops::to_interrupt): Remove ptid_t parameter. - (target_interrupt): Remove ptid_t parameter. Update comment. - (target_pass_ctrlc): Update comment. - * target/target.h (target_terminal_state): New scoped enum, - factored out of ... - (target_terminal::terminal_state): ... here. - (target_terminal::inferior): Update comments. - (target_terminal::restore_inferior): New. - (target_terminal::is_inferior, target_terminal::is_ours) - (target_terminal::is_ours_for_output): Adjust. - (target_terminal::scoped_restore_terminal_state): Adjust to - rename, and call restore_inferior() instead of inferior(). - (target_terminal::scoped_restore_terminal_state::m_state): Change - type. - (target_terminal::terminal_state): Rename to ... - (target_terminal::m_terminal_state): ... this and change type. - -2018-01-30 Pedro Alves <palves@redhat.com> - - * linux-nat.c (wait_for_signal): New function. - (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend - directly. - (async_terminal_is_ours) - (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete. - (linux_nat_add_target): Don't override - to_terminal_inferior/to_terminal_ours. - -2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com> - - * remote.c (remote_follow_fork): Don't call "detach_inferior". - -2018-01-28 Simon Marchi <simon.marchi@ericsson.com> - - * dwarf2read.c (free_dwo_files): Add forward-declaration. - (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from - dwarf2_per_objfile_free here. - (dwarf2_per_objfile_free): Remove. - (_initialize_dwarf2_read): Don't register - dwarf2_per_objfile_free as a registry cleanup. - -2018-01-27 Eli Zaretskii <eliz@gnu.org> - - Avoid compilation errors in MinGW native builds - - The error is triggered by including python-internal.h, and the - error message is: - - In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0, - from build-gnulib/import/math.h:27, - from d:/usr/Python26/include/pyport.h:235, - from d:/usr/Python26/include/Python.h:58, - from python/python-internal.h:94, - from python/py-arch.c:24: - d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared - using ::hypot; - ^~~~~ - - This happens because Python headers define 'hypot' to expand t - '_hypot' in the Windows builds. - * python/python-internal.h (_hypot) [__MINGW32__]: Define back to - 'hypoth'. This avoids a compilation error. - -2018-01-26 Alan Hayward <alan.hayward@arm.com> - - * MAINTAINERS (Write After Approval): Fix ordering. - -2018-01-26 Alan Hayward <alan.hayward@arm.com> - - * MAINTAINERS (Write After Approval): Add Alan Hayward. - -2018-01-26 Alan Modra <amodra@gmail.com> - - * ppc-linux-tdep.c (powerpc32_plt_stub): Make const. - (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so. - Remove nop. Make const. Comment. - (powerpc32_plt_stub_so_2): New. - (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN. - Correct count. Update uses. - (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too. - Move common code reading PLT entry word. Correct - powerpc32_plt_stub PLT address calculation. - * ppc64-tdep.c (ppc64_standard_linkage1): Make const. - (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise. - (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise. - (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise. - (ppc64_standard_linkage8): Likewise. - * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const. - Correct insns description. - * ppc-tdep.h (ppc_insns_match_pattern): Update prototype. - -2018-01-24 Pedro Alves <palves@redhat.com> - - GCC PR libstdc++/83906 - * gdbtypes.c (operator==(const dynamic_prop &, - const dynamic_prop &)): New. - (operator==(const range_bounds &, const range_bounds &)): New. - (check_types_equal): Use them instead of memcmp. - * gdbtypes.h (operator==(const dynamic_prop &, - const dynamic_prop &)): Declare. - (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare. - (operator==(const range_bounds &, const range_bounds &)): Declare. - (operator!=(const range_bounds &, const range_bounds &)): Declare. - -2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> - - * s390-linux-tdep.c (s390_record_address_mask) - (s390_record_calc_disp_common, s390_record_calc_disp) - (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) - (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) - (s390_process_record): Move to s390-tdep.c. - (s390_linux_init_abi_any): Adjust. - * s390-tdep.c (s390_record_address_mask) - (s390_record_calc_disp_common, s390_record_calc_disp) - (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) - (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) - (s390_process_record): Moved from s390-linux-tdep.c - (s390_gdbarch_init): Adjust. - -2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> - - * s390-linux-nat.c (s390-tdep.h): New include. - * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o. - (HFILES_NO_SRCDIR): Add s390-tdep.h. - (ALLDEPFILES): Add s390-tdep.c. - * configure.tgt (s390*-*-linux*): Add s390-tdep.o. - * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to... - * s390-tdep.h: ...this. New file. - * s390-linux-tdep.c (s390-tdep.h): New include. - (_initialize_s390_tdep): Rename to... - (_initialize_s390_linux_tdep): ...this and adjust. - (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep) - (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to - s390-tdep.h. - (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri) - (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy) - (s390_is_partial_instruction, s390_software_single_step) - (is_non_branch_ril, s390_displaced_step_copy_insn) - (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep) - (s390_prologue_data, s390_addr, s390_store, s390_load) - (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue) - (s390_register_call_saved, s390_guess_tracepoint_registers) - (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum) - (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register) - (s390_pseudo_register_name, s390_pseudo_register_type) - (s390_pseudo_register_read, s390_pseudo_register_write) - (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect) - (s390_ax_pseudo_register_push_stack, s390_gen_return_address) - (s390_addr_bits_remove, s390_address_class_type_flags) - (s390_address_class_type_flags_to_name) - (s390_address_class_name_to_type_flags, s390_effective_inner_type) - (s390_function_arg_float, s390_function_arg_vector) - (is_power_of_two, s390_function_arg_integer, s390_arg_state) - (s390_handle_arg, s390_push_dummy_call, s390_dummy_id) - (s390_frame_align, s390_register_return_value, s390_return_value) - (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp) - (s390_unwind_pseudo_register, s390_adjust_frame_regnum) - (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg) - (s390_trad_frame_prev_register, s390_unwind_cache) - (s390_prologue_frame_unwind_cache) - (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache) - (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind) - (s390_stub_unwind_cache, s390_stub_frame_unwind_cache) - (s390_stub_frame_this_id, s390_stub_frame_prev_register) - (s390_stub_frame_sniffer, s390_stub_frame_unwind) - (s390_frame_base_address, s390_local_base_address) - (s390_frame_base, s390_gcc_target_options) - (s390_gnu_triplet_regexp, s390_stap_is_single_operand) - (s390_validate_reg_range, s390_tdesc_valid) - (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to... - * s390-tdep.c: ...this. New file. - -2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> - - * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook. - (s390_process_record, s390_gdbarch_tdep_alloc) - (s390_linux_init_abi_any): Use/set new hook. - -2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> - - * s390-linux-tdep.c (osabi.h): New include. - (s390_linux_init_abi_31, s390_linux_init_abi_64) - (s390_linux_init_abi_any): New functions. - (s390_gdbarch_init, _initialize_s390_tdep): Adjust. - -2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> - - * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for - tdesc_has_registers check - -2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> - - * s390-linux-tdep.c (s390_tdesc_valid): New function. - (s390_validate_reg_range): New macro. - (s390_gdbarch_init): Adjust. - -2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> - - * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field. - (s390_gdbarch_tdep_alloc): Adjust. - (s390_gdbarch_init): Adjust. - -2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> - - * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2> - <have_tdb>: Change type to bool. - (s390_gdbarch_tdep_alloc): Adjust. - (s390_gdbarch_init): Adjust. - -2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> - - * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field. - (gdbarch_tdep) <have_upper, have_vx>: New fields. - (s390_gdbarch_tdep_alloc): New function. - (s390_gdbarch_init): Allocate tdep at start and use its fields - instead of separate variables. - -2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> - - * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks - when looking for cached gdbarch and add comment for remaining. - -2018-01-22 Pedro Alves <palves@redhat.com> - Sergio Durigan Junior <sergiodj@redhat.com> - - * typeprint.c (whatis_exp): Initialize "val" in the "whatis type" - case. - -2018-01-22 Maciej W. Rozycki <macro@mips.com> - - * MAINTAINERS: Update my company e-mail address. - -2018-01-22 Yao Qi <yao.qi@linaro.org> - - * regcache.c (cooked_write_test): New function. - (_initialize_regcache): Register the test. - -2018-01-22 Yao Qi <yao.qi@linaro.org> - - * ia64-tdep.c (ia64_pseudo_register_read): Call - regcache->cooked_read instead of regcache_cooked_read_unsigned. - * m32c-tdep.c (m32c_cat_read): Likewise. - (m32c_r3r2r1r0_read): Likewise. - * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. - * xtensa-tdep.c (xtensa_register_read_masked): Likewise. - -2018-01-22 Yao Qi <yao.qi@linaro.org> - - * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache - method raw_read instead of regcache_raw_read. - * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. - * arm-tdep.c (arm_neon_quad_read): Likewise. - * avr-tdep.c (avr_pseudo_register_read): Likewise. - * bfin-tdep.c (bfin_pseudo_register_read): Likewise. - * frv-tdep.c (frv_pseudo_register_read): Likewise. - * h8300-tdep.c (h8300_pseudo_register_read): Likewise. - * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. - (i386_pseudo_register_read_into_value): Likewise. - * mep-tdep.c (mep_pseudo_cr32_read): Likewise. - * msp430-tdep.c (msp430_pseudo_register_read): Likewise. - * nds32-tdep.c (nds32_pseudo_register_read): Likewise. - * rl78-tdep.c (rl78_pseudo_register_read): Likewise. - * s390-linux-tdep.c (s390_pseudo_register_read): Likewise. - * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. - * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. - * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. - * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise. - -2018-01-22 Yao Qi <yao.qi@linaro.org> - - * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o. - * configure.tgt: Remove target mt. - * mt-tdep.c: Remove. - * regcache.c (cooked_read_test): Remove the check for mt. - -2018-01-22 Yao Qi <yao.qi@linaro.org> - - * jit.c (jit_frame_prev_register): Call regcache::cooked_read - instead of gdbarch_pseudo_register_read_value. - -2018-01-22 Joel Brobecker <brobecker@adacore.com> - - * dwarf2read.c (need_gnat_info): Return nonzero if the cu's - language is Ada. - -2018-01-22 Joel Brobecker <brobecker@adacore.com> - - * linespec.c (create_sals_line_offset): Remove code that preserved - the symtab_and_line's line number. - -2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> - - * varobj.c (varobj_create): Don't set valid_block when creating a - floating varobj. - -2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> - - * varobj.c (varobj_create): Remove out of date comment. - -2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> - - PR mi/20395 - * ada-exp.y (write_var_from_sym): Pass extra parameter when - updating innermost block. - * parse.c (innermost_block_tracker::update): Take extra type - parameter, and check types match before updating innermost block. - (write_dollar_variable): Update innermost block for registers. - * parser-defs.h (enum innermost_block_tracker_type): New enum. - (innermost_block_tracker::innermost_block_tracker): Initialise - m_types member. - (innermost_block_tracker::reset): Take type parameter. - (innermost_block_tracker::update): Take type parameter, and pass - type through as needed. - (innermost_block_tracker::m_types): New member. - * varobj.c (varobj_create): Pass type when reseting innermost - block. - -2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> - - * ada-exp.y (write_var_from_sym): Switch to innermost_block API. - * ada-lang.c (resolve_subexp): Likewise. - * breakpoint.c (set_breakpoint_condition) Likewise. - (watch_command_1) Likewise. - * c-exp.y (variable): Likewise. - * d-exp.y (PrimaryExpression): Likewise. - * f-exp.y (variable): Likewise. - * go-exp.y (variable): Likewise. - * m2-exp.y (variable): Likewise. - * objfiles.c (objfile::~objfile): Likewise. - * p-exp.y (variable): Likewise. - * parse.c (innermost_block): Change type. - * parser-defs.h (class innermost_block_tracker): New. - (innermost_block): Change to innermost_block_tracker. - * printcmd.c (display_command): Switch to innermost_block API. - (do_one_display): Likewise. - * rust-exp.y (do_one_display): Likewise. - * symfile.c (clear_symtab_users): Likewise. - * varobj.c (varobj_create): Switch to innermost_block API, replace - use of innermost_block with block stored on varobj object. - -2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> - - * expression.h (innermost_block): Remove declaration. - * varobj.c: Add 'parser-defs.h' include. - -2018-01-19 Tom Tromey <tom@tromey.com> - - * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified - symbols in the static and global blocks. - -2018-01-19 James Clarke <jrtc27@jrtc27.com> - - * nat/linux-ptrace.c: Remove unnecessary reinclusion of - gdb_ptrace.h, and move including gdb_wait.h ... - * nat/linux-ptrace.h: ... to here. - -2018-01-19 Simon Marchi <simon.marchi@ericsson.com> - - * inf-ptrace.c (inf_ptrace_detach): Adjust call to - inf_ptrace_detach_success. - (inf_ptrace_detach_success): Add inferior parameter, use it - instead of inferior_ptid, pass it to detach_inferior. - * inf-ptrace.h (inf_ptrace_detach_success): Add inferior - parameter. - * inferior.c (detach_inferior): Add overload that takes an - inferior object. - * inferior.h (detach_inferior): Likewise. - * linux-nat.c (linux_nat_detach): Use the inf parameter, don't - use inferior_ptid, adjust call to inf_ptrace_detach_success. - * linux-thread-db.c (thread_db_detach): Use inf parameter. - -2018-01-19 Simon Marchi <simon.marchi@ericsson.com> - - * target.h (struct target_ops) <to_detach>: Add inferior - parameter. - (target_detach): Likewise. - * target.c (dispose_inferior): Pass inferior down. - (target_detach): Pass inferior down. Assert that it is equal to - the current inferior. - * aix-thread.c (aix_thread_detach): Pass inferior down. - * corefile.c (core_file_command): Pass current_inferior() down. - * corelow.c (core_detach): Add inferior parameter. - * darwin-nat.c (darwin_detach): Likewise. - * gnu-nat.c (gnu_detach): Likewise. - * inf-ptrace.c (inf_ptrace_detach): Likewise. - * infcmd.c (detach_command): Pass current_inferior() down to - target_detach. - * infrun.c (follow_fork_inferior): Pass parent_inf to - target_detach. - (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to - target_detach. - * linux-nat.c (linux_nat_detach): Add inferior parameter. - * linux-thread-db.c (thread_db_detach): Likewise. - * nto-procfs.c (procfs_detach): Likewise. - * procfs.c (procfs_detach): Likewise. - * record.c (record_detach): Likewise. - * record.h (struct inferior): Forward-declare. - (record_detach): Add inferior parameter. - * remote-sim.c (gdbsim_detach): Likewise. - * remote.c (remote_detach_1): Likewise. - (remote_detach): Likewise. - (extended_remote_detach): Likewise. - * sol-thread.c (sol_thread_detach): Likewise. - * target-debug.h (target_debug_print_inferior_p): New macro. - * target-delegates.c: Re-generate. - * top.c (kill_or_detach): Pass inferior down to target_detach. - * windows-nat.c (windows_detach): Add inferior parameter. - -2018-01-19 Simon Marchi <simon.marchi@ericsson.com> - - * target.h (struct target_ops) <to_detach>: Remove args - parameter. - (target_detach): Likewise. - * target.c (dispose_inferior): Adjust. - (target_detach): Remove args parameter, adjust. - * aix-thread.c (aix_thread_detach): Adjust. - * corefile.c (core_file_command): Adjust. - * corelow.c (core_detach): Adjust. - * darwin-nat.c (darwin_detach): Adjust. - * gnu-nat.c (gnu_detach): Adjust. - * inf-ptrace.c (inf_ptrace_detach): Adjust. - * infcmd.c (detach_command): Adjust - * infrun.c (follow_fork_inferior): Adjust. - (handle_vfork_child_exec_or_exit): Adjust. - * linux-fork.c (linux_fork_detach): Remove args parameter. - * linux-fork.h (linux_fork_detach): Likewise. - * linux-nat.c (linux_nat_detach): Likewise, and adjust. - * linux-thread-db.c (thread_db_detach): Likewise. - * nto-procfs.c (procfs_detach): Likewise. - * procfs.c (procfs_detach): Likewise. - (do_detach): Remove signo parameter. - * record.c (record_detach): Remove args parameter. - * record.h (record_detach): Likewise. - * remote-sim.c (gdbsim_detach): Likewise. - * remote.c (remote_detach_1): Likewise. - (remote_detach): Likewise. - (extended_remote_detach): Likewise. - * sol-thread.c (sol_thread_detach): Likewise. - * target-delegates.c: Re-generate. - * top.c (struct qt_args) <args>: Remove field. - (kill_or_detach): Don't pass args. - (quit_force): Don't set args. - * windows-nat.c (windows_detach): Remove args parameter. - -2018-01-19 Yao Qi <yao.qi@linaro.org> - - * arm-linux-tdep.c (arm_linux_gcc_target_options): New function. - (arm_linux_init_abi): Install it. - -2018-01-19 Yao Qi <yao.qi@linaro.org> - - * osabi.c (gdb_osabi_names): Extend the regexp for - arm-linux-gnueabihf. - -2018-01-18 Yao Qi <yao.qi@linaro.org> - - * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to - m_abbrevs. - (abbrev_table::add_abbrev): Update. - (abbrev_table::lookup_abbrev): Update. - -2018-01-18 Yao Qi <yao.qi@linaro.org> - - * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read. - -2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com> - - * compile/compile.c (compile_to_object): Convert "triplet_rx" - to "std::string". - -2018-01-17 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC. - -2018-01-17 Tom Tromey <tom@tromey.com> - - * gdbtypes.h (add_dyn_prop): Remove objfile parameter. - * gdbtypes.c (add_dyn_prop): Remove objfile parameter. - (create_array_type_with_stride): Update. - * dwarf2read.c (set_die_type): Update. - -2018-01-17 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (delayed_method_info): Remove typedef. - (dwarf2_cu::method_info): Now a std::vector. - (add_to_method_list): Update. - (free_delayed_list): Remove. - (compute_delayed_physnames): Update. - (process_full_comp_unit, process_full_type_unit): Clear the method - list. Remove cleanups. - (psymtab_include_file_name): Add name_holder parameter. Use - unique_xmalloc_ptr. - (dwarf_decode_lines): Update. - -2018-01-17 Tom Tromey <tom@tromey.com> - Simon Marchi <simon.marchi@ericsson.com> - - * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor. - (dwarf2_per_objfile::free_cached_comp_units) - (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) - (init_cutu_and_read_dies_no_follow): Update. - (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit. - (dwarf2_cu::~dwarf2_cu): New. - (free_heap_comp_unit, free_stack_comp_unit): Remove. - (age_cached_comp_units, free_one_cached_comp_unit): Update. - -2018-01-17 Tom Tromey <tom@tromey.com> - Simon Marchi <simon.marchi@ericsson.com> - - * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove. - (struct die_reader_specs) <abbrev_table>: New member. - (struct abbrev_table): Add constructor. - <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare. - <abbrev_obstack>: Now an auto_obstack. - (abbrev_table_up): New typedef. - (init_cu_die_reader): Add abbrev_table parameter. - (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter. - Add result_dwo_abbrev_table. - (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) - (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1): - Update. - (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as - parameter. - (skip_children): Update. - (abbrev_table::alloc_abbrev): Rename from - abbrev_table_alloc_abbrev. - (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev. - (abbrev_table::lookup_abbrev): Rename from - abbrev_table_lookup_abbrev. - (abbrev_table_read_table): Return abbrev_table_up. - (abbrev_table_free, abbrev_table_free_cleanup) - (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove. - (load_partial_dies): Update. - -2018-01-17 Tom Tromey <tom@tromey.com> - - * dwarf2read.c (dwarf2_compute_name): Update comment. - (read_func_scope, read_variable): Update. - (new_symbol): Remove. - (new_symbol_full): Rename to new_symbol. - -2018-01-17 Mike Gulick <mgulick@mathworks.com> - - PR gdb/16577 - * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue - a warning instead of throwing an error, set section size to 0 and return - NULL. - * gdb_bfd.h (gdb_bfd_map_section): Update description. - -2018-01-17 Simon Marchi <simon.marchi@ericsson.com> - - * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return - std::string. - (linux_ptrace_attach_fail_reason_string): Likewise. - * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): - Likewise. - (linux_ptrace_attach_fail_reason_string): Likewise. - * linux-nat.c (attach_proc_task_lwp_callback): Adjust. - -2018-01-17 Simon Marchi <simon.marchi@ericsson.com> - - * linux-nat.c (linux_nat_attach): Remove xstrdup. - -2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com> - - PR gdb/21559 - * configure.ac: Include <sys/types.h> prior to <sys/user.h> when - checking for fs_base/gs_base fields in struct user_regs_struct. - * configure: Regenerate. - -2018-01-17 Yao Qi <yao.qi@linaro.org> - - * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New - function. - (aarch64_linux_init_abi): Install it to gdbarch hook - gcc_target_options. - -2018-01-15 Pedro Alves <palves@redhat.com> - - * common/signals-state-save-restore.c - (save_original_signals_state): Fix typos. - -2017-01-12 Tom Tromey <tom@tromey.com> - Sergio Durigan Junior <sergiodj@redhat.com> - - * Makefile.in (install-only): Install gdb-add-index. - -2018-01-12 John Baldwin <jhb@FreeBSD.org> - - * fbsd-tdep.c (KVE_PROTECTION): Correct value. - -2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com> - - * infrun.c (keep_going_pass_signal): Clear step-over info when - insert_breakpoints fails. - -2018-01-11 Pedro Alves <palves@redhat.com> - - PR gdb/22583 - * infrun.c (resume): Rename to ... - (resume_1): ... this. - (resume): Reimplement as wrapper around resume_1. - -2018-01-11 Pedro Alves <palves@redhat.com> - - PR remote/22597 - * remote.c (remote_parse_stop_reply): Default to the last-set - general thread instead of to 'magic_null_ptid'. - -2018-01-10 Pedro Alves <palves@redhat.com> - - * language.h (language_get_symbol_name_matcher): Rename ... - (get_symbol_name_matcher): ... this. - * language.c (language_get_symbol_name_matcher): Ditto. - * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All - callers adjusted. - -2018-01-10 Pedro Alves <palves@redhat.com> - - PR gdb/22670 - * dwarf2read.c - (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher): - Adjust to use language_get_symbol_name_matcher instead of - language_defn::la_get_symbol_name_matcher. - * language.c (language_get_symbol_name_matcher): If in Ada mode - and the lookup name is a verbatim match, return Ada's matcher. - * language.h (language_get_symbol_name_matcher): Adjust comment. - (ada_lookup_name_info::verbatim_p):: New method. - -2018-01-10 Pedro Alves <palves@redhat.com> - - PR gdb/22670 - * ada-lang.c (ada_collect_symbol_completion_matches): If the - minsym's language is language_auto or language_cplus, pass down - language_ada instead. - * symtab.c (compare_symbol_name): Don't frob symbol language here. - -2018-01-10 Pedro Alves <palves@redhat.com> - - PR gdb/22670 - * minsyms.c (linkage_name_str): New function. - (iterate_over_minimal_symbols): Use it. - -2018-01-09 John Baldwin <jhb@FreeBSD.org> - - * NEWS: Document that 'info proc' now works on FreeBSD. - -2018-01-09 John Baldwin <jhb@FreeBSD.org> - - * configure.ac: Check for kinfo_getfile in libutil. - * configure: Regenerate. - * config.in: Regenerate. - * fbsd-nat.c: Include "fbsd-tdep.h". - (fbsd_fetch_cmdline): New. - (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool - rather than calling error. - (fbsd_info_proc): New. - (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails. - (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails. - (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc". - -2018-01-09 John Baldwin <jhb@FreeBSD.org> - - * fbsd-nat.c (struct free_deleter): Remove. - (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>. - -2018-01-09 John Baldwin <jhb@FreeBSD.org> - - * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return - NULL for an empty pathname. - -2018-01-09 John Baldwin <jhb@FreeBSD.org> - - * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET) - (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ) - (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) - (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) - (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP) - (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD) - (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD) - (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout) - (kinfo_proc_layout_32, kinfo_proc_layout_i386) - (kinfo_proc_layout_64, fbsd_vm_map_entry_flags) - (fbsd_core_info_proc_mappings, fbsd_core_vnode_path) - (fbsd_core_fetch_timeval, fbsd_print_sigset) - (fbsd_core_info_proc_status, fbsd_core_info_proc): New. - (fbsd_init_abi): Install gdbarch "core_info_proc" method. - * fbsd-tdep.h (fbsd_vm_map_entry_flags): New. - -2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org> - - * gdb/gnu-nat.c: Include <elf.h> and <link.h>. - (gnu_xfer_auxv): New function. - (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is - TARGET_OBJECT_AUXV. - -2018-01-08 Yao Qi <yao.qi@linaro.org> - Simon Marchi <simon.marchi@ericsson.com> - - * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and - common/selftest.c. - (COMMON_OBS): Remove selftest.o. - * configure.ac: Append selftest-arch.c and common/selftest.c to - CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS. - * configure: Re-generated. - * maint.c (maintenance_selftest): Wrap selftests::run_tests with - GDB_SELF_TEST. - (maintenance_info_selftests): Likewise. - -2018-01-08 Xavier Roirand <roirand@adacore.com> - - * ada-valprint.c (val_print_packed_array_elements): Use - proper number of elements when printing an array indexed - by an enumeration type. - -2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> - - * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove. - (dw2_get_file_names_reader): Adjust. - (lookup_dwo_signatured_type): Adjust. - (lookup_dwp_signatured_type): Adjust. - (lookup_signatured_type): Adjust. - (create_type_unit_group): Adjust. - (get_type_unit_group): Adjust. - (process_psymtab_comp_unit_reader): Adjust. - (build_type_psymtabs_reader): Adjust. - (scan_partial_symbols): Adjust. - (add_partial_symbol): Adjust. - (add_partial_subprogram): Adjust. - (peek_die_abbrev): Adjust. - (fixup_go_packaging): Adjust. - (process_imported_unit_die): Adjust. - (dwarf2_compute_name): Adjust. - (dwarf2_physname): Adjust. - (read_import_statement): Adjust. - (handle_DW_AT_stmt_list): Adjust. - (read_file_scope): Adjust. - (read_func_scope): Adjust. - (read_lexical_block_scope): Adjust. - (read_call_site_scope): Adjust. - (read_variable): Adjust. - (dwarf2_rnglists_process): Adjust. - (dwarf2_ranges_process): Adjust. - (dwarf2_ranges_read): Adjust. - (dwarf2_get_pc_bounds): Adjust. - (dwarf2_record_block_ranges): Adjust. - (dwarf2_add_field): Adjust. - (dwarf2_add_member_fn): Adjust. - (read_structure_type): Adjust. - (process_structure_scope): Adjust. - (read_enumeration_type): Adjust. - (read_array_type): Adjust. - (mark_common_block_symbol_computed): Adjust. - (read_common_block): Adjust. - (read_namespace_type): Adjust. - (read_namespace): Adjust. - (read_module_type): Adjust. - (read_tag_pointer_type): Adjust. - (read_tag_ptr_to_member_type): Adjust. - (read_tag_string_type): Adjust. - (read_subroutine_type): Adjust. - (read_typedef): Adjust. - (read_base_type): Adjust. - (attr_to_dynamic_prop): Adjust. - (read_subrange_type): Adjust. - (read_unspecified_type): Adjust. - (dwarf2_read_abbrevs): Adjust. - (load_partial_dies): Adjust. - (read_partial_die): Adjust. - (find_partial_die): Adjust. - (guess_partial_die_structure_name): Adjust. - (fixup_partial_die): Adjust. - (read_attribute_value): Adjust. - (read_addr_index): Adjust. - (read_addr_index_from_leb128): Adjust. - (read_str_index): Adjust. - (dwarf2_string_attr): Adjust. - (get_debug_line_section): Adjust. - (dwarf_decode_line_header): Adjust. - (lnp_state_machine::check_line_address): Adjust. - (dwarf_decode_lines_1): Adjust. - (dwarf_decode_lines): Adjust. - (dwarf2_start_symtab): Adjust. - (var_decode_location): Adjust. - (new_symbol_full): Adjust. - (dwarf2_const_value_data): Adjust. - (dwarf2_const_value_attr): Adjust. - (dwarf2_const_value): Adjust. - (die_type): Adjust. - (die_containing_type): Adjust. - (build_error_marker_type): Adjust. - (lookup_die_type): Adjust. - (guess_full_die_structure_name): Adjust. - (anonymous_struct_prefix): Adjust. - (determine_prefix): Adjust. - (dwarf2_name): Adjust. - (follow_die_ref_or_sig): Adjust. - (follow_die_offset): Adjust. - (follow_die_ref): Adjust. - (follow_die_sig_1): Adjust. - (follow_die_sig): Adjust. - (get_signatured_type): Adjust. - (get_DW_AT_signature_type): Adjust. - (decode_locdesc): Adjust. - (dwarf_decode_macros): Adjust. - (cu_debug_loc_section): Adjust. - (fill_in_loclist_baton): Adjust. - (dwarf2_symbol_mark_computed): Adjust. - (init_one_comp_unit): Don't assign - dwarf2_cu::dwarf2_per_objfile. - (set_die_type): Adjust. - -2018-01-07 Simon Marchi <simon.marchi@ericsson.com> - - * dwarf2read.c (struct mapped_debug_names): Add constructor. - <dwarf2_per_objfile>: New field. - (dwarf2_per_objfile): Remove global. - (get_dwarf2_per_objfile): New function. - (set_dwarf2_per_objfile): New function. - (dwarf2_build_psymtabs_hard): Change objfile parameter to - dwarf2_per_objfile. - (abbrev_table_read_table): Add dwarf2_per_objfile parameter. - (read_abbrev_offset): Likewise. - (read_indirect_string): Likewise. - (read_indirect_line_string): Likewise. - (read_indirect_string_at_offset): Likewise. - (read_indirect_string_from_dwz): Likewise. - (dwarf2_find_containing_comp_unit): Change objfile parameter to - dwarf2_per_objfile. - (age_cached_comp_units): Add dwarf2_per_objfile parameter. - (create_all_comp_units): Change objfile parameter to - dwarf2_per_objfile. - (create_all_type_units): Likewise. - (process_queue): Add dwarf2_per_objfile parameter. - (read_and_check_comp_unit_head): Likewise. - (lookup_dwo_unit_in_dwp): Likewise. - (get_dwp_file): Likewise. - (process_cu_includes): Likewise. - (struct free_dwo_file_cleanup_data): New struct. - (dwarf2_has_info): Use get_dwarf2_per_objfile and - set_dwarf2_per_objfile. - (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter. - (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from - context, adjust calls. - (dw2_instantiate_symtab): Likewise. - (dw2_get_cutu): Add dwarf2_per_objfile parameter. - (dw2_get_cu): Likewise. - (create_cu_from_index_list): Change objfile parameter to - dwarf2_per_objfile. - (create_cus_from_index_list): Get dwarf2_per_objfile from - context, adjust calls. - (create_cus_from_index): Likewise. - (create_signatured_type_table_from_index): Change objfile - parameter to dwarf2_per_objfile. - (create_signatured_type_table_from_debug_names): Change objfile - parameter to dwarf2_per_objfile. - (create_addrmap_from_index): Likewise. - (create_addrmap_from_aranges): Likewise. - (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls. - (dw2_setup): Remove. - (dw2_get_file_names_reader): Get dwarf2_per_objfile from - context. - (dw2_find_last_source_symtab): Get dwarf2_per_objfile using - get_dwarf2_per_objfile. - (dw2_forget_cached_source_info): Likewise. - (dw2_map_symtabs_matching_filename): Likewise. - (struct dw2_symtab_iterator) <index>: Remove. - <dwarf2_per_objfile>: New field. - (dw2_symtab_iter_init): Replace index parameter with - dwarf2_per_objfile. - (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter. - (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust. - (dw2_print_stats): Likewise. - (dw2_dump): Likewise. - (dw2_expand_symtabs_for_function): Likewise. - (dw2_expand_all_symtabs): Likewise. - (dw2_expand_symtabs_with_fullname): Likewise. - (dw2_expand_marked_cus): Replace index and objfile parameters - with dwarf2_per_objfile. - (dw_expand_symtabs_matching_file_matcher): Add - dwarf2_per_objfile parameter and adjust calls. - (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and - adjust calls. - (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup. - (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and - adjust calls. - (create_cus_from_debug_names_list): Replace objfile parameter - with dwarf2_per_objfile and adjust calls. - (create_cus_from_debug_names): Likewise. - (dwarf2_read_debug_names): Likewise. - (mapped_debug_names::namei_to_name): Adjust call. - (dw2_debug_names_iterator::next): Likewise. - (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. - (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile. - (dw2_debug_names_dump): Likewise. - (dw2_debug_names_expand_symtabs_for_function): Likewise. - (dw2_debug_names_expand_symtabs_matching): Likewise. - (dwarf2_initialize_objfile): Likewise. - (dwarf2_build_psymtabs): Likewise. - (get_abbrev_section_for_cu): Get dwarf2_per_objfile from - this_cu. - (error_check_comp_unit_head): Add dwarf2_per_objfile parameter. - (read_and_check_comp_unit_head): Likewise. - (read_abbrev_offset): Likewise. - (create_debug_type_hash_table): Likewise. - (create_debug_types_hash_table): Likewise. - (create_all_type_units): Replace objfile parameter with - dwarf2_per_objfile. - (add_type_unit): Add dwarf2_per_objfile parameter. - (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter - with dwarf2_per_objfile. - (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu. - (lookup_dwp_signatured_type): Likewise. - (lookup_signatured_type): Likewise. - (read_cutu_die_from_dwo): Likewise. - (init_tu_and_read_dwo_dies): Likewise. - (init_cutu_and_read_dies): Likewise. - (init_cutu_and_read_dies_no_follow): Likewise. - (allocate_type_unit_groups_table): Add objfile parameter. - (create_type_unit_group): Use dwarf2_per_objfile from cu. - (get_type_unit_group): Likewise. - (process_psymtab_comp_unit): Update call. - (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu. - (build_type_psymtabs_1): Add dwarf2_per_objfile parameter. - (print_tu_stats): Likewise. - (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed - in void* parameter. - (build_type_psymtabs): Change objfile parameter to - dwarf2_per_objfile. - (process_skeletonless_type_unit): Use dwarf2_per_objfile - passed in void* parameter. - (process_skeletonless_type_units): Change objfile parameter to - dwarf2_per_objfile. - (set_partial_user): Likewise. - (dwarf2_build_psymtabs_hard): Likewise. - (read_comp_units_from_section): Likewise. - (create_all_comp_units): Likewise. - (scan_partial_symbols): Update calls. - (add_partial_symbol): Likewise. - (dwarf2_read_symtab): Use get_dwarf2_per_objfile. - (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu. - (process_queue): Add dwarf2_per_objfile parameter. - (get_compunit_symtab): Use dwarf2_per_objfile from cu. - (compute_compunit_symtab_includes): Likewise. - (process_cu_includes): Add dwarf2_per_objfile parameter. - (process_full_comp_unit): Use dwarf2_per_objfile from cu. - (process_full_type_unit): Likewise. - (process_imported_unit_die): Update call. - (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu. - (read_file_scope): Likewise. - (allocate_dwo_file_hash_table): Add objfile parameter. - (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter. - (create_cus_hash_table): Likewise. - (create_dwp_hash_table): Likewise. - (create_dwo_unit_in_dwp_v1): Likewise. - (create_dwp_v2_section): Likewise. - (create_dwo_unit_in_dwp_v2): Likewise. - (lookup_dwo_unit_in_dwp): Likewise. - (try_open_dwop_file): Likewise. - (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu. - (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update - cleanup to include a reference to dwarf2_per_objfile. - (open_dwp_file): Add dwarf2_per_objfile parameter. - (open_and_init_dwp_file): Likewise. - (get_dwp_file): Likewise. - (lookup_dwo_cutu): Use dwarf2_per_objfile from cu. - (queue_and_load_all_dwo_tus): Update call. - (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup - data. - (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu. - (dwarf2_ranges_process): Likewise. - (dwarf2_get_pc_bounds): Likewise. - (mark_common_block_symbol_computed): Likewise. - (abbrev_table_read_table): Add dwarf2_per_objfile parameter. - (dwarf2_read_abbrevs): Update call. - (read_partial_die): Use dwarf2_per_objfile from cu. - (find_partial_die): Likewise. - (fixup_partial_die): Likewise. - (read_attribute_value): Likewise. - (read_indirect_string_at_offset_from): Add objfile parameter. - (read_indirect_string_at_offset): Add dwarf2_per_objfile - parameter. - (read_indirect_string_from_dwz): Add objfile parameter. - (read_indirect_string): Add objfile parameter. - (read_addr_index_1): Add dwarf2_per_objfile parameter. - (read_addr_index): Use dwarf2_per_objfile from cu. - (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't - call dw2_setup. - (read_str_index): Use dwarf2_per_objfile from cu. - (get_debug_line_section): Likewise. - (read_formatted_entries): Add dwarf2_per_objfile parameter. - (dwarf_decode_line_header): Use dwarf2_per_objfile from cu. - (new_symbol_full): Use dwarf2_per_objfile from cu. - (build_error_marker_type): Likewise. - (lookup_die_type): Likewise. - (determine_prefix): Likewise. - (follow_die_offset): Likewise. - (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile. - (dwarf2_fetch_constant_bytes): Don't call dw2_setup. - (dwarf2_fetch_die_type_sect_off): Likewise. - (dwarf2_get_die_type): Likewise. - (follow_die_sig_1): Use dwarf2_per_objfile from cu. - (get_signatured_type): Likewise. - (get_DW_AT_signature_type): Likewise. - (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter. - (dwarf_decode_macros): Use dwarf2_per_objfile from cu. - (cu_debug_loc_section): Likewise. - (fill_in_loclist_baton): Likewise. - (dwarf2_symbol_mark_computed): Likewise. - (dwarf2_find_containing_comp_unit): Change objfile parameter to - dwarf2_per_objfile. - (free_cached_comp_units): Use dwarf2_per_objfile passed in void* - parameter. - (age_cached_comp_units): Add dwarf2_per_objfile parameter. - (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu. - (dwarf2_free_objfile): Use get_dwarf2_per_objfile. - (set_die_type): Use dwarf2_free_objfile from cu. - (get_die_type_at_offset): Likewise. - (dwarf2_per_objfile_free): Don't assign global variable. - (debug_names) <constructor>: Add dwarf2_per_objfile - parameter, update m_debugstrlookup construction. - (debug_names::debug_str_lookup): Add dwarf2_per_objfile - parameter. - <m_dwarf2_per_objfile>: New field. - <lookup>: Use m_dwarf2_per_objfile. - (check_dwarf64_offsets): Add dwarf2_per_objfile parameter. - (psyms_seen_size): Likewise. - (write_gdbindex): Replace objfile parameter with - dwarf2_per_objfile. - (write_debug_names): Likewise. - (write_psymtabs_to_index): Likewise. - (save_gdb_index_command): Use get_dwarf2_per_objfile, update - calls. - -2018-01-07 Simon Marchi <simon.marchi@ericsson.com> - - * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove. - <dwarf2_per_objfile>: New field. - (struct dwarf2_per_cu_data) <objfile>: Remove. - <dwarf2_per_objfile>: New field. - (create_cu_from_index_list): Assign dwarf2_per_objfile instead - of objfile. - (create_signatured_type_table_from_index): Likewise. - (create_debug_type_hash_table): Likewise. - (fill_in_sig_entry_from_dwo_entry): Likewise. - (lookup_dwo_unit): Access objfile through dwarf2_per_objfile. - (create_type_unit_group): Assign dwarf2_per_objfile instead of - objfile. - (create_partial_symtab): Access objfile through - dwarf2_per_objfile. - (process_psymtab_comp_unit_reader): Likewise. - (read_comp_units_from_section): Likewise. - (scan_partial_symbols): Likewise. - (add_partial_symbol): Likewise. - (add_partial_subprogram): Likewise. - (peek_die_abbrev): Likewise. - (fixup_go_packaging): Likewise. - (process_full_comp_unit): Likewise. - (process_full_type_unit): Likewise. - (process_imported_unit_die): Likewise. - (dwarf2_compute_name): Likewise. - (dwarf2_physname): Likewise. - (read_import_statement): Likewise. - (create_cus_hash_table): Assign dwarf2_physname instead of - objfile. - (read_func_scope): Access objfile through dwarf2_per_objfile. - (read_lexical_block_scope): Likewise. - (read_call_site_scope): Likewise. - (read_variable): Likewise. - (dwarf2_rnglists_process): Likewise. - (dwarf2_ranges_process): Likewise. - (dwarf2_ranges_read): Likewise. - (dwarf2_record_block_ranges): Likewise. - (dwarf2_add_field): Likewise. - (dwarf2_add_member_fn): Likewise. - (read_structure_type): Likewise. - (process_structure_scope): Likewise. - (read_enumeration_type): Likewise. - (read_array_type): Likewise. - (read_common_block): Likewise. - (read_namespace_type): Likewise. - (read_namespace): Likewise. - (read_module_type): Likewise. - (read_tag_pointer_type): Likewise. - (read_tag_ptr_to_member_type): Likewise. - (read_tag_string_type): Likewise. - (read_subroutine_type): Likewise. - (read_typedef): Likewise. - (read_base_type): Likewise. - (attr_to_dynamic_prop): Likewise. - (read_subrange_type): Likewise. - (read_unspecified_type): Likewise. - (load_partial_dies): Likewise. - (read_partial_die): Likewise. - (find_partial_die): Likewise. - (guess_partial_die_structure_name): Likewise. - (fixup_partial_die): Likewise. - (read_attribute_value): Likewise. - (read_addr_index_from_leb128): Likewise. - (dwarf2_read_addr_index): Likewise. - (dwarf2_string_attr): Likewise. - (lnp_state_machine::check_line_address): Likewise. - (dwarf_decode_lines_1): Likewise. - (dwarf_decode_lines): Likewise. - (dwarf2_start_symtab): Likewise. - (var_decode_location): Likewise. - (new_symbol_full): Likewise. - (dwarf2_const_value_data): Likewise. - (dwarf2_const_value_attr): Likewise. - (dwarf2_const_value): Likewise. - (die_type): Likewise. - (die_containing_type): Likewise. - (lookup_die_type): Likewise. - (guess_full_die_structure_name): Likewise. - (anonymous_struct_prefix): Likewise. - (dwarf2_name): Likewise. - (follow_die_ref_or_sig): Likewise. - (follow_die_offset): Likewise. - (follow_die_ref): Likewise. - (dwarf2_fetch_die_loc_sect_off): Likewise. - (dwarf2_fetch_constant_bytes): Likewise. - (dwarf2_fetch_die_type_sect_off): Likewise. - (dwarf2_get_die_type): Likewise. - (follow_die_sig): Likewise. - (decode_locdesc): Likewise. - (dwarf2_per_cu_objfile): Likewise. - (dwarf2_per_cu_text_offset): Likewise. - (init_one_comp_unit): Assign dwarf2_per_objfile instead of - objfile. - (set_die_type): Access objfile through - dwarf2_per_objfile. - -2018-01-07 Simon Marchi <simon.marchi@ericsson.com> - - * valprint.c (converted_character_d): Remove typedef. - (DEF_VEC_O (converted_character_d)): Remove. - (count_next_character): Use std::vector. - (print_converted_chars_to_obstack): Likewise. - (generic_printstr): Likewise. - -2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> - - * xml-support.h (struct gdb_xml_value): Add constructor. - <value>: Change type to unique_xmalloc_ptr. - (gdb_xml_value_s): Remove typedef. - (DEF_VEC_O (gdb_xml_value_s)): Remove. - (gdb_xml_element_start_handler): Change parameter type to - std::vector. - (xml_find_attribute): Likewise. - * xml-support.c (xml_find_attribute): Change parameter type to - std::vector and adjust. - (gdb_xml_values_cleanup): Remove. - (gdb_xml_parser::start_element): Adjust to std::vector. - (xinclude_start_include): Change paraeter type to std::vector - and adjust. - * btrace.c (check_xml_btrace_version): Likewise. - (parse_xml_btrace_block): Likewise. - (parse_xml_btrace_pt_config_cpu): Likewise. - (parse_xml_btrace_pt): Likewise. - (parse_xml_btrace_conf_bts): Likewise. - (parse_xml_btrace_conf_pt): Likewise. - * memory-map.c (memory_map_start_memory): Likewise. - (memory_map_start_property): Likewise. - * osdata.c (osdata_start_osdata): Likewise. - (osdata_start_item): Likewise. - (osdata_start_column): Likewise. - * remote.c (start_thread): Likewise. - * solib-aix.c (library_list_start_library): Likewise. - (library_list_start_list): Likewise. - * solib-svr4.c (library_list_start_library): Likewise. - (svr4_library_list_start_list): Likewise. - * solib-target.c (library_list_start_segment): Likewise. - (library_list_start_section): Likewise. - (library_list_start_library): Likewise. - (library_list_start_list): Likewise. - * tracepoint.c (traceframe_info_start_memory): Likewise. - (traceframe_info_start_tvar): Likewise. - * xml-syscall.c (syscall_start_syscall): Likewise. - * xml-tdesc.c (tdesc_start_target): Likewise. - (tdesc_start_feature): Likewise. - (tdesc_start_reg): Likewise. - (tdesc_start_union): Likewise. - (tdesc_start_struct): Likewise. - (tdesc_start_flags): Likewise. - (tdesc_start_enum): Likewise. - (tdesc_start_field): Likewise. - (tdesc_start_enum_value): Likewise. - (tdesc_start_vector): Likewise. - -2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> - - * extension.h (struct xmethod_worker) <clone>: Remove. - * python/py-xmethods.c (struct python_xmethod_worker) <clone>: - Remove. - (python_xmethod_worker::clone): Remove. - * valops.c (find_overload_match): Use std::move instead of - clone. - -2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> - - * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h. - (struct extension_language_ops) <clone_xmethod_worker_data>: Remove. - <free_xmethod_worker_data>: Remove. - <get_matching_xmethod_workers>: Chance VEC to std::vector. - <get_xmethod_arg_types>: Remove. - <get_xmethod_result_type>: Remove. - <invoke_xmethod>: Remove. - * extension.c (new_xmethod_worker): Remove. - (clone_xmethod_worker): Remove. - (get_matching_xmethod_workers): Return void, pass std::vector by - pointer. - (get_xmethod_arg_types): Rename to... - (xmethod_worker::get_arg_types): ... this, and adjust. - (get_xmethod_result_type): Rename to... - (xmethod_worker::get_result_type): ... this, and adjust. - (invoke_xmethod): Remove. - (free_xmethod_worker): Remove. - (free_xmethod_worker_vec): Remove. - * extension.h (enum ext_lang_rc): Move here from - extension-priv.h. - (struct xmethod_worker): Add constructor and destructor. - <data>: Remove. - <value>: Remove. - <invoke, clone, do_get_result_type, do_get_arg_types>: New - virtual pure methods. - <get_arg_types, get_result_type>: New methods. - (xmethod_worker_ptr): Remove typedef. - (DEF_VEC_P (xmethod_worker_ptr)): Remove. - (xmethod_worker_vec): Remove typedef. - (xmethod_worker_up): New typedef. - (invoke_xmethod): Remove. - (clone_xmethod_worker): Remove. - (free_xmethod_worker): Remove. - (free_xmethod_worker_vec): Remove. - (get_xmethod_arg_types): Remove. - (get_xmethod_result_type): Remove. - * valops.c (find_method_list): Use std::vector, don't use - intermediate vector. - (value_find_oload_method_list): Use std::vector. - (find_overload_match): Use std::vector. - (find_oload_champ): Use std::vector. - * value.c (value_free): Use operator delete. - (value_of_xmethod): Rename to... - (value_from_xmethod): ... this. Don't assign - xmethod_worker::value, take rvalue-reference. - (result_type_of_xmethod): Adjust. - (call_xmethod): Adjust. - * value.h: Include extension.h. - (struct xmethod_worker): Don't forward-declare. - (value_of_xmethod): Rename to... - (value_from_xmethod): ... this, take rvalue-reference. - * python/py-xmethods.c (struct gdbpy_worker_data): Rename to... - (struct python_xmethod_worker): ... this, add constructor and - destructor. - <invoke, clone, do_get_arg_types, do_get_result_type>: Implement. - (gdbpy_free_xmethod_worker_data): Rename to... - (python_xmethod_worker::~python_xmethod_worker): ... this and - adjust. - (gdbpy_clone_xmethod_worker_data): Rename to... - (python_xmethod_worker::clone): ... this and adjust. - (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use - temporary vector. - (gdbpy_get_xmethod_arg_types): Rename to... - (python_xmethod_worker::do_get_arg_types): ... this and adjust. - (gdbpy_get_xmethod_result_type): Rename to... - (python_xmethod_worker::do_get_result_type): ... this and - adjust. - (gdbpy_invoke_xmethod): Rename to... - (python_xmethod_worker::invoke): ... this and adjust. - (new_python_xmethod_worker): Rename to... - (python_xmethod_worker::python_xmethod_worker): ... this and - adjust. - * python/python-internal.h (gdbpy_clone_xmethod_worker_data): - Remove. - (gdbpy_free_xmethod_worker_data): Remove. - (gdbpy_get_matching_xmethod_workers): Use std::vector. - (gdbpy_get_xmethod_arg_types): Remove. - (gdbpy_get_xmethod_result_type): Remove. - (gdbpy_invoke_xmethod): Remove. - * python/python.c (python_extension_ops): Remove obsolete - callbacks. - -2018-01-05 Pedro Alves <palves@redhat.com> - - PR gdb/18653 - * common/signals-state-save-restore.c - (save_original_signals_state): New parameter 'quiet'. Warn if we - find a custom handler preinstalled, instead of internal erroring. - But only warn if !quiet. - * common/signals-state-save-restore.h - (save_original_signals_state): New parameter 'quiet'. - * main.c (captured_main_1): Move save_original_signals_state call - after option handling, and pass QUIET. - -2018-01-05 Pedro Alves <palves@redhat.com> - - * spu-tdep.c (spu_catch_start): Pass - symbol_name_match_type::SEARCH_NAME to block_lookup_symbol. - -2018-01-05 Pedro Alves <palves@redhat.com> - - PR gdb/22670 - * ada-lang.c (literal_symbol_name_matcher): New function. - (ada_get_symbol_name_matcher): Use it for - symbol_name_match_type::SEARCH_NAME. - * block.c (block_lookup_symbol): New parameter 'match_type'. Pass - it down instead of assuming symbol_name_match_type::FULL. - * block.h (block_lookup_symbol): New parameter 'match_type'. - * c-valprint.c (print_unpacked_pointer): Use - lookup_symbol_search_name instead of lookup_symbol. - * compile/compile-object-load.c (get_out_value_type): Pass down - symbol_name_match_type::SEARCH_NAME. - * cp-namespace.c (cp_basic_lookup_symbol): Pass down - symbol_name_match_type::FULL. - * cp-support.c (cp_get_symbol_name_matcher): Handle - symbol_name_match_type::SEARCH_NAME. - * infrun.c (insert_exception_resume_breakpoint): Use - lookup_symbol_search_name. - * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name. - * psymtab.c (maintenance_check_psymtabs): Use - symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME. - * stack.c (print_frame_args): Use lookup_symbol_search_name and - SYMBOL_SEARCH_NAME. - * symtab.c (lookup_local_symbol): Don't demangle the lookup name - if symbol_name_match_type::SEARCH_NAME. - (lookup_symbol_in_language): Pass down - symbol_name_match_type::FULL. - (lookup_symbol_search_name): New. - (lookup_language_this): Pass down - symbol_name_match_type::SEARCH_NAME. - (lookup_symbol_aux, lookup_local_symbol): New parameter - 'match_type'. Pass it down. - * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator. - (lookup_symbol_search_name): New declaration. - (lookup_symbol_in_block): New 'match_type' parameter. - -2018-01-05 Pedro Alves <palves@redhat.com> - - PR gdb/22670 - * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of - ada_lookup_symbol. - (ada_lookup_symbol): Reimplement in terms of - ada_lookup_symbol_list, bits factored out from - ada_lookup_encoded_symbol. - -2018-01-05 Joel Brobecker <brobecker@adacore.com> - - * ada-exp.y (write_object_renaming): When subscripting an array - using a symbol as the index, pass the block in call to - ada_lookup_encoded_symbol when looking that symbol up. - -2018-01-05 Jerome Guitton <guitton@adacore.com> - - * ada-lang.c (ada_array_length): Use ada_index_type instead of - TYPE_INDEX_TYPE. - -2018-01-05 Joel Brobecker <brobecker@adacore.com> - - * ada-lang.c (ada_to_fixed_value_create): Add handling of - the case where VALUE_LVAL (val0) is not lval_memory. - -2018-01-05 Xavier Roirand <roirand@adacore.com> - - * ada-valprint.c (print_optional_low_bound): Handle - character-indexed array printing like boolean-indexed array - printing. - -2018-01-05 Joel Brobecker <brobecker@adacore.com> - - * NEWS: Create a new section for the next release branch. - Rename the section of the current branch, now that it has - been cut. - -2018-01-05 Joel Brobecker <brobecker@adacore.com> - - GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7): - * version.in: Bump version to 8.1.50.DATE-git. - -2018-01-03 Xavier Roirand <roirand@adacore.com> - - * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>: - Add field. - * ada-lang.c (struct exception_support_info) <catch_handlers_sym>: - Add field. - (default_exception_support_info) <catch_handlers_sym>: Add field. - (exception_support_info_fallback) <catch_handlers_sym>: Add field. - (ada_exception_name_addr_1): Add "catch handlers" handling. - (ada_exception_catchpoint_cond_string) <ex>: New parameter. - Update all callers. - (create_excep_cond_exprs) <ex>: Add parameter. - (re_set_exception): Update create_excep_cond_exprs call. - (print_it_exception, print_one_exception, print_mention_exception) - (print_recreate_exception): Add "catch handler" handling. - (allocate_location_catch_handlers, re_set_catch_handlers) - (check_status_catch_handlers, print_it_catch_handlers) - (print_one_catch_handlers, print_mention_catch_handlers) - (print_recreate_catch_handlers): New function. - (catch_handlers_breakpoint_ops): New variable. - (catch_ada_exception_command_split) <is_catch_handlers_cmd>: - Add parameter. Add "catch handler" handling. - (ada_exception_sym_name, ada_exception_breakpoint_ops): - Add "catch handler" handling. - (ada_exception_catchpoint_cond_string): Add "catch handler" - handling. - (create_ada_exception_catchpoint): Update create_excep_cond_exprs - call. - (catch_ada_handlers_command): New function. - (initialize_ada_catchpoint_ops): Initialize "catch handlers" - operations structure. - (_initialize_ada_language): Add "catch handlers" command entry. - * NEWS: Document "catch handlers" feature. - -2018-01-02 Joel Brobecker <brobecker@adacore.com> - - * ada-lang.c (ada_value_slice_from_ptr): Take array stride into - account when creating the array type of the slice. - (ada_value_slice): Likewise. - -2018-01-02 Joel Brobecker <brobecker@adacore.com> - - * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>: - New enum value. - (create_array_type_with_stride): Add byte_stride_prop parameter. - * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>: - New parameter. Update all callers in this file. - (array_type_has_dynamic_stride): New function. - (is_dynamic_type_internal, resolve_dynamic_array): Add handling - of arrays with dynamic byte strides. - * dwarf2read.c (read_array_type): Add support for dynamic - DW_AT_byte_stride attributes. - -2018-01-02 Joel Brobecker <brobecker@adacore.com> - - * dwarf2read.c (read_unspecified_type): Treat - DW_TAG_enumeration_type DIEs from Ada units as stubs. - -2018-01-01 Joel Brobecker <brobecker@adacore.com> - - Update copyright year range in all GDB files. - -2018-01-01, 18 Joel Brobecker <brobecker@adacore.com> - - * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp - and gdb/testsuite/gdb.base/step-line.c. - -2018-01-01 Joel Brobecker <brobecker@adacore.com> - - * copyright.py (main): Dump the contents of - MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND, - even if BY_HAND is empty. - -2018-01-01 Joel Brobecker <brobecker@adacore.com> - - * top.c (print_gdb_version): Update Copyright year in version - message. - -2018-01-01 Joel Brobecker <brobecker@adacore.com> - - * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017. - -For older changes see ChangeLog-2017. +For older changes see ChangeLog-2018. Local Variables: mode: change-log @@ -17194,3 +11,4 @@ fill-column: 74 version-control: never coding: utf-8 End: + diff --git a/gdb/ChangeLog-2018 b/gdb/ChangeLog-2018 new file mode 100644 index 0000000..2f21e3f --- /dev/null +++ b/gdb/ChangeLog-2018 @@ -0,0 +1,17196 @@ +2018-12-31 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * top.c (command_line_input): Use unique_xmalloc_ptr to + manage memory allocated by readline. + +2018-12-30 Tom Tromey <tom@tromey.com> + + * event-top.h (command_line_handler): Update. + * top.c (class gdb_readline_wrapper_cleanup) <m_handler_orig>: + Update. + (gdb_readline_wrapper_line): Update. + * top.h (struct ui) <input_handler>: Take a unique_xmalloc_ptr. + (handle_line_of_input): Update. + * event-top.c: Update. + (gdb_readline_no_editing_callback): Update. + (command_line_handler): Take a unique_xmalloc_ptr. + (handle_line_of_input): Take a const char *. + (command_line_append_input_line): Take a const char *. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * source-cache.c (get_language_name): Conditionally compile. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * jit.c (free_objfile_data): Only delete breakpoint if non-null. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * NEWS: Mention terminal styling. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * utils.h (can_emit_style_escape): Declare. + * utils.c (can_emit_style_escape): No longer static. + * cli/cli-style.c (set_style_enabled): New function. + (_initialize_cli_style): Use it. + * tui/tui-winsource.c (tui_show_source_line): Use tui_puts. + (tui_alloc_source_buffer): Change how source lines are allocated. + * tui/tui-source.c (copy_source_line): New function. + (tui_set_source_content): Use source cache. + * tui/tui-io.h (tui_puts): Update. + * tui/tui-io.c (tui_puts_internal): Add window parameter. + (tui_puts): Likewise. + (tui_redisplay_readline): Update. + * tui/tui-data.c (free_content_elements): Change how source window + contents are freed. + * source.c (forget_cached_source_info): Clear the source cache. + (print_source_lines_base): Use the source cache. + * source-cache.h: New file. + * source-cache.c: New file. + * configure.ac: Check for GNU Source Highlight library. + * configure: Update. + * config.in: Update. + * Makefile.in (SRCHIGH_LIBS, SRCHIGH_CFLAGS): New variables. + (INTERNAL_CFLAGS_BASE): Add SRCHIGH_CFLAGS. + (CLIBS): Add SRCHIGH_LIBS. + (COMMON_SFILES): Add source-cache.c. + (HFILES_NO_SRCDIR): Add source-cache.h. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * tui/tui-winsource.c (tui_show_source_line): Use wclrtoeol. + +2018-12-28 Tom Tromey <tom@tromey.com> + + PR tui/14126: + * tui/tui.c (tui_enable): Call start_color and + use_default_colors. + * tui/tui-io.c (struct color_pair): New. + (color_pair_map, last_color_pair, last_style): New globals. + (tui_setup_io): Clean up color map when shutting down. + (curses_colors): New constant. + (get_color_pair, apply_ansi_escape): New functions. + (tui_write): Rewrite. + (tui_puts_internal): New function, from tui_puts. Add "height" + parameter. + (tui_puts): Use tui_puts_internal. + (tui_redisplay_readline): Use tui_puts_internal. + (_initialize_tui_io): New function. + (color_map): New globals. + (get_color): New function. + * configure.ac: Check for use_default_colors. + * config.in, configure: Rebuild. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * ui-out.h (enum class ui_out_style_kind) <ADDRESS>: New + constant. + * ui-out.c (ui_out::field_core_addr): Add styling. + * stack.c (print_frame): Add styling. + * printcmd.c (print_address): Add styling. + (print_address_demangle, info_address_command): Likewise. + * cli/cli-style.h (address_style): Declare. + * cli/cli-style.c (address_style): New global. + (_initialize_cli_style): Register new commands. + * cli-out.c (cli_ui_out::do_field_string): Update. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * symfile.c (symbol_file_add_with_addrs): Style file name. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * top.c (print_gdb_version): Style gdb version number. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * printcmd.c (print_address_symbolic): Style function name. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * breakpoint.c (say_where): Style file name. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * ui-out.h (enum class ui_out_style_kind) <VARIABLE>: New global. + * stack.c (print_frame_arg): Style name. + * printcmd.c (print_variable_and_value): Style variable name. + * cli/cli-style.h (variable_name_style): Declare. + * cli/cli-style.c (variable_name_style): New global. + (_initialize_cli_style): Update. + * cli-out.c (cli_ui_out::do_field_string): Update. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * utils.h (reset_terminal_style): Declare. + * utils.c (can_emit_style_escape): New function. + (set_output_style): Use it. + (reset_terminal_style): New function. + * printcmd.c (printf_command): Call reset_terminal_style. + * cli/cli-cmds.c (echo_command): Call reset_terminal_style. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * utils.h (set_output_style, fprintf_styled) + (fputs_styled): Declare. + * utils.c (applied_style, desired_style): New globals. + (emit_style_escape, set_output_style): New function. + (prompt_for_continue): Emit style escapes. + (fputs_maybe_filtered): Likewise. + (fputs_styled, fprintf_styled): New functions. + * ui-out.h (enum class ui_out_style_kind): New. + (class ui_out) <field_string, field_stream, do_field_string>: Add + style parameter. + * ui-out.c (ui_out::field_stream, ui_out::field_string): Add style + parameter. + * tui/tui-out.h (class tui_ui_out) <do_field_string>: Add style + parameter. + * tui/tui-out.c (tui_ui_out::do_field_string): Add style + parameter. + (tui_ui_out::do_field_string): Update. + * tracepoint.c (print_one_static_tracepoint_marker): Style + output. + * stack.c (print_frame_info, print_frame): Style output. + * source.c (print_source_lines_base): Style output. + * skip.c (info_skip_command): Style output. + * record-btrace.c (btrace_call_history_src_line): Style output. + (btrace_call_history): Likewise. + * python/py-framefilter.c (py_print_frame): Style output. + * mi/mi-out.h (class mi_ui_out) <do_field_string>: Add style + parameter. + * mi/mi-out.c (mi_ui_out::do_table_header) + (mi_ui_out::do_field_int): Update. + (mi_ui_out::do_field_string): Update. + * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): + Style output. + * cli/cli-style.h: New file. + * cli/cli-style.c: New file. + * cli-out.h (class cli_ui_out) <do_field_string>: Add style + parameter. + * cli-out.c (cli_ui_out::do_table_header) + (cli_ui_out::do_field_int, cli_ui_out::do_field_skip): Update. + (cli_ui_out::do_field_string): Add style parameter. Style the + output. + * breakpoint.c (print_breakpoint_location): Style output. + (update_static_tracepoint): Likewise. + * Makefile.in (SUBDIR_CLI_SRCS): Add cli-style.c. + (HFILES_NO_SRCDIR): Add cli-style.h. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * unittests/style-selftests.c: New file. + * ui-style.c: New file. + * ui-style.h: New file. + * ui-file.h: Include ui-style.h. + * Makefile.in (COMMON_SFILES): Add ui-style.c. + (HFILES_NO_SRCDIR): Add ui-style.h. + (SUBDIR_UNITTESTS_SRCS): Add style-selftests.c. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * command.h (add_setshow_enum_cmd): Add "context" argument. + * cli/cli-decode.c (add_setshow_enum_cmd): Add "context" + argument. Call set_cmd_context. + +2018-12-28 Tom Tromey <tom@tromey.com> + + * utils.c (filter_initialized): New global. + (wrap_buffer): Now a std::string. + (wrap_pointer): Remove. + (flush_wrap_buffer): New function. + (filtered_printing_initialized, set_width, wrap_here) + (fputs_maybe_filtered): Update. + +2018-12-28 Eli Zaretskii <eliz@gnu.org> + + * coffread.c (coff_symtab_read): Don't record in minsyms symbols + that are unresolved. This avoids triggering an internal error + when stepping outside of 'main' in MinGW programs. + +2018-12-27 Tom Tromey <tom@tromey.com> + + * python/py-utils.c (gdbpy_handle_exception): Translate + PyExc_KeyboardInterrupt to quit. + +2018-12-27 Tom Tromey <tom@tromey.com> + + * python/python-internal.h (gdbpy_print_stack_or_quit): Declare. + * python/py-unwind.c (pyuw_sniffer): Use + gdbpy_print_stack_or_quit. + * python/py-framefilter.c (throw_quit_or_print_exception): + Remove. + (gdbpy_apply_frame_filter): Use gdbpy_print_stack_or_quit. + * python/python.c (gdbpy_print_stack_or_quit): New function. + +2018-12-27 Tom Tromey <tom@tromey.com> + + * python/py-value.c (convert_value_from_python): Use + gdbpy_convert_exception. + * python/py-param.c (parmpy_init): Use gdbpy_convert_exception. + * python/py-cmd.c (cmdpy_init): Use gdbpy_convert_exception. + * python/py-breakpoint.c (bppy_init): Use + gdbpy_convert_exception. + +2018-12-27 Tom Tromey <tom@tromey.com> + + * configure.nat (NATDEPFILES): Use nat/ prefix. + * Makefile.in (CONFIG_SRC_SUBDIR): Add nat. + (%.o: ${srcdir}/nat/%.c): Remove rule. + (INIT_FILES): Do not filter out NATDEPFILES. + +2018-12-27 Tom Tromey <tom@tromey.com> + + * Makefile.in (INIT_FILES): Redefine. + (stamp-init): Remove sed, tr invocations. Use for loop. Don't + set LANG or LC_ALL. + +2018-12-27 Tom Tromey <tom@tromey.com> + + * Makefile.in (stamp-init): Remove gdbtypes special case. + +2018-12-27 John Baldwin <jhb@FreeBSD.org> + + * config/i386/nm-fbsd.h: Remove file. + * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-fbsd.h. + * configure.nat: Remove NAT_FILE for FreeBSD/i386. + +2018-12-27 Tom Tromey <tom@tromey.com> + + * minsyms.h (class minimal_symbol_reader): Use + DISABLE_COPY_AND_ASSIGN. + +2018-12-27 Tom Tromey <tom@tromey.com> + + * python/python.c (python_interactive_command): Use std::string. + (gdbpy_parameter): Likewise. + * python/py-utils.c (unicode_to_encoded_string): Update comment. + * python/py-symtab.c (salpy_str): Use PyString_FromFormat. + * python/py-record-btrace.c (recpy_bt_insn_data): Use + byte_vector. + * python/py-objfile.c (objfpy_get_build_id): Use + unique_xmalloc_ptr. + * python/py-inferior.c (infpy_read_memory): Use + unique_xmalloc_ptr. + * python/py-cmd.c (gdbpy_parse_command_name): Use std::string. + +2018-12-26 Simon Marchi <simon.marchi@polymtl.ca> + + * target.c (target_terminal::restore_inferior): Remove struct keyword. + +2018-12-26 Simon Marchi <simon.marchi@ericsson.com> + + * build-id.c (build_id_to_debug_bfd): Enhance debug output. + * symfile.c (separate_debug_file_exists): Likewise. + +2018-12-24 Andrew Burgess <andrew.burgess@embecosm.com> + + * c-exp.y (field_name): Allow DOUBLE_KEYWORD, INT_KEYWORD, LONG, + SHORT, SIGNED_KEYWORD, and UNSIGNED tokens to act as a field + names. + (typename_stoken): New function. + +2018-12-24 Andrew Burgess <andrew.burgess@embecosm.com> + + * c-exp.y (field_name): New %token, and new rule. + (exp): Replace uses of 'name' with 'field_name' where appropriate. + +2018-12-24 Andrew Burgess <andrew.burgess@embecosm.com> + + PR gdb/13368 + * c-exp.y (typebase): Extend the comment. + (ident_tokens): Likewise. + +2018-12-18 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (dwarf2_find_containing_comp_unit): Don't take + address of sect_off. + +2018-12-23 Joel Brobecker <brobecker@adacore.com> + + GDB 8.2.1 released. + +2018-12-22 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_call_arg_struct): Don't adjust size before + assigning locations. + (riscv_return_value): Take more care not to read/write outside of + argument buffer. Cast return value between the declared type and + the abi type. + +2018-12-22 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_register_reggroup_p): Save and restore fcsr, + fflags, and frm registers. + +2018-12-22 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_dwarf_reg_to_regnum): New function. + (riscv_gdbarch_init): Register new function with gdbarch. + * riscv-tdep.h: New enum to define RISC-V DWARF register numbers. + +2018-12-21 Simon Marchi <simon.marchi@ericsson.com> + + * minsyms.c (mst_str): New. + (minimal_symbol_reader::record_full): Add debug output. + +2018-12-21 John Baldwin <jhb@FreeBSD.org> + + * fbsd-nat.c (fbsd_handle_debug_trap): Require pl.pl_flags to + equal PL_FLAG_SI. + (fbsd_nat_target::stopped_by_sw_breakpoint): Likewise. + +2018-12-21 Paul Marechal <paul.marechal@ericsson.com> + + PR gdb/23974 + * target.c (target_read_stralloc): Check for empty vector. + +2018-12-21 Дилян Палаузов <dilyan.palauzov@aegee.org> + + * top.c (print_gdb_configuration): Print "--without-python" + if GDB was configured without Python. + +2018-12-21 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_scan_prologue): Use plongest to format + a signed offset as a string. + +2018-12-21 Dave Murphy <davem@devkitpro.org> + + * dtrace-probe.c (dtrace_static_probe_ops): Explicit zero + initialise. + * probe.c (any_static_probe_ops): Ditto. + * record-btrace.c (record_btrace_thread_observer_token): Ditto. + * stap-probe.c (stap_static_probe_ops): Ditto. + * tui/tui-hooks.c (tui_observers_token): Ditto. + * unittests/observable-selftests.c (token1, token2, token3): Ditto. + +2018-12-19 Andrew Burgess <andrew.burgess@embecosm.com> + + * gdb/dummy-frame.c (default_dummy_id): Defined new function. + * gdb/dummy-frame.h (default_dummy_id): Declare new function. + * gdb/frame-unwind.c (default_unwind_pc): Define new function. + (default_unwind_sp): Define new function. + * gdb/frame-unwind.h (default_unwind_pc): Declare new function. + (default_unwind_sp): Declare new function. + * gdb/frame.c (frame_unwind_pc): Assume gdbarch_unwind_pc is + available. + (get_frame_sp): Assume that gdbarch_unwind_sp is available. + * gdb/gdbarch.c: Regenerate. + * gdb/gdbarch.h: Regenerate. + * gdb/gdbarch.sh: Update definition of dummy_id, unwind_pc, and + unwind_sp. Add additional header files to be included in + generated file. + +2018-12-19 Dimitar Dimitrov <dimitar@dinux.eu> + + * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Remove + sp clobbers. + +2018-12-17 Andrew Burgess <andrew.burgess@embecosm.com> + + * dwarf2read.c (struct dwarf2_cu): Convert the fields 'mark', + 'has_loclist', 'checked_producer', 'producer_is_gxx_lt_4_6', + 'producer_is_gcc_lt_4_3', 'producer_is_icc_lt_14', + 'processing_has_namespace_info' from unsigned int to bool. Update + comments. + (producer_is_icc_lt_14): Update return type. + (producer_is_gcc_lt_4_3): Likewise. + (producer_is_gxx_lt_4_6): Likewise. + (process_die): Write true instead of 1 into predicate fields. + (dwarf2_start_symtab): Likewise. + (var_decode_location): Likewise. + (dwarf2_mark_helper): Likewise. + (dwarf2_mark): Likewise. + (dwarf2_clear_marks): Write false instead of 0 into predicate + field. + (dwarf2_cu::dwarf2_cu): Initialise predicate fields to false, not + 0. + +2018-12-17 Szabolcs Nagy <szabolcs.nagy@arm.com> + + * nat/aarch64-sve-linux-ptrace.h: Include signal.h instead of + asm/sigcontext.h. + +2018-12-17 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * nat/linux-ptrace.c (kill_child): Fix ARI warning by removing + warning trailing new line. + +2018-12-16 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * nat/linux-ptrace.c (kill_child): New function. + (linux_ptrace_test_ret_to_nx): Use kill_child instead of local code. + Add a call to kill_child in case of early return after fork. + (linux_check_ptrace_features): Use kill_child instead of local code. + (linux_test_for_tracefork): Likewise. + +2018-12-14 Tom Tromey <tom@tromey.com> + + * Makefile.in: Remove "alloca" comment. + (INFOFILES): Remove. + (local-maintainer-clean): Don't use INFOFILES. + +2018-12-13 John Baldwin <jhb@FreeBSD.org> + + * syscalls/update-freebsd.sh: New file. + * syscalls/freebsd.xml: Regenerate. + +2018-12-13 John Baldwin <jhb@FreeBSD.org> + + * NEWS: Add entry documenting system call aliases. + * break-catch-syscall.c (catch_syscall_split_args): Pass 'result' + to get_syscalls_by_name. + * gdbarch.sh (UNKNOWN_SYSCALL): Remove. + * gdbarch.h: Regenerate. + * syscalls/gdb-syscalls.dtd (syscall): Add alias attribute. + * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_name): Rename + from get_syscall_by_name. Now accepts a pointer to a vector of + integers and returns a bool. + [HAVE_LIBEXPAT] (struct syscall_desc): Add alias member. + (syscall_create_syscall_desc): Add alias parameter and pass it to + syscall_desc constructor. + (syscall_start_syscall): Handle alias attribute. + (syscall_attr): Add alias attribute. + (xml_get_syscalls_by_name): Rename from xml_get_syscall_number. + Now accepts a pointer to a vector of integers and returns a + bool. Add syscalls whose alias or name matches the requested + name. + (get_syscalls_by_name): Rename from get_syscall_by_name. Now + accepts a pointer to a vector of integers and returns a bool. + * xml-syscall.h (get_syscalls_by_name): Likewise. + +2018-12-13 John Baldwin <jhb@FreeBSD.org> + + * break-catch-syscall.c (catch_syscall_split_args): Pass 'result' + to get_syscalls_by_group. + * xml-syscall.c [!HAVE_LIBEXPAT] (get_syscalls_by_group): Return + false. + [HAVE_LIBEXPAT] (xml_list_syscalls_by_group): Append syscall + numbers to an existing vector of integers and return a bool. + (get_syscalls_by_group): Accept pointer to vector of integers + and change return type to bool. + * xml-syscall.h (get_syscalls_by_group): Likewise. + +2018-12-13 Jim Wilson <jimw@sifive.com> + + * riscv-tdep.c (riscv_print_one_register_info): For MSTATUS, add + comment for SD field, and correct xlen calculation. For MISA, add + comment for MXL field, add call to register_size, and correct base + calculation. + +2018-12-13 Stafford Horne <shorne@gmail.com> + + * NEWS(New targets): Add or1k*-*-linux*. + +2018-12-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * nat/linux-osdata.c (linux_xfer_osdata_info_os_types): Forward + declare on one line to fix ARI warning. + +2018-12-12 Andrew Burgess <andrew.burgess@embecosm.com> + + * infrun.c (infcall_suspend_state::infcall_suspend_state): New. + (infcall_suspend_state::registers): New. + (infcall_suspend_state::restore): New. + (infcall_suspend_state::thread_suspend): Rename to... + (infcall_suspend_state::m_thread_suspend): ...this. + (infcall_suspend_state::registers): Rename to... + (infcall_suspend_state::m_registers): ...this. + (infcall_suspend_state::siginfo_gdbarch): Rename to... + (infcall_suspend_state::m_siginfo_gdbarch): ...this. + (infcall_suspend_state::siginfo_data): Rename to... + (infcall_suspend_state::m_siginfo_data): ...this. + (save_infcall_suspend_state): Rewrite to use infcall_suspend_state + constructor. + (restore_infcall_suspend_state): Rewrite to use + infcall_suspend_state::restore method. + (get_infcall_suspend_state_regcache): Use + infcall_suspend_state::registers method. + +2018-12-12 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_call_arg_scalar_float): Unnamed (variadic) + arguments are passed in integer registers. + (riscv_call_arg_complex_float): Likewise. + +2018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * nat/linux-osdata.c (common_getter): New function. + (struct osdata_type): Change getter to take_snapshot. + Add LONGEST len_avail and struct buffer buffer. + Change all elements in the initializer. + Add an element for the list of types. + (linux_xfer_osdata_info_os_types): New function. + (linux_common_xfer_osdata): Use common_getter for the list of types. + Replace getter call by common_getter. + (linux_xfer_osdata_cpus): Remove args READBUF, OFFSET, LEN. + Add arg BUFFER. Only keep the code that adds data in BUFFER. + (linux_xfer_osdata_fds): Likewise. + (linux_xfer_osdata_modules): Likewise. + (linux_xfer_osdata_msg): Likewise. + (linux_xfer_osdata_processes): Likewise. + (linux_xfer_osdata_processgroups): Likewise. + (linux_xfer_osdata_sem): Likewise. + (linux_xfer_osdata_shm): Likewise. + (linux_xfer_osdata_isockets): Likewise. + (linux_xfer_osdata_threads): Likewise. + +2018-12-11 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * nat/linux-osdata.c: Removed various trailing spaces. + +2018-12-10 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_register_name): Fix ARI warning by removing + leading whitespace before #include line. + +2018-12-08 Simon Marchi <simon.marchi@ericsson.com> + Дилян Палаузов <dilyan.palauzov@aegee.org> + + PR gdb/23950 + * configure.ac: Search for tgetent in libtinfow. + * configure: Re-generate. + +2018-12-08 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * linux-thread-db.c (struct thread_db_info): Add td_ta_delete_p. + (thread_db_err_str): Forward declare. + (delete_thread_db_info): Call td_ta_delete_p if available. + (try_thread_db_load_1): Acquire td_ta_delete address. + * nat/gdb_thread_db.h (td_ta_delete_ftype): Declare. + +2018-12-08 Pedro Alves <palves@redhat.com> + + * source.c (forward_search_command): Rename to ... + (search_command_helper): ... this. Add 'forward' parameter. + Tweak to use a gdb::def_vector<char> instead of a xrealloc'ed + buffer. Handle backward searches too. + (forward_search_command, reverse_search_command): Reimplement by + calling search_command_helper. + +2018-12-07 Andrew Burgess <andrew.burgess@embecosm.com> + + * .dir-locals.el: Copy most of the settings from c-mode over to + c++-mode. + +2018-12-08 Stafford Horne <shorne@gmail.com> + + * Makefile.in (ALL_TARGET_OBS): Add or1k-linux-tdep.o. + * configure.tgt: Add or1k*-*-linux*. + * or1k-linux-tdep.c: New file. + * or1k-tdep.c (or1k_gdbarch_init): Call gdbarch_init_osabi. + +2018-12-07 Pedro Alves <palves@redhat.com> + + * dwarf2read.c (get_gdb_index_contents_from_section): Use + gdb::make_array_view. + +2018-12-05 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * language.c (_initialize_language): Fix leak by assigning + a static string to language. Same for range and case_sensitive, + even if no leak is detected for these variables. + +2018-12-05 John Baldwin <jhb@FreeBSD.org> + + * configure: Re-generate. + * configure.ac: Use separate sed expressions to escape variables + in auto-load directories. + +2018-12-05 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_features_from_gdbarch_info): New function. + (riscv_find_default_target_description): Use new function to + extract feature from gdbarch_info. + (riscv_gdbarch_init): Add error checks for xlen and flen between + target description and bfd headers. Be smarter about when we + think the hardware floating point abi should be used. + +2018-12-05 Alan Hayward <alan.hayward@arm.com> + + * nat/aarch64-linux-hw-point.c + (aarch64_linux_any_set_debug_regs_state): New function. + * nat/aarch64-linux-hw-point.h + (aarch64_linux_any_set_debug_regs_state): New declaration. + * nat/aarch64-linux.c (aarch64_linux_new_thread): Check if any + BPs or WPs are set. + +2018-11-30 John Baldwin <jhb@FreeBSD.org> + + * common/filestuff.c [HAVE_KINFO_GETFILE]: Include headers. + (fdwalk) [HAVE_KINFO_GETFILE]: Use kinfo_getfile. + +2018-11-30 Philippe Waroquiers <philippe.waroquiers@skynet.be> + Simon Marchi <simon.marchi@ericsson.com> + + * linespec.c (symtab_vector_up): Remove. + (symtabs_from_filename): Change return type to std::vector. + (collect_symtabs_from_filename): Likewise. + (create_sals_line_offset): Assign return value of + collect_symtabs_from_filename to *ls->file_symtabs. + (convert_explicit_location_to_linespec): Remove call to release. + (parse_linespec): Likewise. + (symtab_collector) <symtab_collector>: Remove initialization of + m_symtabs. + <release_symtabs>: Change return type to std::vector<symtab *>. + <operator ()>: Adjust. + +2018-11-30 John Baldwin <jhb@FreeBSD.org> + + * fbsd-nat.c [__FreeBSD_version >= 700009] (USE_SIGINFO): Macro + defined. + (union sigval32, struct siginfo32, fbsd_siginfo_size) + (fbsd_convert_siginfo): Make conditional on USE_SIGINFO instead + of KERN_PROC_AUXV and PT_LWPINFO. + (fbsd_nat_target::xfer_partial): Define method unconditionally. + Make TARGET_OBJECT_SIGNAL_INFO conditional on USE_SIGINFO. + Make TARGET_OBJECT_AUXV conditional on KERN_PROC_AUXV. + Make TARGET_OBJECT_FREEBSD_VMMAP and + TARGET_OBJECT_FREEBSD_PS_STRINGS conditional on KERN_PROC_VMMAP + and KERN_PROC_PS_STRINGS. + * fbsd-nat.h: Include <sys/proc.h>. + (fbsd_nat_target::xfer_partial): Declare method unconditionally. + +2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-linux-nat.c: Add 'inferior.h' and 'target-descriptions.h' + header files. + (riscv_linux_nat_target::read_description): New method. + +2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com> + + * arch/riscv.h (riscv_gdbarch_features::hash): New method. + * arch/riscv.c (struct riscv_gdbarch_features_hasher): New. + (riscv_tdesc_cache): New global. + (riscv_create_target_description): Look in the cache before + creating a new target description. + +2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com> + + * arch/riscv.h (riscv_gdb_features::operator==): New. + (riscv_gdb_features::operator!=): New. + * riscv-tdep.c (riscv_gdbarch_init): Make use of the inequality + operator. + +2018-11-30 Andrew Burgess <andrew.burgess@embecosm.com> + + * arch/riscv.h (riscv_create_target_description): Make return type + const. + * arch/riscv.c (riscv_create_target_description): Likewise. + * riscv-tdep.c (riscv_find_default_target_description): Likewise. + +2018-11-30 Jan Kratochvil <jan.kratochvil@redhat.com> + Keith Seitz <keiths@redhat.com> + Tom Tromey <tom@tromey.com> + Sergio Durigan Junior <sergiodj@redhat.com> + + https://bugzilla.redhat.com/show_bug.cgi?id=1613614 + * dwarf2read.c (dwarf2_find_containing_comp_unit): Add + 'mid_cu->length' to '*cu_off' when checking if 'sect_off' is + inside the CU. + +2018-11-30 Pedro Alves <palves@redhat.com> + + * aix-thread.c (aix_thread_target) <aix_thread_target>: Delete. + <stratum>: New override. + * bfd-target.c (aix_thread_target) <aix_thread_target>: Delete. + <stratum>: New override. + * bsd-uthread.c (bsd_uthread_target) <bsd_uthread_target>: Delete. + <stratum>: New override. + * exec.c (exec_target) <exec_target>: Delete. + <stratum>: New override. + * gdbarch-selftests.c (register_to_value_test): Adjust to use the + stratum method instead of the to_stratum field. + * linux-thread-db.c (thread_db_target) <thread_db_target>: Delete. + <stratum>: New override. + (thread_db_target::thread_db_target): Delete. + * make-target-delegates (print_class): Don't print a ctor + declaration. Print a stratum method override declaration. + * process-stratum-target.h (process_stratum_target) + <process_stratum_target>: Delete. + <stratum>: New override. + * ravenscar-thread.c (ravenscar_thread_target) + <ravenscar_thread_target>: Delete. + <stratum>: New override. + * record-btrace.c (record_btrace_target) + <record_btrace_target>: Delete. + <stratum>: New override. + * record-full.c (record_full_base_target) + <record_full_base_target>: Delete. + <stratum>: New override. + * record.c (record_disconnect, record_detach) + (record_mourn_inferior, record_kill): Adjust to use the stratum + method instead of the to_stratum field. + * regcache.c (cooked_read_test, cooked_write_test): Likewise. + * sol-thread.c (sol_thread_target) + <sol_thread_target>: Delete. + <stratum>: New override. + * spu-multiarch.c (spu_multiarch_target) + <spu_multiarch_target>: Delete. + <stratum>: New override. + * target-delegates.c: Regenerate. + * target.c (target_stack::push, target_stack::unpush) + (pop_all_targets_above, pop_all_targets_at_and_above) + (info_target_command, target_require_runnable) + (target_stack::find_beneath): Adjust to use the stratum method + instead of the to_stratum field. + (dummy_target::dummy_target): Delete. + (dummy_target::stratum): New. + (debug_target::debug_target): Delete. + (debug_target::stratum): New. + (maintenance_print_target_stack): Adjust to use the stratum method + instead of the to_stratum field. + * target.h (struct target_ops) <stratum>: New method. + <to_stratum>: Delete. + <is_pushed>: Adjust to use the stratum method + instead of the to_stratum field. + +2018-11-30 Pedro Alves <palves@redhat.com> + + * corelow.c (core_target) <has_all_memory, has_execution>: New + overrides. + * inf-child.c (inf_child_target::has_all_memory) + (inf_child_target::has_memory, inf_child_target::has_stack) + (inf_child_target::has_registers) + (inf_child_target::has_execution): Delete. + * inf-child.h (inf_child_target) <has_all_memory, has_memory, + has_stack, has_registers, has_execution>: Delete. + * process-stratum-target.c + (process_stratum_target::has_all_memory) + (process_stratum_target::has_memory) + (process_stratum_target::has_stack) + (process_stratum_target::has_registers) + (process_stratum_target::has_execution): New. + * process-stratum-target.h (process_stratum_target) + <has_all_memory, has_memory, has_stack, has_registers, + has_execution>: New method overrides. + * ravenscar-thread.c (ravenscar_thread_target) <has_all_memory, + has_memory, has_stack, has_registers, has_execution>: Delete. + * remote-sim.c (gdbsim_target) <has_stack, has_registers, + has_execution>: Delete. + * remote.c (remote_target) <has_all_memory, has_memory, has_stack, + has_registers, has_execution>: Delete. + * target.c (default_child_has_all_memory) + (default_child_has_memory, default_child_has_stack) + (default_child_has_registers, default_child_has_execution): + Delete. + * target.h (default_child_has_all_memory) + (default_child_has_memory, default_child_has_stack) + (default_child_has_registers, default_child_has_execution): + Delete. + * tracefile.h (tracefile_target) <has_execution>: New override. + +2018-11-30 Pedro Alves <palves@redhat.com> + + * Makefile.in (COMMON_SFILES): Add process-stratum-target.c. + * bsd-kvm.c: Include "process-stratum-target.h". + (bsd_kvm_target): Now inherits from process_stratum_target. + (bsd_kvm_target::bsd_kvm_target): Default it. + * corelow.c: Include "process-stratum-target.h". + (core_target): Now inherits from process_stratum_target. + (core_target::core_target): Don't set to_stratum here. + * inf-child.c (inf_child_target::inf_child_target): Delete. + * inf-child.h: Include "process-stratum-target.h". + (inf_child_target): Inherit from process_stratum_target. + (inf_child_target) <inf_child_target>: Default it. + <can_async_p, supports_non_stop, supports_disable_randomization>: + Delete overrides. + * process-stratum-target.c: New file. + * process-stratum-target.h: New file. + * remote-sim.c: Include "process-stratum-target.h". + (gdbsim_target): Inherit from process_stratum_target. + <gdbsim_target>: Default it. + * remote.c: Include "process-stratum-target.h". + (remote_target): Inherit from process_stratum_target. + <remote_target>: Default it. + * target.c (default_thread_address_space) + (default_thread_architecture): Delete. + * target.h (target_ops) <thread_architecture>: Now returns NULL by + default. + <thread_address_space>: Ditto. + * test-target.h: Include "process-stratum-target.h" instead of + "target.h". + (test_target_ops): Inherit from process_stratum_target. + <test_target_ops>: Default it. + * tracefile.c (tracefile_target::tracefile_target): Delete. + * tracefile.h: Include "process-stratum-target.h". + (tracefile_target): Inherit from process_stratum_target. + <tracefile_target>: Default it. + * target-delegates.c: Regenerate. + +2018-11-30 Pedro Alves <palves@redhat.com> + + * Makefile.in (COMMON_SFILES): Add test-target.c. + * gdbarch-selftests.c: Include "test-target.h". + * regcache.c: Include "test-target.h". + * target.c (test_target_info, test_target_ops::info): Move to ... + * test-target.c: ... this new file. + * target.h (test_target_ops): Move to ... + * test-target.h: ... this new file. + +2018-11-29 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * source.c (forward_search_command): Fix leak by using + xrealloc even for the first allocation in the loop, as buf + is static. + +2018-11-29 Rajendra SY <rajendra.sy@gmail.com> + + PR gdb/23093 + * gdb/fbsd-tdep.c (fbsd_gdb_signal_from_target) + (fbsd_gdb_signal_to_target): New. + (fbsd_init_abi): Install gdbarch "signal_from_target" and + "signal_to_target" methods. + +2018-11-29 Tom Tromey <tom@tromey.com> + + * valarith.c (value_x_unop): Don't set argvec[3]. + +2018-11-26 Simon Marchi <simon.marchi@ericsson.com> + + PR gdb/23917 + * sparc-linux-nat.c (sparc_linux_nat_target): Remove extraneous + semicolon. + +2018-11-26 Pedro Alves <palves@redhat.com> + + * procfs.c (procfs_notice_thread): Replace uses of + in_thread_list/is_exited with find_thread_ptid/THREAD_EXITED. + * sol-thread.c (sol_thread_target::wait) + (sol_update_thread_list_callback): Likewise. + +2018-11-25 Tom Tromey <tom@tromey.com> + + * ui-out.c (ui_out::field_fmt): Remove comment. + * tui/tui-out.c (tui_ui_out::do_field_fmt): Remove comment. + * mi/mi-out.c (mi_ui_out::do_field_fmt): Remove comment. + +2018-11-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * source.c (open_source_file): Leak fixed in '8e6a5953e1d Fix 4K + leak in open_source_file' has been partially undone by '2179fbc36d23 + Return scoped_fd from open_source_file'. Re-add the transfer of + current s->fullname to the unique_xmalloc_ptr fullname given + to find_and_open_source. + +2018-11-23 Pedro Alves <palves@redhat.com> + + * gdbthread.h (enum thread_state): Move comments here. + (is_running, is_stopped, is_exited): Remove declarations. + +2018-11-22 Pedro Alves <palves@redhat.com> + + * Makefile.in (COMMON_SFILES): Add thread-iter.c. + * breakpoint.c (breakpoints_should_be_inserted_now): Replace + ALL_NON_EXITED_THREADS with all_non_exited_threads. + (print_one_breakpoint_location): Replace ALL_INFERIORS with + all_inferiors. + * bsd-kvm.c: Include inferior.h. + * btrace.c (btrace_free_objfile): Replace ALL_NON_EXITED_THREADS + with all_non_exited_threads. + * common/filtered-iterator.h: New. + * common/safe-iterator.h: New. + * corelow.c (core_target_open): Don't call init_thread_list here. + * darwin-nat.c (thread_info_from_private_thread_info): Replace + ALL_THREADS with all_threads. + * fbsd-nat.c (fbsd_nat_target::resume): Replace + ALL_NON_EXITED_THREADS with inf->non_exited_threads. + * fbsd-tdep.c (fbsd_make_corefile_notes): Replace + ALL_NON_EXITED_THREADS with inf->non_exited_threads. + * fork-child.c (postfork_hook): Don't call init_thread_list here. + * gdbarch-selftests.c (register_to_value_test): Adjust. + * gdbthread.h: Don't include "inferior.h" here. + (struct inferior): Forward declare. + (enum step_over_calls_kind): Moved here from inferior.h. + (thread_info::deletable): Definition moved to thread.c. + (find_thread_ptid (inferior *, ptid_t)): Declare. + (ALL_THREADS, ALL_THREADS_BY_INFERIOR, ALL_THREADS_SAFE): Delete. + Include "thread-iter.h". + (all_threads, all_non_exited_threads, all_threads_safe): New. + (any_thread_p): Declare. + (thread_list): Delete. + * infcmd.c (signal_command): Replace ALL_NON_EXITED_THREADS with + all_non_exited_threads. + (proceed_after_attach_callback): Delete. + (proceed_after_attach): Take an inferior pointer instead of an + integer PID. Adjust to use range-for. + (attach_post_wait): Pass down inferior pointer instead of pid. + Use range-for instead of ALL_NON_EXITED_THREADS. + (detach_command): Remove init_thread_list call. + * inferior-iter.h: New. + * inferior.c (struct delete_thread_of_inferior_arg): Delete. + (delete_thread_of_inferior): Delete. + (delete_inferior, exit_inferior_1): Use range-for with + inf->threads_safe() instead of iterate_over_threads. + (inferior_appeared): Call init_thread_list here. + (discard_all_inferiors): Use all_non_exited_inferiors. + (find_inferior_id, find_inferior_pid): Use all_inferiors. + (iterate_over_inferiors): Use all_inferiors_safe. + (have_inferiors, number_of_live_inferiors): Use + all_non_exited_inferiors. + (number_of_inferiors): Use all_inferiors and std::distance. + (print_inferior): Use all_inferiors. + * inferior.h: Include gdbthread.h. + (enum step_over_calls_kind): Moved to gdbthread.h. + (struct inferior) <thread_list>: New field. + <threads, non_exited_threads, threads_safe>: New methods. + (ALL_INFERIORS): Delete. + Include "inferior-iter.h". + (ALL_NON_EXITED_INFERIORS): Delete. + (all_inferiors_safe, all_inferiors, all_non_exited_inferiors): New + functions. + * inflow.c (child_interrupt, child_pass_ctrlc): Replace + ALL_NON_EXITED_THREADS with all_non_exited_threads. + * infrun.c (follow_exec): Use all_threads_safe. + (clear_proceed_status, proceed): Use all_non_exited_threads. + (init_wait_for_inferior): Don't clear inline frame state here. + (infrun_thread_stop_requested, for_each_just_stopped_thread): Use + all_threads instead of ALL_NON_EXITED_THREADS. + (random_pending_event_thread): Use all_non_exited_threads instead + of ALL_NON_EXITED_THREADS. Use a lambda for repeated code. + (clean_up_just_stopped_threads_fsms): Use all_non_exited_threads + instead of ALL_NON_EXITED_THREADS. + (handle_no_resumed): Use all_non_exited_threads instead of + ALL_NON_EXITED_THREADS. Use all_inferiors instead of + ALL_INFERIORS. + (restart_threads, switch_back_to_stepped_thread): Use + all_non_exited_threads instead of ALL_NON_EXITED_THREADS. + * linux-nat.c (check_zombie_leaders): Replace ALL_INFERIORS with + all_inferiors. + (kill_unfollowed_fork_children): Use inf->non_exited_threads + instead of ALL_NON_EXITED_THREADS. + * linux-tdep.c (linux_make_corefile_notes): Use + inf->non_exited_threads instead of ALL_NON_EXITED_THREADS. + * linux-thread-db.c (thread_db_target::update_thread_list): + Replace ALL_INFERIORS with all_inferiors. + (thread_db_target::thread_handle_to_thread_info): Use + inf->non_exited_threads instead of ALL_NON_EXITED_THREADS. + * mi/mi-interp.c (multiple_inferiors_p): New. + (mi_on_resume_1): Simplify using all_non_exited_threads and + multiple_inferiors_p. + * mi/mi-main.c (mi_cmd_thread_list_ids): Use all_non_exited_threads + instead of ALL_NON_EXITED_THREADS. + * nto-procfs.c (nto_procfs_target::open): Don't call + init_thread_list here. + * record-btrace.c (record_btrace_target_open) + (record_btrace_target::stop_recording) + (record_btrace_target::close) + (record_btrace_target::record_is_replaying) + (record_btrace_target::resume, record_btrace_target::wait) + (record_btrace_target::record_stop_replaying): Use + all_non_exited_threads instead of ALL_NON_EXITED_THREADS. + * record-full.c (record_full_wait_1): Use all_non_exited_threads + instead of ALL_NON_EXITED_THREADS. + * regcache.c (cooked_read_test): Remove reference to global + thread_list. + * remote-sim.c (gdbsim_target::create_inferior): Don't call + init_thread_list here. + * remote.c (remote_target::update_thread_list): Use + all_threads_safe instead of ALL_NON_EXITED_THREADS. + (remote_target::process_initial_stop_replies): Replace + ALL_INFERIORS with all_non_exited_inferiors and use + all_non_exited_threads instead of ALL_NON_EXITED_THREADS. + (remote_target::open_1): Don't call init_thread_list here. + (remote_target::append_pending_thread_resumptions) + (remote_target::remote_resume_with_hc): Use all_non_exited_threads + instead of ALL_NON_EXITED_THREADS. + (remote_target::commit_resume) + (remote_target::remove_new_fork_children): Replace ALL_INFERIORS + with all_non_exited_inferiors and use all_non_exited_threads + instead of ALL_NON_EXITED_THREADS. + (remote_target::kill_new_fork_children): Use + all_non_exited_threads instead of ALL_NON_EXITED_THREADS. Remove + init_thread_list and init_wait_for_inferior calls. + (remote_target::remote_btrace_maybe_reopen) + (remote_target::thread_handle_to_thread_info): Use + all_non_exited_threads instead of ALL_NON_EXITED_THREADS. + * target.c (target_terminal::restore_inferior) + (target_terminal_is_ours_kind): Replace ALL_INFERIORS with + all_non_exited_inferiors. + * thread-iter.c: New file. + * thread-iter.h: New file. + * thread.c: Include "inline-frame.h". + (thread_list): Delete. + (clear_thread_inferior_resources): Call clear_inline_frame_state. + (init_thread_list): Use all_threads_safe instead of + ALL_THREADS_SAFE. Adjust to per-inferior thread lists. + (new_thread): Adjust to per-inferior thread lists. + (add_thread_silent): Pass inferior to find_thread_ptid. + (thread_info::deletable): New, moved from the header. + (delete_thread_1): Adjust to per-inferior thread lists. + (find_thread_global_id): Use inf->threads(). + (find_thread_ptid): Use find_inferior_ptid and pass inferior to + find_thread_ptid. + (find_thread_ptid(inferior*, ptid_t)): New overload. + (iterate_over_threads): Use all_threads_safe. + (any_thread_p): New. + (thread_count): Use all_threads and std::distance. + (live_threads_count): Use all_non_exited_threads and + std::distance. + (valid_global_thread_id): Use all_threads. + (in_thread_list): Use find_thread_ptid. + (first_thread_of_inferior): Adjust to per-inferior thread lists. + (any_thread_of_inferior, any_live_thread_of_inferior): Use + inf->non_exited_threads(). + (prune_threads, delete_exited_threads): Use all_threads_safe. + (thread_change_ptid): Pass inferior pointer to find_thread_ptid. + (set_resumed, set_running): Use all_non_exited_threads. + (is_thread_state, is_stopped, is_exited, is_running) + (is_executing): Delete. + (set_executing, set_stop_requested, finish_thread_state): Use + all_non_exited_threads. + (print_thread_info_1): Use all_inferiors and all_threads. + (thread_apply_all_command): Use all_non_exited_threads. + (thread_find_command): Use all_threads. + (update_threads_executing): Use all_non_exited_threads. + * tid-parse.c (parse_thread_id): Use inf->threads. + * x86-bsd-nat.c (x86bsd_dr_set): Use inf->non_exited_threads (). + +2018-11-22 Pedro Alves <palves@redhat.com> + + * infrun.c (follow_exec) <set follow-exec new>: Add thread and + switch to it before calling into try_open_exec_file. + +2018-11-22 Pedro Alves <palves@redhat.com> + + * cli/cli-interp.c (cli_on_user_selected_context_changed): Use + inferior_thread instead of find_thread_ptid, and only when + inferior_ptid is not null_ptid. + * inferior.c (add_inferior): Don't include target_pid_to_str + output when the inferior is not started. + * python/py-inferior.c (python_on_normal_stop): Don't use + find_thread_ptid. + (tui_on_user_selected_context_changed): Use inferior_thread + instead of find_thread_ptid, and only when inferior_ptid is not + null_ptid. + +2018-11-21 Benno Fünfstück <benno.fuenfstueck@gmail.com> + + PR python/23714 + * gdb/python/python.c (execute_gdb_command): Call + prevent_dont_repeat earlier to avoid affecting dont_repeat. + +2018-11-21 Andrew Burgess <andrew.burgess@embecosm.com> + + * Makefile.in (ALL_TARGET_OBS): Add arch/riscv.o. + (HFILES_NO_SRCDIR): Add arch/riscv.h. + * arch/riscv.c: New file. + * arch/riscv.h: New file. + * configure.tgt: Add cpu_obs list of riscv, move riscv-tdep.o into + this list, and add arch/riscv.o. + * features/Makefile: Add riscv features. + * features/riscv/32bit-cpu.c: New file. + * features/riscv/32bit-cpu.xml: New file. + * features/riscv/32bit-csr.c: New file. + * features/riscv/32bit-csr.xml: New file. + * features/riscv/32bit-fpu.c: New file. + * features/riscv/32bit-fpu.xml: New file. + * features/riscv/64bit-cpu.c: New file. + * features/riscv/64bit-cpu.xml: New file. + * features/riscv/64bit-csr.c: New file. + * features/riscv/64bit-csr.xml: New file. + * features/riscv/64bit-fpu.c: New file. + * features/riscv/64bit-fpu.xml: New file. + * features/riscv/rebuild-csr-xml.sh: New file. + * riscv-tdep.c: Add 'arch/riscv.h' include. + (riscv_gdb_reg_names): Delete. + (csr_reggroup): New global. + (struct riscv_register_alias): Delete. + (struct riscv_register_feature): New structure. + (riscv_register_aliases): Delete. + (riscv_xreg_feature): New global. + (riscv_freg_feature): New global. + (riscv_virtual_feature): New global. + (riscv_csr_feature): New global. + (riscv_create_csr_aliases): New function. + (riscv_read_misa_reg): Delete. + (riscv_has_feature): Delete. + (riscv_isa_xlen): Simplify, just return cached xlen. + (riscv_isa_flen): Simplify, just return cached flen. + (riscv_has_fp_abi): Update for changes in struct gdbarch_tdep. + (riscv_register_name): Update to make use of tdesc_register_name. + Look up xreg and freg names in the new globals riscv_xreg_feature + and riscv_freg_feature. Don't supply csr aliases here. + (riscv_fpreg_q_type): Delete. + (riscv_register_type): Use tdesc_register_type in almost all + cases, override the returned type in a few specific cases only. + (riscv_print_one_register_info): Handle errors reading registers. + (riscv_register_reggroup_p): Use tdesc_register_in_reggroup_p for + registers that are otherwise unknown to GDB. Also check the + csr_reggroup. + (riscv_print_registers_info): Remove assert about upper register + number, and use gdbarch_register_reggroup_p instead of + short-cutting. + (riscv_find_default_target_description): New function. + (riscv_check_tdesc_feature): New function. + (riscv_add_reggroups): New function. + (riscv_setup_register_aliases): New function. + (riscv_init_reggroups): New function. + (_initialize_riscv_tdep): Add calls to setup CSR aliases, and + setup register groups. Register new riscv debug variable. + * riscv-tdep.h: Add 'arch/riscv.h' include. + (struct gdbarch_tdep): Remove abi union, and add + riscv_gdbarch_features field. Remove cached quad floating point + type, and provide initialisation for double type field. + * target-descriptions.c (maint_print_c_tdesc_cmd): Add riscv to + the list of targets using the feature based target descriptions. + * NEWS: Mention target description support. + +2018-11-21 Pedro Alves <palves@redhat.com> + + * valops.c (find_method_list, value_find_oload_method_list) + (find_overload_match, find_oload_champ): Rename parameters and + locals. + +2018-11-21 Pedro Alves <palves@redhat.com> + + * valops.c (find_method_list): Replace pointer and length + parameters with an gdb::array_view. Adjust. + (value_find_oload_method_list): Likewise. + (find_overload_match): Use gdb::array_view for methods list. + Adjust to find_oload_champ interface change. + (find_oload_champ): 'xm_worker_vec' parameter now a pointer/array. + 'num_fns' parameter now a size_t. Eliminate 'fn_count' local. + +2018-11-21 Pedro Alves <palves@redhat.com> + + * gdbtypes.c (compare_badness): Change type of parameters to const + reference. Adjust to badness_vector being a std::vector now. + (rank_function): Adjust to badness_vector being a std::vector now. + * gdbtypes.h (badness_vector): Now a typedef to std::vector. + (LENGTH_MATCH): Delete. + (compare_badness): Change type of parameters to const reference. + (rank_function): Return a badness_vector by value now. + (find_overload_match): Adjust to badness_vector being a + std::vector now. Remove cleanups. + (find_oload_champ_namespace): 'oload_champ_bv' parameter now a + badness_vector pointer. + (find_oload_champ_namespace_loop): 'oload_champ_bv' parameter now + a badness_vector pointer. Adjust to badness_vector being a + std::vector now. Remove cleanups. + (find_oload_champ): 'oload_champ_bv' parameter now + a badness_vector pointer. Adjust to badness_vector being a + std::vector now. Remove cleanups. + +2018-11-21 Pedro Alves <palves@redhat.com> + + * cp-support.c (sym_return_val_size, sym_return_val_index) + (sym_return_val): Delete. + (overload_list_add_symbol): Add std::vector parameter. Adjust to + add to the vector. + (make_symbol_overload_list): Adjust to return a std::vector + instead of maintaining a global open coded vector. + (make_symbol_overload_list_block): Add std::vector parameter. + (make_symbol_overload_list_block): Rename to ... + (add_symbol_overload_list_block): ... this and add std::vector + parameter. + (make_symbol_overload_list_namespace): Rename to ... + (add_symbol_overload_list_namespace): ... this and add std::vector + parameter. + (make_symbol_overload_list_adl_namespace): Rename to ... + (add_symbol_overload_list_adl_namespace): ... this and add + std::vector parameter. + (make_symbol_overload_list_adl): Delete. + (add_symbol_overload_list_adl): New. + (make_symbol_overload_list_using): Rename to ... + (add_symbol_overload_list_using): ... this and add std::vector + parameter. + (make_symbol_overload_list_qualified): Rename to ... + (add_symbol_overload_list_qualified): ... this and add std::vector + parameter. + * cp-support.h: Include "common/array-view.h" and <vector>. + (make_symbol_overload_list): Change return type to std::vector. + (make_symbol_overload_list_adl): Delete declaration. + (add_symbol_overload_list_adl): New declaration. + * valops.c (find_overload_match): Local 'oload_syms' now a + std::vector. + (find_oload_champ_namespace): 'oload_syms' parameter now a + std::vector pointer. + (find_oload_champ_namespace_loop): 'oload_syms' parameter now a + std::vector pointer. Adjust to new make_symbol_overload_list + interface. + +2018-11-21 Pedro Alves <palves@redhat.com> + + * common/array-view.h (array_view::splice(size_type, size_t)): New. + (array_view::splice(size_type)): New. + * eval.c (eval_call, evaluate_funcall): Adjust to use array_view. + * extension.c (xmethod_worker::get_arg_types): Adjust to return an + std::vector. + (xmethod_worker::get_result_type): Adjust to use gdb::array_view. + * extension.h: Include "common/array-view.h". + (xmethod_worker::invoke): Adjust to use gdb::array_view. + (xmethod_worker::get_arg_types): Adjust to return an std::vector. + (xmethod_worker::get_result_type): Adjust to use gdb::array_view. + (xmethod_worker::do_get_arg_types): Adjust to use std::vector. + (xmethod_worker::do_get_result_type): Adjust to use + gdb::array_view. + * gdbtypes.c (rank_function): Adjust to use gdb::array_view. + * gdbtypes.h: Include "common/array-view.h". + (rank_function): Adjust to use gdb::array_view. + * python/py-xmethods.c (python_xmethod_worker::invoke) + (python_xmethod_worker::do_get_arg_types) + (python_xmethod_worker::do_get_result_type) + (python_xmethod_worker::invoke): Adjust to new interfaces. + * valarith.c (value_user_defined_cpp_op, value_user_defined_op) + (value_x_binop, value_x_unop): Adjust to use gdb::array_view. + * valops.c (find_overload_match, find_oload_champ_namespace) + (find_oload_champ_namespace_loop, find_oload_champ): Adjust to use + gdb:array_view and the new xmethod_worker interfaces. + * value.c (result_type_of_xmethod, call_xmethod): Adjust to use + gdb::array_view. + * value.h (find_overload_match, result_type_of_xmethod) + (call_xmethod): Adjust to use gdb::array_view. + * unittests/array-view-selftests.c: Add slicing tests. + +2018-11-21 Pedro Alves <palves@redhat.com> + + * ada-lang.c (ada_evaluate_subexp): Adjust to pass an array_view. + * common/array-view.h (make_array_view): New. + * compile/compile-object-run.c (compile_object_run): Adjust to + pass an array_view. + * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust. + * eval.c (eval_call): Adjust to pass an array_view. + (evaluate_subexp_standard): Adjust to pass an array_view. + * gcore.c (call_target_sbrk): Adjust to pass an array_view. + * guile/scm-value.c (gdbscm_value_call): Likewise. + * infcall.c (push_dummy_code): Replace pointer + size parameters + with an array_view parameter. + (call_function_by_hand, call_function_by_hand_dummy): Likewise and + adjust. + * infcall.h: Include "common/array-view.h". + (call_function_by_hand, call_function_by_hand_dummy): Replace + pointer + size parameters with an array_view parameter. + * linux-fork.c (inferior_call_waitpid): Adjust to use array_view. + * linux-tdep.c (linux_infcall_mmap): Likewise. + * objc-lang.c (lookup_objc_class, lookup_child_selector) + (value_nsstring, print_object_command): Likewise. + * python/py-value.c (valpy_call): Likewise. + * rust-lang.c (rust_evaluate_funcall): Likewise. + * spu-tdep.c (flush_ea_cache): Likewise. + * valarith.c (value_x_binop, value_x_unop): Likewise. + * valops.c (value_allocate_space_in_inferior): Likewise. + * unittests/array-view-selftests.c (run_tests): Add + gdb::make_array_view test. + +2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com> + + * cli-out.c (cli_ui_out::do_field_int): Use string_printf rather + than a fixed size buffer. + +2018-11-20 Andrew Burgess <andrew.burgess@embecosm.com> + + * breakpoint.c (print_one_breakpoint_location): Reduce whitespace, + and remove insertion of extra spaces in GDB's output. + * cli-out.c (cli_ui_out::do_field_fmt): Update header comment. + Layout field into a temporary buffer, and then output it as a + string field. + +2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * NEWS: Document the language choice done by + 'info [types|functions|variables]|rbreak'. + +2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * symtab.c (treg_matches_sym_type_name): Use + scoped_switch_to_sym_language_if_auto instead of local logic. + (print_symbol_info): Use scoped_switch_to_sym_language_if_auto + to switch to SYM language when language mode is auto. + +2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * language.h (scoped_switch_to_sym_language_if_auto): New class. + +2018-11-20 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * symtab.c (search_symbols): Properly check absence of type regexp + before entering the loop scanning the minimal symbols. + +2018-11-20 John Darrington <john@darrington.wattle.id.au> + + * s12z-tdep.c (s12z_extract_return_value): New function. + (inv_reg_perm) New array. + (s12z_return_value): Populate readbuf if non-null. + +2018-11-20 Eli Zaretskii <eliz@gnu.org> + + * common/filestuff.c (gdb_fopen_cloexec): Disable use of "e" mode + with 'fopen' also if O_CLOEXEC is equal to O_NOINHERIT, to cater + to MinGW fixed by Gnulib. + (O_NOINHERIT): Define if not defined. + +2018-11-19 John Darrington <john@darrington.wattle.id.au> + + * s12z-tdep.c (s12z_frame_cache): Add an assertion. + +2018-11-19 Simon Marchi <simon.marchi@polymtl.ca> + + * infrun.c (displaced_step_inferior_state) <next>: Remove. + +2018-11-19 Tom Tromey <tom@tromey.com> + + * source.c (get_filename_and_charpos): Return void. + +2018-11-19 Simon Marchi <simon.marchi@polymtl.ca> + + * skip.c (_initialize_step_skip): Fix "info skip" help. + +2018-11-16 Tom Tromey <tom@tromey.com> + + PR rust/23625: + * rust-lang.c (rust_internal_print_type): Handle TYPE_CODE_PTR. + +2018-11-19 Simon Marchi <simon.marchi@ericsson.com> + + * infrun.c (displaced_step_inferior_states): Change type to + std::forward_list. + (get_displaced_stepping_state): Adjust. + (displaced_step_in_progress_any_inferior): Adjust. + (add_displaced_stepping_state): Adjust. + (remove_displaced_stepping_state): Adjust. + +2018-11-18 Tom Tromey <tom@tromey.com> + + PR build/23814: + * target-delegates.c: Rebuild. + * ia64-linux-nat.c (class ia64_linux_nat_target) + <have_steppable_watchpoint>: Use override. Return true, not 1. + (ia64_linux_nat_target::can_use_hw_breakpoint): Rename. Remove + "self" argument. + (ia64_linux_nat_target::low_new_thread): Rename. + (class ia64_linux_nat_target) <read_description>: Don't declare. + * target.h (struct target_ops) <have_steppable_watchpoint>: Return + bool. + +2018-11-16 Alan Hayward <alan.hayward@arm.com> + + PR gdb/22736: + * aarch64-tdep.c (aarch64_push_dummy_call): Remove + lang_struct_return code. + +2018-11-16 Alan Hayward <alan.hayward@arm.com> + + * aarch64-tdep.c (aarch64_push_dummy_call): Replace arg with + return_method. + * alpha-tdep.c (alpha_push_dummy_call): Likewise. + * amd64-tdep.c (amd64_push_arguments): Likewise. + (amd64_push_dummy_call): Likewise. + * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise. + * arc-tdep.c (arc_push_dummy_call): Likewise. + * arm-tdep.c (arm_push_dummy_call): Likewise. + * avr-tdep.c (avr_push_dummy_call): Likewise. + * bfin-tdep.c (bfin_push_dummy_call): Likewise. + * cris-tdep.c (cris_push_dummy_call): Likewise. + * csky-tdep.c (csky_push_dummy_call): Likewise. + * frv-tdep.c (frv_push_dummy_call): Likewise. + * gdbarch.c: Regenerate. + * gdbarch.h: Regenerate. + * gdbarch.sh (gdbarch_push_dummy_call): Replace arg with + return_method. + * h8300-tdep.c (h8300_push_dummy_call): Likewise. + * hppa-tdep.c (hppa32_push_dummy_call): Likewise. + (hppa64_push_dummy_call): Likewise. + * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise. + * i386-tdep.c (i386_push_dummy_call): Likewise. + * ia64-tdep.c (ia64_push_dummy_call): Likewise. + * infcall.c (call_function_by_hand_dummy): Likewise. + * iq2000-tdep.c (iq2000_push_dummy_call): Likewise. + * lm32-tdep.c (lm32_push_dummy_call): Likewise. + * m32c-tdep.c (m32c_push_dummy_call): Likewise. + * m32r-tdep.c (m32r_push_dummy_call): Likewise. + * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise. + * m68k-tdep.c (m68k_push_dummy_call): Likewise. + * mep-tdep.c (mep_push_dummy_call): Likewise. + * mips-tdep.c (mips_eabi_push_dummy_call): Likewise. + (mips_n32n64_push_dummy_call): Likewise. + (mips_o32_push_dummy_call): Likewise. + (mips_o64_push_dummy_call): Likewise. + * mn10300-tdep.c (mn10300_push_dummy_call): Likewise. + * msp430-tdep.c (msp430_push_dummy_call): Likewise. + * nds32-tdep.c (nds32_push_dummy_call): Likewise. + * nios2-tdep.c (nios2_push_dummy_call): Likewise. + * or1k-tdep.c (or1k_push_dummy_call): Likewise. + * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise. + (ppc64_sysv_abi_push_dummy_call): Likewise. + * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Likewise. + (ppc64_sysv_abi_push_dummy_call): Likewise. + * riscv-tdep.c (riscv_push_dummy_call): Likewise. + * rl78-tdep.c (rl78_push_dummy_call): Likewise. + * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise. + * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise. + * rx-tdep.c (rx_push_dummy_call): Likewise. + * s390-tdep.c (s390_push_dummy_call): Likewise. + * score-tdep.c (score_push_dummy_call): Likewise. + * sh-tdep.c (sh_push_dummy_call_fpu): Likewise. + (sh_push_dummy_call_nofpu): Likewise. + * sparc-tdep.c (sparc32_store_arguments): Likewise. + (sparc32_push_dummy_call): Likewise. + * sparc64-tdep.c (sparc64_store_arguments): Likewise. + (sparc64_push_dummy_call): Likewise. + * spu-tdep.c (spu_push_dummy_call): Likewise. + * tic6x-tdep.c (tic6x_push_dummy_call): Likewise. + * tilegx-tdep.c (tilegx_push_dummy_call): Likewise. + * v850-tdep.c (v850_push_dummy_call): Likewise. + * vax-tdep.c (vax_push_dummy_call): Likewise. + * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise. + * xtensa-tdep.c (xtensa_push_dummy_call): Likewise. + +2018-11-16 Alan Hayward <alan.hayward@arm.com> + + * gdbarch.sh (enum function_call_return_method): Add enum. + * gdbarch.h: Regenerate. + * infcall.c (call_function_by_hand_dummy): Replace vars with enum. + +2018-11-15 Joel Brobecker <brobecker@adacore.com> + + * unittests/copy_bitwise-selftests.c: New file. + * utils.c (selftests::bits_to_str, selftests::check_copy_bitwise) + (selftests::copy_bitwise_tests): Delete, moving this code to + unittests/copy_bitwise-selftests.c instead. + (_initialize_utils): Do not register copy_bitwise tests. + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + unittests/copy_bitwise-selftests.c. + +2018-11-14 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (move_bits): Delete. Update all callers to use + copy_bitwise instead. + * dwarf2loc.c (copy_bitwise, bits_to_str::bits_to_str) + (selftests::check_copy_bitwise, selftests::copy_bitwise_tests): + Move from here to utils.c. + (_initialize_dwarf2loc): Remove call to register copy_bitwise + selftests. + * utils.h (copy_bitwise): Add declaration. + * utils.c (copy_bitwise, bits_to_str::bits_to_str) + (selftests::check_copy_bitwise, selftests::copy_bitwise_tests): + Moved here from dwarf2loc.c. + (_initialize_utils): Register copy_bitwise selftests. + +2018-11-14 Jim Wilson <jimw@sifive.com> + + * riscv-tdep.c (struct riscv_arg_info): New field is_unnamed. + (riscv_call_arg_scalar_int): If unnamed arg with twice xlen alignment, + then increment next_regnum if odd. + (riscv_arg_location): New arg is_unnamed. Set ainfo->is_unnamed. + (riscv_push_dummy_call): New local ftype. Call check_typedef to set + function type. Pass new arg to riscv_arg_location based on function + type. + (riscv_return_value): Pass new arg to riscv_arg_location. + + * riscv-tdep.c (BIGGEST_ALIGNMENT): New. + (riscv_type_alignment) <TYPE_CODE_ARRAY>: If TYPE_VECTOR, return min + of TYPE_LENGTH and BIGGEST_ALIGNMENT. + + * riscv-tdep.c (riscv_call_arg_scalar_int): Use std::min when + setting len. New local align, set to max of arg align and xlen, + and pass to first riscv_assign_stack_location call. + +2018-11-12 Simon Marchi <simon.marchi@polymtl.ca> + + * skip.c (complete_skip_number): New function. + (_initialize_step_skip): Add completers to some skip commands. + +2018-11-09 Tom Tromey <tom@tromey.com> + + * remote.c (remote_g_packet_guess_s): Remove typedef and DEF_VEC. + (struct remote_g_packet_data): Derive from allocate_on_obstack. + <guesses>: Now a std::vector. + (remote_g_packet_data_init, register_remote_g_packet_guess): + Update. + (remote_read_description_p): Update. Return bool. + (remote_target::read_description): Update. + (struct remote_g_packet_guess): Add constructor. + +2018-11-09 Tom Tromey <tom@tromey.com> + + * common/scoped_fd.h (class scoped_fd): Add move constructor and + move assignment operator. + * psymtab.c (psymtab_to_fullname): Update. + * source.h (open_source_file): Return scoped_fd. + (find_and_open_source): Likewise. + * source.c (open_source_file): Return scoped_fd. + (get_filename_and_charpos): Update. + (print_source_lines_base): Update. Use scoped_fd::to_file. + (forward_search_command): Likewise. + (reverse_search_command): Likewise. + (find_and_open_source): Return scoped_fd. + * tui/tui-source.c (tui_set_source_content): Update. Use + gdb_file_up. + +2018-11-09 John Baldwin <jhb@FreeBSD.org> + + * minsyms.c (minimal_symbol_reader::install): Fix unsigned + overflow. + +2018-11-09 Hafiz Abid Qadeer <abidh@codesourcery.com> + + * configure: Regenerate. + +2018-11-09 Tom de Vries <tdevries@suse.de> + + * symtab.c (symbol_set_names): Call symbol_find_demangled_name + unconditionally, to set the language of the symbol. Manage freeing + returned pointer using gdb::unique_xmalloc_ptr. + +2018-11-08 Tom Tromey <tom@tromey.com> + + * record.c (require_record_target): Upper-case "<TAB>". + +2018-11-08 Tom Tromey <tom@tromey.com> + + * python/lib/gdb/command/pretty_printers.py + (InfoPrettyPrinter.invoke): Don't indent "objfile" heading. + +2018-11-08 Tom Tromey <tom@tromey.com> + + PR gdb/23555: + PR gdb/23838: + * target.h (target_supports_terminal_ours): Return bool. + * target.c (target_supports_terminal_ours): Handle case where + current_top_target returns nullptr. Return bool. + +2018-11-08 Joel Brobecker <brobecker@adacore.com> + + * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): + return the correct count for potential HFAs. + +2018-11-08 Jan Beulich <jbeulich@suse.com> + + * i387-tdep.c (i387_supply_xsave): Split handling of + X86_XSTATE_ZMM_H and X86_XSTATE_ZMM. + (i387_collect_xsave): Likewise. + +2018-11-08 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_insn::decode): Update header comment. + (riscv_frame_this_id): Catch errors thrown while building the + frame cache, leave the frame id as the default, which is the outer + frame id. + +2018-11-07 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (read_atcb): Only set task_info->called_task if + task_info->state == Entry_Caller_Sleep. + (print_ada_task_info): Do not check task_info->state before + checking task_info->called_task. + (info_task): Likewise. + +2018-11-07 Joel Brobecker <brobecker@adacore.com> + + * ada-tasks.c (read_atcb): Clear task_info before computing + the value of each of its fields. + +2018-11-07 Andrew Burgess <andrew.burgess@embecosm.com> + + * dwarf2read.c (dwarf2_init_integer_type): Check for name being + NULL before dereferencing it. + +2018-11-06 Tom de Vries <tdevries@suse.de> + + * linux-tdep.c (linux_vsyscall_range_raw): Use xmalloc to allocate + program headers. + +2018-11-06 Max Filippov <jcmvbkbc@gmail.com> + + * configure.tgt (xtensa*-*-linux*): Change to xtensa*-*-*linux* + so that it applies to uclinux as well. + +2018-11-06 Marius Muench <marius.muench@eurecom.fr> + + * arm-tdep.c (arm_scan_prologue): Don't dereference FP reg + when on AAPCS. + +2018-11-06 John Baldwin <jhb@FreeBSD.org> + + * riscv-fbsd-nat.c (getregs_supplies): Return true for + RISCV_CSR_SSTATUS_REGNUM. + +2018-11-04 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * source.c (open_source_file): Fix leak by transferring the + current s->fullname to the unique_xmalloc_ptr fullname given + to find_and_open_source. + +2018-11-04 Tom Tromey <tom@tromey.com> + + * varobj.c (install_default_visualizer): Update. + * python/python-internal.h (gdbpy_get_varobj_pretty_printer): + Return gdbpy_ref. + * python/py-prettyprint.c (search_pp_list): Return gdbpy_ref. + (find_pretty_printer_from_progspace) + (find_pretty_printer_from_gdb, find_pretty_printer) + (gdbpy_get_varobj_pretty_printer): Return gdbpy_ref. + (gdbpy_get_varobj_pretty_printer, gdbpy_default_visualizer): + Update. + +2018-11-04 Tom Tromey <tom@tromey.com> + + * python/python.c (gdbpy_parameter_value): Update. + * python/python-internal.h (python_string_to_unicode) + (python_string_to_target_python_string) + (host_string_to_python_string): Return gdbpy_ref. + * python/py-utils.c (python_string_to_unicode) + (unicode_to_encoded_python_string) + (unicode_to_target_python_string) + (python_string_to_target_string) + (python_string_to_target_python_string): Return gdbpy_ref. + (python_string_to_host_string): Update. + (host_string_to_python_string): Return gdbpy_ref. + * python/py-symtab.c (stpy_get_filename, stpy_get_producer) + (stpy_fullname): Update. + * python/py-progspace.c (pspy_get_filename, pspy_solib_name): + Update. + * python/py-prettyprint.c (print_string_repr): Update. + * python/py-objfile.c (objfpy_get_filename, objfpy_get_username) + (objfpy_get_build_id): Update. + * python/py-breakpoint.c (bppy_get_location) + (bppy_get_expression, bppy_get_condition, bppy_get_commands): + Update. + +2018-11-04 Tom Tromey <tom@tromey.com> + + * python/python-internal.h (gdb_py_object_from_longest) + (gdb_py_object_from_ulongest): Return gdbpy_ref. + * python/py-value.c (valpy_int): Update. + * python/py-utils.c (gdb_py_object_from_longest): Return + gdbpy_ref. + (gdb_py_object_from_ulongest): Likewise. + * python/py-type.c (typy_get_alignof): Update. + * python/py-linetable.c (ltpy_get_all_source_lines) + (ltpy_entry_get_line, ltpy_entry_get_pc): Update. + * python/py-block.c (blpy_get_start, blpy_get_end): Update. + +2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * ada-lang.c (_initialize_ada_language): Fix typo. + +2018-11-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * language.c (type): Remove. + (_initialize_language): Remove assignment to type. + +2018-11-02 Joel Brobecker <brobecker@adacore.com> + + * aarch64-ravenscar-thread.h, aarch64-ravenscar-thread.c: New files. + * aarch64-tdep.c: #include "aarch64-ravenscar-thread.h". + (aarch64_gdbarch_init): Add call to register_aarch64_ravenscar_ops. + * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-ravenscar-thread.o. + (HFILES_NO_SRCDIR): Add aarch64-ravenscar-thread.h. + (ALLDEPFILES): Add aarch64-ravenscar-thread.c. + * configure.tgt (cpu_obs) [aarch64*-*-*]: Add ravenscar-thread.o + and aarch64-ravenscar-thread.o. + * NEWS: Add entry documenting Ravenscar tasking support + on AArch64 ELF. + +2018-11-02 Matthew Malcomson <matthew.malcomson@arm.com> + + * symtab.c (info_functions_command): Initialize quiet flag. + * stack.c (info_args_command): Likewise. + +2018-11-01 Jim Wilson <jimw@sifive.com> + + * riscv-tdep.c (riscv_breakpoint_kind_from_pc): New local unaligned_p. + Set if pcptr if unaligned. Return 2 if unaligned_p true. Update + debugging messages. + +2018-11-01 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (ada_watch_location_expression): New function. + (ada_language_defn): Set la_watch_location_expression to + ada_watch_location_expression. + +2018-11-01 Joel Brobecker <brobecker@adacore.com> + + * print-utils.c (int_string): Remove unnecessary trailing spaces. + +2018-11-01 Joel Brobecker <brobecker@adacore.com> + + * rs6000-tdep.c (skip_prologue): Fix potential negative left + shifting. + +2018-11-01 Jerome Guitton <guitton@adacore.com> + Joel Brobecker <brobecker@adacore.com> + + * defs.h (enum gdb_osabi): Add GDB_OSABI_PIKEOS. + * osabi.c (gdb_osabi_names): Add name for GDB_OSABI_PIKEOS. + * arm-pikeos-tdep.c: New file. + * configure.tgt: Add arm-pikeos-tdep.o to the case of ARM + embedded system. + * Makefile.in (ALL_TARGET_OBS): Add arm-pikeos-tdep.o. + +2018-11-01 Simon Marchi <simon.marchi@ericsson.com> + + * common/pathstuff.c (get_standard_temp_dir): New. + * common/pathstuff.h (get_standard_temp_dir): New. + * config.in: Re-generate. + * configure: Re-generate. + * configure.ac: Don't check for mkdtemp. + * gnulib/aclocal-m4-deps.mk: Re-generate. + * gnulib/aclocal.m4: Re-generate. + * gnulib/config.in: Re-generate. + * gnulib/configure: Re-generate. + * gnulib/import/Makefile.am: Re-generate. + * gnulib/import/Makefile.in: Re-generate. + * gnulib/import/m4/gnulib-cache.m4: Re-generate. + * gnulib/import/m4/gnulib-comp.m4: Re-generate. + * gnulib/import/m4/mkdtemp.m4: New file. + * gnulib/import/mkdtemp.c: New file. + * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): + Add mkdtemp module. + * unittests/mkdir-recursive-selftests.c (test): Use + get_standard_temp_dir. + (_initialize_mkdir_recursive_selftests): Remove HAVE_MKDTEMP + ifdef. + * compile/compile.c (get_compile_file_tempdir): Likewise. + +2018-11-01 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> + + * rs6000-aix-tdep.c: Include "trad-frame.h" and "frame-unwind.h". + (SIG_FRAME_LR_OFFSET64): New define. + (SIG_FRAME_FP_OFFSET64): New define. + (aix_sighandle_frame_cache): New Function. + (aix_sighandle_frame_this_id): New Function. + (aix_sighandle_frame_prev_register): New Function. + (aix_sighandle_frame_sniffer): New Function. + (aix_sighandle_frame_unwind): New global variable. + (rs6000_aix_init_osabi): Install new frame unwinder. + +2018-10-31 Sergio Durigan Junior <sergiodj@redhat.com> + + PR gdb/23835 + * common/common-defs.h: Don't redefine _FORTIFY_SOURCE if it's + already defined. + +2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * ppc-linux-nat.c: Include nat/linux-ptrace.h. + +2018-10-31 Andrew Burgess <andrew.burgess@embecosm.com> + + * dwarf2read.c (struct dwarf2_cu): Add producer_is_icc field. + (producer_is_icc): New function. + (check_producer): Set producer_is_icc field on dwarf2_cu. + (dwarf2_init_integer_type): New function. + (read_base_type): Call dwarf2_init_integer_type instead of + init_integer_type in all cases. + (dwarf2_cu::dwarf2_cu): Initialise producer_is_icc field. + * valprint.c (maybe_negate_by_bytes): Add an assertion that the + LEN is greater than 0. + +2018-10-30 Tom Tromey <tom@tromey.com> + + * main.c (captured_main_1): Check return value of bfd_init. + +2018-10-29 Sergio Durigan Junior <sergiodj@redhat.com> + + * common/offset-type.h (DEFINE_OFFSET_REL_OP): Delete. + Adjust comments. + +2018-10-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * procfs.c: Include common/pathstuff.h. + +2018-10-28 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers): + Add missing braces. No functional change. + +2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * macrocmd.c (info_macro_command): Use report_unrecognized_option_error + to report a bad option and fix indentation. + * demangle.c (demangle_command): Use report_unrecognized_option_error + to report a bad option and correctly report the bad option. + +2018-10-27 Tom Tromey <tom@tromey.com> + + PR cli/23364: + * darwin-nat.c (copied_shell): New global. + (may_have_sip): Rename from should_disable_startup_with_shell. + (copy_shell_to_cache, maybe_cache_shell): New functions. + (darwin_nat_target::create_inferior): Update. Use + copied_shell. + +2018-10-27 Tom Tromey <tom@tromey.com> + + * unittests/scoped_fd-selftests.c (test_to_file): New function. + (run_tests): Call test_to_file. + * dwarf-index-write.c (write_psymtabs_to_index): Do not reopen + temporary files. + * common/scoped_fd.h (scoped_fd::to_file): New method. + +2018-10-27 Tom Tromey <tom@tromey.com> + + * unittests/scoped_mmap-selftests.c (test_normal): Use + gdb_mkostemp_cloexec. + * unittests/scoped_fd-selftests.c (test_destroy, test_release): + Use gdb_mkostemp_cloexec. + * gnulib/aclocal-m4-deps.mk, gnulib/aclocal.m4, + gnulib/config.in, gnulib/configure, + gnulib/import/Makefile.am, gnulib/import/Makefile.in, + gnulib/import/m4/gnulib-cache.m4, + gnulib/import/m4/gnulib-comp.m4: Update. + * gnulib/import/m4/mkostemp.m4: New file. + * gnulib/import/m4/mkstemp.m4: Remove. + * gnulib/import/mkostemp.c: New file. + * gnulib/import/mkstemp.m4: Remove. + * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Remove + mkstemp, add mkostemp. Apply new patch. + * gnulib/import/stdlib.in.h: Apply patch. + * gnulib/patches/0002-mkostemp-mkostemps-Fix-compilation-error-in-C-mode-o.patch: + New file. + * dwarf-index-write.c (write_psymtabs_to_index): Use + gdb_mkostemp_cloexec. + * common/filestuff.h (gdb_mkostemp_cloexec): New function. + +2018-10-27 Tom Tromey <tom@tromey.com> + + * unittests/mkdir-recursive-selftests.c: New file. + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + unittests/mkdir-recursive-selftests.c. + * dwarf-index-cache.c (mkdir_recursive): Move to + common/filestuff.c. + (index_cache::store): Check return value of mkdir_recursive. + (create_dir_and_check, test_mkdir_recursive): Move to new file. + (_initialize_index_cache): Don't register test. + * common/filestuff.h (mkdir_recursive): Declare. + * common/filestuff.c (mkdir_recursive): Move from + dwarf-index-cache.c. Return bool. + +2018-10-27 Tom Tromey <tom@tromey.com> + + * dwarf-index-write.c (write_psymtabs_to_index): Move + make_temp_filename to common/pathstuff.c. + * common/pathstuff.h (make_temp_filename): Declare. + * common/pathstuff.c (make_temp_filename): New function, moved + from dwarf-index-write.c. + +2018-10-27 Tom Tromey <tom@tromey.com> + + * procfs.c (procfs_target::create_inferior): Use get_shell. + * cli/cli-cmds.c (shell_escape): Use get_shell. + * windows-nat.c (windows_nat_target::create_inferior): Use + get_shell. + * common/pathstuff.c (get_shell): New function. + * nat/fork-inferior.c (SHELL_FILE, get_startup_shell): Remove. + (fork_inferior): Use get_shell. + * common/pathstuff.h (get_shell): Declare. + +2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * NEWS: Mention changes to 'info [args|functions|locals|variables]' + +2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * stack.c (print_variable_and_value_data): Add preg and treg. + (print_frame_local_vars): Add quiet, regexp and t_regexp arguments, + and update callers. + (print_frame_arg_vars): Likewise. + (prepare_reg): New function. + (info_locals_command): Extract info print args and use them. + (info_args_command): Likewise. + (_initialize_stack): Modify on-line help. + * symtab.c (treg_matches_sym_type_name): New function. + (search_symbols): New arg t_regexp. + (symtab_symbol_info): New args quiet, regexp, t_regexp. + (info_variables_command): Extract info print args and use them. + (info_functions_command): Likewise. + (info_types_command): Update call to symtab_symbol_info. + (_initialize_symtab): Modify on-line help. + * symtab.h (treg_matches_sym_type_name): New function. + (search_symbols): New t_regexp arg. + +2018-10-27 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * cli-utils.c (extract_arg_maybe_quoted): New function. + (extract_info_print_args): New function. + (info_print_args_help): New function. + (report_unrecognized_option_error): New function. + * cli-utils.h (extract_arg_maybe_quoted): New function. + (extract_info_print_args): New function. + (info_print_args_help): New function. + (report_unrecognized_option_error): New function. + +2018-10-26 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (recursively_compute_inclusions): Use std::vector. + (compute_compunit_symtab_includes): Update. + * symtab.h: (symtab_ptr): Remove typedef. Don't define a VEC. + (compunit_symtab_ptr): Likewise. + +2018-10-26 John Baldwin <jhb@FreeBSD.org> + + * fbsd-tdep.c (fbsd_print_auxv_entry): Only use + default_print_auxv_entry for specific tag values. + +2018-10-26 John Baldwin <jhb@FreeBSD.org> + + * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_HWCAP2. + +2018-10-26 Jim Wilson <jimw@sifive.com> + + * riscv-linux-tdep.c: Include tramp-frame.h and trad-frame.h. + (riscv_linux_sigframe_init): Declare. + (RISCV_INST_LI_A7_SIGRETURN, RISCV_INT_ECALL): New. + (riscv_linux_sigframe): New. + (SIGFRAME_SIGINFO_SIZE, UCONTEXT_MCONTEXT_OFFSET): New. + (riscv_linux_sigframe_init): Define. + (riscv_linux_init_abi): Call tramp_frame_prepend_unwinder. + + * riscv-tdep.c (riscv_isa_xlen): Refer to riscv-tdep.h comment. + (riscv_isa_flen): Likewise. Drop static. + * riscv-tdep.h (riscv_isa_xlen): Move riscv-tdep.c comment to here. + (riscv_isa_flen): Likewise. Declare. + +2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> + Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_htm_vsx32l) + (tdesc_powerpc_isa207_htm_vsx64l): Declare. + * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TM_SPRREGSET) + (PPC32_LINUX_SIZEOF_CGPRREGSET, PPC64_LINUX_SIZEOF_CGPRREGSET) + (PPC_LINUX_SIZEOF_CFPRREGSET, PPC_LINUX_SIZEOF_CVMXREGSET) + (PPC_LINUX_SIZEOF_CVSXREGSET, PPC_LINUX_SIZEOF_CPPRREGSET) + (PPC_LINUX_SIZEOF_CDSCRREGSET, PPC_LINUX_SIZEOF_CTARREGSET): + Define. + (struct ppc_linux_features) <htm>: New field. + (ppc_linux_no_features): Add initializer for htm field. + * arch/ppc-linux-common.c (ppc_linux_match_description): Return + new tdescs. + * nat/ppc-linux.h (PPC_FEATURE2_HTM, NT_PPC_TM_CGPR) + (NT_PPC_TM_CFPR, NT_PPC_TM_CVMX, NT_PPC_TM_CVSX) + (NT_PPC_TM_SPR, NT_PPC_TM_CTAR, NT_PPC_TM_CPPR, NT_PPC_TM_CDSCR): + Define if not already defined. + * features/Makefile (WHICH): Add rs6000/powerpc-isa207-htm-vsx32l + and rs6000/powerpc-isa207-htm-vsx64l. + (XMLTOC): Add rs6000/powerpc-isa207-htm-vsx32l.xml and + rs6000/powerpc-isa207-htm-vsx64l.xml. + * features/rs6000/power-htm-spr.xml: New file. + * features/rs6000/power-htm-core.xml: New file. + * features/rs6000/power64-htm-core.xml: New file. + * features/rs6000/power-htm-fpu.xml: New file. + * features/rs6000/power-htm-altivec.xml: New file. + * features/rs6000/power-htm-vsx.xml: New file. + * features/rs6000/power-htm-ppr.xml: New file. + * features/rs6000/power-htm-dscr.xml: New file. + * features/rs6000/power-htm-tar.xml: New file. + * features/rs6000/powerpc-isa207-htm-vsx32l.xml: New file. + * features/rs6000/powerpc-isa207-htm-vsx64l.xml: New file. + * features/rs6000/powerpc-isa207-htm-vsx32l.c: Generate. + * features/rs6000/powerpc-isa207-htm-vsx64l.c: Generate. + * regformats/rs6000/powerpc-isa207-htm-vsx32l.dat: Generate. + * regformats/rs6000/powerpc-isa207-htm-vsx64l.dat: Generate. + * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call + fetch_regset with HTM regsets. + (store_register, store_ppc_registers): Call store_regset with HTM + regsets. + (ppc_linux_nat_target::read_description): Set htm field in the + features struct if needed. + * ppc-linux-tdep.c: Include + features/rs6000/powerpc-isa207-htm-vsx32l.c and + features/rs6000/powerpc-isa207-htm-vsx64l.c. + (ppc32_regmap_tm_spr, ppc32_regmap_cgpr, ppc64_le_regmap_cgpr) + (ppc64_be_regmap_cgpr, ppc32_regmap_cfpr, ppc32_le_regmap_cvmx) + (ppc32_be_regmap_cvmx, ppc32_regmap_cvsx, ppc32_regmap_cppr) + (ppc32_regmap_cdscr, ppc32_regmap_ctar): New globals. + (ppc32_linux_tm_sprregset, ppc32_linux_cgprregset) + (ppc64_be_linux_cgprregset, ppc64_le_linux_cgprregset) + (ppc32_linux_cfprregset, ppc32_le_linux_cvmxregset) + (ppc32_be_linux_cvmxregset, ppc32_linux_cvsxregset) + (ppc32_linux_cpprregset, ppc32_linux_cdscrregset) + (ppc32_linux_ctarregset): New globals. + (ppc_linux_cgprregset, ppc_linux_cvmxregset): New functions. + (ppc_linux_collect_core_cpgrregset): New function. + (ppc_linux_iterate_over_regset_sections): Call back with the htm + regsets. + (ppc_linux_core_read_description): Check if the tm spr section is + present and set htm in the features struct. + (_initialize_ppc_linux_tdep): Call + initialize_tdesc_powerpc_isa207_htm_vsx32l and + initialize_tdesc_powerpc_isa207_htm_vsx64l. + * ppc-linux-tdep.h (ppc_linux_cgprregset, ppc_linux_cvmxregset): + Declare. + (ppc32_linux_tm_sprregset, ppc32_linux_cfprregset) + (ppc32_linux_cvsxregset, ppc32_linux_cpprregset) + (ppc32_linux_cdscrregset, ppc32_linux_ctarregset): Declare. + * ppc-tdep.h (struct gdbarch_tdep) <have_htm_spr, have_htm_core>: + New fields. + <have_htm_fpu, have_htm_altivec, have_htm_vsx>: + Likewise. + <ppc_cppr_regnum, ppc_cdscr_regnum, ppc_ctar_regnum>: Likewise. + <ppc_cdl0_regnum, ppc_cvsr0_regnum, ppc_cefpr0_regnum>: Likewise. + (enum) <PPC_TFHAR_REGNUM, PPC_TEXASR_REGNUM, PPC_TFIAR_REGNUM>: + New enum fields. + <PPC_CR0_REGNUM, PPC_CCR_REGNUM, PPC_CXER_REGNUM>: Likewise. + <PPC_CLR_REGNUM, PPC_CCTR_REGNUM, PPC_CF0_REGNUM>: Likewise. + <PPC_CFPSCR_REGNUM, PPC_CVR0_REGNUM, PPC_CVSCR_REGNUM>: Likewise. + <PPC_CVRSAVE_REGNUM, PPC_CVSR0_UPPER_REGNUM>: Likewise. + <PPC_CPPR_REGNUM, PPC_CDSCR_REGNUM>: Likewise. + <PPC_CTAR_REGNUM>: Likewise. + (PPC_IS_TMSPR_REGNUM, PPC_IS_CKPTGP_REGNUM, PPC_IS_CKPTFP_REGNUM) + (PPC_IS_CKPTVMX_REGNUM, PPC_IS_CKPTVSX_REGNUM): Define. + * rs6000-tdep.c (IS_CDFP_PSEUDOREG, IS_CVSX_PSEUDOREG) + (IS_CEFP_PSEUDOREG): Define. + (rs6000_register_name): Hide the upper halves of checkpointed VSX + registers. Return names for the checkpointed DFP, VSX, and EFP + pseudo registers. + (rs6000_pseudo_register_type): Remove initial assert and raise an + internal error in the else clause instead. Return types for the + checkpointed DFP, VSX, and EFP pseudo registers. + (dfp_pseudo_register_read, dfp_pseudo_register_write): Handle + checkpointed DFP pseudo registers. + (vsx_pseudo_register_read, vsx_pseudo_register_write): Handle + checkpointed VSX pseudo registers. + (efp_pseudo_register_read, efp_pseudo_register_write): Rename + from efpr_pseudo_register_read and + efpr_pseudo_register_write. Handle checkpointed EFP pseudo + registers. + (rs6000_pseudo_register_read, rs6000_pseudo_register_write): + Handle checkpointed DFP, VSX, and EFP registers. + (dfp_ax_pseudo_register_collect, vsx_ax_pseudo_register_collect) + (efp_ax_pseudo_register_collect): New functions. + (rs6000_ax_pseudo_register_collect): Move DFP, VSX and EFP pseudo + register logic to new functions. Handle checkpointed DFP, VSX, + and EFP pseudo registers. + (rs6000_gdbarch_init): Look for and validate the htm features. + Include checkpointed DFP, VSX and EFP pseudo-registers. + * NEWS: Mention access to PPR, DSCR, TAR, EBB/PMU registers and + HTM registers. + +2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * rs6000-tdep.c (rs6000_gdbarch_init): Reject tdescs with vsx but + without altivec or fpu. + +2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> + Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_EBBREGSET) + (PPC_LINUX_SIZEOF_PMUREGSET): Declare. + * nat/ppc-linux.h (PPC_FEATURE2_EBB, NT_PPC_EBB, NT_PPC_PMU): + Define if not already defined. + * features/rs6000/power-ebb.xml: New file. + * features/rs6000/power-linux-pmu.xml: New file. + * features/rs6000/powerpc-isa207-vsx32l.xml: Include ebb and pmu + features. + * features/rs6000/powerpc-isa207-vsx64l.xml: Likewise. + * features/rs6000/powerpc-isa207-vsx32l.c: Re-generate. + * features/rs6000/powerpc-isa207-vsx64l.c: Re-generate. + * regformats/rs6000/powerpc-isa207-vsx32l.dat: Re-generate. + * regformats/rs6000/powerpc-isa207-vsx64l.dat: Re-generate. + * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call + fetch_regset with ebb and pmu regsets. + (store_register, store_ppc_registers): Call store_regset with ebb + and pmu regsets. + (ppc_linux_nat_target::read_description): Set isa207 field in the + features struct if ebb and pmu are avaiable. + * ppc-linux-tdep.c (ppc32_regmap_ebb, ppc32_regmap_pmu) + (ppc32_linux_ebbregset, ppc32_linux_pmuregset): New globals. + (ppc_linux_iterate_over_regset_sections): Call back with the ebb + and pmu regsets. + (ppc_linux_core_read_description): Check if the pmu section is + present and set isa207 in the features struct. + * ppc-linux-tdep.h (ppc32_linux_ebbregset) + (ppc32_linux_pmuregset): Declare. + * ppc-tdep.h (struct gdbarch_tdep) <ppc_mmcr0_regnum>: New field. + <ppc_mmcr2_regnum, ppc_siar_regnum, ppc_sdar_regnum>: New fields. + <ppc_sier_regnum>: New field. + (enum): <PPC_BESCR_REGNUM, PPC_EBBHR_REGNUM, PPC_EBBRR_REGNUM>: + New enum values. + <PPC_MMCR0_REGNUM, PPC_MMCR2_REGNUM, PPC_SIAR_REGNUM>: New enum + values. + <PPC_SDAR_REGNUM, PPC_SIER_REGNUM>: New enum values. + (PPC_IS_EBB_REGNUM, PPC_IS_PMU_REGNUM): Define. + * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate the + ebb and pmu features. + +2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> + Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa207_vsx32l) + (tdesc_powerpc_isa207_vsx64l): Declare. + * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_TARREGSET): Define. + (struct ppc_linux_features) <isa207>: New field. + (ppc_linux_no_features): Add initializer for isa207 field. + * arch/ppc-linux-common.c (ppc_linux_match_description): Return + new tdescs. + * nat/ppc-linux.h (PPC_FEATURE2_ARCH_2_07, PPC_FEATURE2_TAR) + (NT_PPC_TAR): Define if not already defined. + * features/Makefile (WHICH): Add rs6000/powerpc-isa207-vsx32l and + rs6000/powerpc-isa207-vsx64l. + (XMLTOC): Add rs6000/powerpc-isa207-vsx32l.xml and + rs6000/powerpc-isa207-vsx64l.xml. + * features/rs6000/power-tar.xml: New file. + * features/rs6000/powerpc-isa207-vsx32l.xml: New file. + * features/rs6000/powerpc-isa207-vsx64l.xml: New file. + * features/rs6000/powerpc-isa207-vsx32l.c: Generate. + * features/rs6000/powerpc-isa207-vsx64l.c: Generate. + * regformats/rs6000/powerpc-isa207-vsx32l.dat: Generate. + * regformats/rs6000/powerpc-isa207-vsx64l.dat: Generate. + * ppc-linux-nat.c (fetch_register, fetch_ppc_registers): Call + fetch_regset with the TAR regset. + (store_register, store_ppc_registers): Call store_regset with the + TAR regset. + (ppc_linux_nat_target::read_description): Set isa207 field in the + features struct if needed. + * ppc-linux-tdep.c: Include + features/rs6000/powerpc-isa207-vsx32l.c and + features/rs6000/powerpc-isa207-vsx64l.c. + (ppc32_regmap_tar, ppc32_linux_tarregset): New globals. + (ppc_linux_iterate_over_regset_sections): Call back with the tar + regset. + (ppc_linux_core_read_description): Check if the tar section is + present and set isa207 in the features struct. + (_initialize_ppc_linux_tdep): Call + initialize_tdesc_powerpc_isa207_vsx32l and + initialize_tdesc_powerpc_isa207_vsx64l. + * ppc-linux-tdep.h (ppc32_linux_tarregset): Declare. + * ppc-tdep.h (gdbarch_tdep) <ppc_tar_regnum>: New field. + (enum) <PPC_TAR_REGNUM>: New enum value. + * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate tar + feature. + (ppc_process_record_op31): Record changes to TAR. + +2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com> + Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * arch/ppc-linux-tdesc.h (tdesc_powerpc_isa205_ppr_dscr_vsx32l) + (tdesc_powerpc_isa205_ppr_dscr_vsx64l): Declare. + * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_PPRREGSET) + (PPC_LINUX_SIZEOF_DSCRREGSET): Define. + (struct ppc_linux_features) <ppr_dscr>: New field. + (ppc_linux_no_features): Add initializer for ppr_dscr field. + * arch/ppc-linux-common.c (ppc_linux_match_description): Return + new tdescs. + * nat/ppc-linux.h (PPC_FEATURE2_DSCR, NT_PPC_PPR, NT_PPC_DSCR): + Define if not already defined. + * features/Makefile (WHICH): Add + rs6000/powerpc-isa205-ppr-dscr-vsx32l and + rs6000/powerpc-isa205-ppr-dscr-vsx64l. + (XMLTOC): Add rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and + rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml. + * features/rs6000/power-dscr.xml: New file. + * features/rs6000/power-ppr.xml: New file. + * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml: New file. + * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml: New file. + * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Generate. + * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Generate. + * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx32l.dat: Generate. + * regformats/rs6000/powerpc-isa205-ppr-dscr-vsx64l.dat: Generate. + * ppc-linux-nat.c: Include <sys/uio.h>. + (fetch_regset, store_regset, check_regset): New functions. + (fetch_register, fetch_ppc_registers): Call fetch_regset with + DSCR and PPR regsets. + (store_register, store_ppc_registers): Call store_regset with + DSCR and PPR regsets. + (ppc_linux_get_hwcap2): New function. + (ppc_linux_nat_target::read_description): Call + ppc_linux_get_hwcap2 and check_regset, set ppr_dscr field in the + features struct if needed. + * ppc-linux-tdep.c: Include + features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c and + features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c. + (ppc32_regmap_ppr, ppc32_regmap_dscr, ppc32_linux_pprregset) + (ppc32_linux_dscrregset): New globals. + (ppc_linux_iterate_over_regset_sections): Call back with the ppr + and dscr regsets. + (ppc_linux_core_read_description): Check if the ppr and dscr + sections are present and set ppr_dscr in the features struct. + (_initialize_ppc_linux_tdep): Call + initialize_tdesc_powerpc_isa205_ppr_dscr_vsx32l and + initialize_tdesc_powerpc_isa205_ppr_dscr_vsx64l. + * ppc-linux-tdep.h (ppc32_linux_pprregset) + (ppc32_linux_dscrregset): Declare. + * ppc-tdep.h (struct gdbarch_tdep) <ppc_ppr_regnum>: New field. + <ppc_dscr_regnum>: New field. + (enum) <PPC_PPR_REGNUM, PPC_DSCR_REGNUM>: New enum values. + * rs6000-tdep.c (rs6000_gdbarch_init): Look for and validate ppr + and dscr features. + (ppc_process_record_op31): Record changes to PPR and DSCR. + +2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * rs6000-tdep.c (rs6000_gdbarch_init): Replace line wrapping by a + second initializer line for the have_* variables. Initialize + have_fpu to 0 instead of 1. + +2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * arch/ppc-linux-common.c (ppc_linux_match_description): + Parenthesize tdesc assignements and indent them properly. + +2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * ppc-linux-nat.c (fetch_register): Change if statement to else + if. + (store_register): Likewise. + +2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * rs6000-tdep.c: Remove reggroups.h include. + (rs6000_pseudo_register_reggroup_p): Remove. + (rs6000_gdbarch_init): Remove call to + set_tdesc_pseudo_register_reggroup_p. + +2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * reggroups.c (default_register_reggroup_p): Return true for + decfloat registers and float_reggroup. + +2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * ppc-linux-tdep.c (ppc_linux_collect_vrregset): Remove. + (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): Replace + ppc_linux_collect_vrregset by regcache_collect_regset. + +2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * linux-tdep.c (linux_collect_regset_section_cb): Use + std::vector<gdb_byte> instead of char * and malloc for buf. + Remove xfree. + +2018-10-26 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> + + * xcoffread.c (read_xcoff_symtab): Pass deduced language to + symtab_start instead of always using language_unknown. + +2018-10-26 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_read_misa_reg): Update comment, remove + READ_P parameter, catch and ignore register access errors from + either the old or new MISA location. + (riscv_has_feature): Update call to riscv_read_misa_reg. + +2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com> + + * python/py-function.c (convert_values_to_python): Return + gdbpy_ref<>. Add header comment. + (fnpy_call): Adjust. + +2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com> + + * python/py-cmd.c (cmdpy_completer_helper): Return gdbpy_ref<>. + (cmdpy_completer_handle_brkchars): Adjust. + (cmdpy_completer): Adjust. + +2018-10-25 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-linux-nat.c (riscv_linux_nat_target::fetch_registers): + Pass correct regnum to raw_supply_zeroed. + +2018-10-23 Hafiz Abid Qadeer <abidh@codesourcery.com> + + * regcache.c (cooked_read_test): Add CSKY to the list of + architectures with a save_reggroup + +2018-10-23 Simon Marchi <simon.marchi@polymtl.ca> + + PR gdb/23368 + * infrun.c (follow_exec): In the follow_exec_mode_new case, + transfer terminal state from old new new inferior. + * terminal.h (swap_terminal_info): New function. + * inflow.c (swap_terminal_info): New function. + +2018-10-23 Tom Tromey <tom@tromey.com> + + * record-btrace.c (get_thread_current_frame_id): Rename from + get_thread_current_frame. Return a frame_id. + (record_btrace_start_replaying): Update. + +2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_register_name): Use the user-friendly names + for CSRs. + +2018-10-23 Joel Brobecker <brobecker@adacore.com> + + * riscv-tdep.c (riscv_gdbarch_init): Set the gdbarch's + have_nonsteppable_watchpoint attribute to 1. + +2018-10-23 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_gdb_reg_names): Update comment, and all + register names. + (struct register_alias): Rename to... + (struct riscv_register_alias): ...this, and update comment. + (riscv_register_aliases): Update type, and alias names. Remove + CSR names from this list. + (riscv_register_name): Use riscv_gdb_reg_names for int and float + register names. Add an extra assertion. + (riscv_is_regnum_a_named_csr): New function. + (riscv_register_reggroup_p): Use riscv_is_regnum_a_named_csr. + +2018-10-23 John Darrington <john@darrington.wattle.id.au> + + * configure.tgt: Add configuration for s12z. + * s12z-tdep.c: New file. + * NEWS: Mention new target. + +2018-10-22 Jim Wilson <jimw@sifive.com> + + * riscv-tdep.c (riscv_push_dummy_call) <in_reg>: Check for value in + FP reg smaller than FP reg size, and fill with -1 instead of 0. + + * riscv-tdep.c (riscv_fpreg_d_type, riscv_fpreg_q_type): New. + (riscv_register_type): Use them. + (riscv_print_one_register_info): Handle union of floats same as float. + * riscv-tdep.h (struct gdbarch_tdep): Add riscv_fpreg_d_type and + riscv_fpreg_q_type fields. + +2018-10-21 Simon Marchi <simon.marchi@ericsson.com> + + * gdbarch.sh (gdbarch_num_cooked_regs): New. + * gdbarch.h: Re-generate. + * ax-gdb.c (gen_expr): Use gdbarch_num_cooked_regs. + * dwarf2-frame.c (dwarf2_frame_cache): Likewise. + * eval.c (evaluate_subexp_standard): Likewise. + * findvar.c (value_of_register): Likewise. + (value_of_register_lazy): Likewise. + (address_from_register): Likewise. + * frame.c (get_frame_register_bytes): Likewise. + * gdbarch-selftests.c (register_to_value_test): Likewise. + * h8300-tdep.c (h8300_register_type): Likewise. + * i386-tdep.c (i386_dbx_reg_to_regnum): Likewise. + (i386_svr4_reg_to_regnum): Likewise. + * infcmd.c (default_print_registers_info): Likewise. + (registers_info): Likewise. + (print_vector_info): Likewise. + (default_print_float_info): Likewise. + * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise. + * mdebugread.c (mdebug_reg_to_regnum): Likewise. + * mi/mi-main.c (mi_cmd_data_list_register_names): Likewise. + (mi_cmd_data_list_changed_registers): Likewise. + (mi_cmd_data_list_register_values): Likewise. + (mi_cmd_data_write_register_values): Likewise. + (mi_cmd_trace_frame_collected): Likewise. + * mips-tdep.c (print_gp_register_row): Likewise. + (mips_print_registers_info): Likewise. + * nds32-tdep.c (nds32_gdbarch_init): Likewise. + * regcache.c (init_regcache_descr): Likewise. + (register_size): Likewise. + (register_dump::dump): Likewise. + (cooked_read_test): Likewise. + (cooked_write_test): Likewise. + * rs6000-tdep.c (rs6000_register_sim_regno): Likewise. + (rs6000_gdbarch_init): Likewise. + * stabsread.c (stab_reg_to_regnum): Likewise. + * stack.c (info_frame_command): Likewise. + * target-descriptions.c (tdesc_register_name): Likewise. + * trad-frame.c (trad_frame_alloc_saved_regs): Likewise. + * tui/tui-regs.c (tui_show_register_group): Likewise. + * user-regs.c (user_reg_map_name_to_regnum): Likewise. + (user_reg_map_regnum_to_name): Likewise. + (value_of_user_reg): Likewise. + (maintenance_print_user_registers): Likewise. + * xtensa-tdep.c (xtensa_find_register_by_name): Likewise. + (xtensa_register_name): Likewise. + (xtensa_register_type): Likewise. + (xtensa_reg_to_regnum): Likewise. + (xtensa_pseudo_register_read): Likewise. + (xtensa_pseudo_register_write): Likewise. + +2018-10-21 Simon Marchi <simon.marchi@polymtl.ca> + + * amd64-tdep.c (amd64_pseudo_register_read_value): Use + correctly-sized buffer with raw_read. + (amd64_pseudo_register_write): Use correctly-sized buffer for + raw_read/raw_write. + +2018-10-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * typeprint.c (_initialize_typeprint): Fix wrong prefixname arg + in add_prefix_cmd of set print type. + +2018-10-19 Tom Tromey <tom@tromey.com> + + PR tui/18388: + * NEWS: Mention tabset deprecation. + * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals. + (update_tab_width): New function. + (tui_set_tab_width, tui_show_tab_width): New functions. + (tui_set_tab_width_command): Use update_tab_width. + (_initialize_tui_win): Move to end of file. Deprecate "tabset". + Add new "set tui tab-width" command. + * tui/tui-source.c (tui_set_source_content): Update. + * tui/tui-disasm.c (tui_set_disassem_content): Update. + * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len): + Don't declare. + (tui_tab_width): Declare. + * tui/tui-data.c (default_tab_len, tui_default_tab_len) + (tui_set_default_tab_len): Remove. + +2018-10-19 Tom Tromey <tom@tromey.com> + + * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence) + (key_is_backspace, tui_getc): Don't declare. + * tui/tui-io.c (key_is_start_sequence): Now static. + (key_is_end_sequence, key_is_backspace): Remove. + (tui_getc): Now static. + +2018-10-19 Tom Tromey <tom@tromey.com> + + * symfile.c (reread_symbols): Clear "static_links". + +2018-10-19 Alan Hayward <alan.hayward@arm.com> + + * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New + define. + (aarch64_linux_sigframe_init): Extra boundary checks. + +2018-10-19 Andreas Arnez <arnez@linux.ibm.com> + + * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield + the possibly non-existent tdesc type 'vec128', but the type of raw + register v16 instead. + +2018-10-19 Gary Benson <gbenson@redhat.com> + + * cli/cli-interp.c (cli_interp::~cli_interp): New function. + +2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com> + + PR cli/23785 + * cli/cli-dump.c (restore_binary_file): Check if "file" is + NULL. + +2018-10-17 Paul Koning <paul_koning@dell.com> + + * charset.c (convert_between_encodings): Fix unsigned overflow. + +2018-10-17 John Baldwin <jhb@FreeBSD.org> + + * fbsd-nat.c (fbsd_nat_target::info_proc) Use + fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry. + * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static. + (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry): + New functions. + (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header + and fbsd_info_proc_mappings_header. + * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove. + (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry): + New. + +2018-10-17 Joel Brobecker <brobecker@adacore.com> + + * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as + Solaris Maintainer. + +2018-10-15 Tom Tromey <tom@tromey.com> + + * tui/tui.c (strcat_to_buf): Remove casts. + * tui/tui-winsource.c (tui_show_source_line) + (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts. + * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts. + * tui/tui-windata.c (tui_first_data_item_displayed) + (tui_delete_data_content_windows, tui_erase_data_content) + (tui_display_all_data, tui_display_data_from) + (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts. + * tui/tui-win.c (tui_set_win_height) + (make_invisible_and_set_new_height, parse_scrolling_args): Remove + casts. + * tui/tui-win.c (tui_resize_all): Remove casts. + (tui_scroll_backward_command, tui_set_focus) + (tui_set_tab_width_command): Likewise. + * tui/tui-source.c (tui_vertical_source_scroll): Remove cast. + * tui/tui-regs.c (tui_show_register_group): Remove cast. + * tui/tui-layout.c (tui_set_layout_by_name): Remove cast. + * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast. + * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content): + Remove casts. + +2018-10-15 Simon Marchi <simon.marchi@ericsson.com> + + * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as + AArch64/ARM maintainer. + +2018-10-11 Gary Benson <gbenson@redhat.com> + + * interps.h (interp::m_name): Make private and mutable. + * interps.c (interp::~interp): Free m_name. + +2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com> + Simon Marchi <simark@simark.ca> + + * README (`configure' options): Add documentation for new + "--enable-unit-tests" option. + * acinclude.m4: Include "selftest.m4". + * configure: Regenerate. + * configure.ac: Use "GDB_AC_SELFTEST". + * maint.c (maintenance_selftest): Update message informing + that selftests have been disabled. + (maintenance_info_selftests): Likewise. + * selftest.m4: New file. + +2018-10-10 Gary Benson <gbenson@redhat.com> + + * remote.c (remote_target::remote_send_printf): Add + missing va_end found by Coverity. + +2018-10-10 Markus Metzger <markus.t.metzger@intel.com> + + * btrace.c (ftrace_update_function): Add indirect jump heuristic. + +2018-10-09 Tom Tromey <tom@tromey.com> + + * configure: Rebuild. + * sanitize.m4 (AM_GDB_UBSAN): Default to no. + * NEWS: Update --enable-ubsan documentation. + +2018-10-09 Gary Benson <gbenson@redhat.com> + + * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun + found by Coverity. + +2018-10-08 Tom Tromey <tom@tromey.com> + + * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused + variable. + (riscv_fbsd_init_abi): Likewise. + +2018-10-08 Weimin Pan <weimin.pan@oracle.com> + * valops.c (value_struct_elt_for_reference): Rename local variable + to work around the shadowing a previous local warning. + +2018-10-08 John Baldwin <jhb@FreeBSD.org> + + * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c. + * NEWS: Mention new FreeBSD/riscv native configuration. + * configure.host: Add riscv*-*-freebsd*. + * configure.nat: Likewise. + * riscv-fbsd-nat.c: New file. + +2018-10-08 John Baldwin <jhb@FreeBSD.org> + + * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o. + (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h. + (ALLDEPFILES): Add riscv-fbsd-tdep.c. + * NEWS: Mention new FreeBSD/riscv target. + * configure.tgt: Add riscv*-*-freebsd*. + * riscv-fbsd-tdep.c: New file. + * riscv-fbsd-tdep.h: New file. + +2018-10-08 John Baldwin <jhb@FreeBSD.org> + + * regcache.h (struct regcache_map_entry): Note that this type can + be used with traditional frame caches. + * trad-frame.c (trad_frame_set_reg_regmap): New. + * trad-frame.h (trad_frame_set_reg_regmap): New. + +2018-10-08 Weimin Pan <weimin.pan@oracle.com> + + PR c++/16841 + * valops.c (get_virtual_base_offset): New function. + (value_struct_elt_for_reference): Use it to get virtual base offset + and add it in calculating class member address. + +2018-10-08 John Darrington <john@darrington.wattle.id.au> + + * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field. + (check_producer): Check if the producer is codewarrior. + (producer_is_codewarrior): New function. + (lnp_state_machine::record_line): Ignore is_stmt flag for records + produced by codewarrior. + (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior. + +2018-10-06 Tom Tromey <tom@tromey.com> + + PR python/19399: + * python/py-inferior.c: Add "architecture" entry. + (infpy_architecture): New function. + +2018-10-06 Tom Tromey <tom@tromey.com> + + PR python/21765: + * python/py-symbol.c (gdbpy_initialize_symbols): Redefine + SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN, + SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN, + SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK. + +2018-10-06 Tom Tromey <tom@tromey.com> + + PR build/17077: + * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..". + * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c, + microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in + #include. + +2018-10-06 Tom Tromey <tom@tromey.com> + + * python/py-breakpoint.c (bppy_get_location): Handle a + bp_breakpoint without a location. + +2018-10-06 Tom Tromey <tom@tromey.com> + + * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq) + (_RegEx): Reformat help text. + * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches) + (AnyCallerIs, AnyCallerMatches): Reformat help text. + * python/lib/gdb/function/as_string.py (_AsString): Reformat help + text. + * python/lib/gdb/command/xmethods.py (InfoXMethod) + (EnableXMethod, DisableXMethod): Remove help indentation. + Capitalize meta-syntactic variables. + * python/lib/gdb/command/unwinders.py (InfoUnwinder) + (EnableUnwinder, DisableUnwinder): Remove help indentation. + Capitalize meta-syntactic variables. + * python/lib/gdb/command/explore.py (ExploreCommand) + (ExploreValueCommand, ExploreTypeCommand): Reformat help text. + * python/lib/gdb/command/type_printers.py (InfoTypePrinter) + (EnableTypePrinter, DisableTypePrinter): Remove help indentation. + * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter): + Remove help indentation. + (EnablePrettyPrinter, DisablePrettyPrinter): Likewise. + * python/lib/gdb/command/frame_filters.py (EnableFrameFilter) + (DisableFrameFilter, SetFrameFilterPriority) + (ShowFrameFilterPriority, InfoFrameFilter): Reword help text. + +2018-10-06 Tom Tromey <tom@tromey.com> + + PR tui/28819: + * tui/tui-io.c (gdb_wgetch): New function. + (tui_mld_getc, tui_getc): Use it. + +2018-10-05 Tom Tromey <tom@tromey.com> + + * sol-thread.c (sol_thread_target::wait): Rename inner + "save_ptid". + +2018-10-04 Tom Tromey <tom@tromey.com> + + * configure: Rebuild. + * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local. + +2018-10-04 Tom Tromey <tom@tromey.com> + + * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner + declaration of "block". + +2018-10-04 Tom Tromey <tom@tromey.com> + + * common/filestuff.c (fdwalk): Remove inner declaration of + "result". + +2018-10-04 Tom Tromey <tom@tromey.com> + + * msp430-tdep.c (msp430_push_dummy_call): Rename inner + "structs_addr" and hoist declaration. + +2018-10-04 Tom Tromey <tom@tromey.com> + + * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new + variable "size". + +2018-10-04 Tom Tromey <tom@tromey.com> + + * mdebugread.c (parse_partial_symbols): Use std::string. + +2018-10-04 Tom Tromey <tom@tromey.com> + + * ctf.c (SET_ARRAY_FIELD): Rename "u32". + * p-valprint.c (pascal_val_print): Split inner "i" variable. + * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop + header. + * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in + more inner scope. + * xcoffread.c (read_xcoff_symtab): Rename inner "symbol". + * varobj.c (varobj_update): Rename inner "newobj", + "type_changed". + * valprint.c (generic_emit_char): Rename inner "buf". + * valops.c (find_overload_match): Rename inner "temp". + (value_struct_elt_for_reference): Declare "v" in more inner + scope. + * v850-tdep.c (v850_push_dummy_call): Rename "len". + * unittests/array-view-selftests.c (run_tests): Rename inner + "vec". + * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop + header. + * tracepoint.c (merge_uploaded_trace_state_variables): Declare + "tsv" in more inner scope. + (print_one_static_tracepoint_marker): Rename inner + "tuple_emitter". + * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower. + (tic6x_push_dummy_call): Don't redeclare "addr". + * target-float.c: Declare "dto" lower. + * symtab.c (lookup_local_symbol): Rename inner "sym". + (find_pc_sect_line): Rename inner "pc". + * stack.c (print_frame): Don't redeclare "gdbarch". + (return_command): Rename inner "gdbarch". + * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner + "sp". + * rust-lang.c (rust_internal_print_type): Declare "i" in loop + header. + * rs6000-tdep.c (ppc_process_record): Rename inner "addr". + * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner + scope. + * remote.c (remote_target::update_thread_list): Don't redeclare + "tp". + (remote_target::process_initial_stop_replies): Rename inner + "thread". + (remote_target::remote_parse_stop_reply): Don't redeclare "p". + (remote_target::wait_as): Don't redeclare "stop_reply". + (remote_target::get_thread_local_address): Rename inner + "result". + (remote_target::get_tib_address): Likewise. + + * regcache.c (cooked_read_test): Rename "regnum". + * record-btrace.c (cmd_record_btrace_start): Rename inner + "exception". + * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in + loop header. + * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop + header. + (ppu2spu_sniffer): Rename inner "buf". + * parse.c (operator_check_standard): Rename inner "type", + "objfile". + * p-valprint.c (pascal_val_print): Introduce new scope for + "low_bound", "high_bound". + * p-exp.y (yylex): Declare "i" in loop header. + * objfiles.c (objfile_relocate1): Declare "i" in loop header. + Lower declaration of "s". + * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop + header. + (nios2_push_dummy_call): Rename "len". + * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static + "buf". + (linux_xfer_osdata_fds, linux_xfer_osdata_shm) + (linux_xfer_osdata_sem, linux_xfer_osdata_msg) + (linux_xfer_osdata_modules): Likewise. + * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len". + (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call) + (mips_o64_push_dummy_call): Likewise. + * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner + "op". + * mi/mi-main.c (list_available_thread_groups): Rename inner + "tuple_emitter". + (mi_cmd_data_read_memory): Rename inner "opts". + * mi/mi-cmd-var.c (varobj_update_one): Rename inner + "tuple_emitter". + * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header. + * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in + more inner scope. + (parse_partial_symbols): Rename inner "pst", "p", "name" + * main.c (captured_main_1): Rename inner "i"s. + * machoread.c (macho_symfile_read_all_oso): Don't redeclare + "oso2". + * linux-tdep.c (linux_info_proc): Rename inner "filename". + * linespec.c (linespec_lexer_lex_string): Rename inner "p". + * infrun.c (handle_no_resumed): Don't redeclare "thread". + (handle_signal_stop): Rename inner "gdbarch". + (handle_command): Declare "signum" in loop header. + * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare + "status". + (examine_prologue): Rename inner "sol" and "sof". + (ia64_extract_return_value): Rename inner "val". Declare another + "val" in a more inner scope. + * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in + inner scope. + * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner + "except". + * findvar.c (default_read_var_value): Don't redeclare "addr". + * f-exp.y (yylex): Declare "i" in loop header. + * eval.c (evaluate_subexp_standard): Don't redeclare "type". + Rename inner "type", "expect_type". + (evaluate_subexp_for_sizeof): Rename inner "pc". + * elfread.c (elf_symfile_read): Rename inner "abfd". + * dwarf2read.c (read_debug_names_from_section): Don't redeclare + "bytes_read". + (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch". + (add_partial_subprogram): Rename inner "lowpc" and "highpc". + (dwarf_decode_line_header): Rename inner "lh". + * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare + "offset". Declare "i" in loop header. + (disassemble_dwarf_expression): Rename inner "addr_size". + * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename + inner "result". + (dwarf_expr_context::execute_stack_op): Rename inner "offset". + * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s. + * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner + "inner_list_emitter". + (do_mixed_source_and_assembly): Rename inner "tuple_emitter". + * disasm-selftests.c (print_one_insn_test): Wrap "bplen" + declaration in a block. + * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower. + * cp-valprint.c (cp_print_value_fields): Don't redeclare + "obstack_final_size". + * cp-support.c (inspect_type): Declare "i" in loop header. + * compile/compile.c (compile_instance::insert_symbol_error): + Rename inner "e". + * common/agent.c (agent_run_command): Remove inner "ret" + declaration. + * coffread.c (coff_symfile_read): Rename inner "name". + (coff_symfile_read): Rename inner "abfd". + * cli/cli-utils.c (get_number_trailer): Rename inner "val". + * cli/cli-cmds.c (print_disassembly): Rename inner "low" and + "high". + * c-exp.y (lex_one_token): Move "len" declaration lower. + * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare + "gdbarch". + (create_exception_master_breakpoint): Likewise. Don't redeclare + "b". + (watch_command_1): Declare "mark" later. + (clear_command): Don't shadow "a" or "b". + (delete_command): Rename inner "b". + (delete_trace_command): Likewise. + * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner + "op". + (arm_gdbarch_init): Remove inner "e_flags". + * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare + "offset" in inner blocks. + +2018-10-04 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf-index-write.c (file_write): Don't write if the vector is + empty. + +2018-10-05 Tom de Vries <tdevries@suse.de> + + * python/py-progspace.c (pspy_solib_name): Fix type mismatch in + PyArg_ParseTuple call. + +2018-10-05 Tom de Vries <tdevries@suse.de> + + * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in + PyArg_ParseTuple call. + +2018-10-04 Joel Brobecker <brobecker@adacore.com> + + * psymtab.c (recursively_search_psymtabs): Reformat parameters + to avoid exceeding 80 characters per line limit. + +2018-10-04 Tom Tromey <tom@tromey.com> + + * symfile.c (syms_from_objfile_1, finish_new_objfile) + (reread_symbols): Update. + * complaints.h (clear_complaints): Remove argument. + * complaints.c (enum complaint_series): Remove. + (series): Remove global. + (complaint_internal): Update. + (clear_complaints): Remove argument. + +2018-10-04 Tom Tromey <tom@tromey.com> + + * symfile.c (symbol_file_add_with_addrs): Do not print "no + debugging symbols" message if there is a separate debug objfile. + +2018-10-04 Tom Tromey <tom@tromey.com> + + PR cli/19551: + * symfile.c (symbol_file_add_with_addrs): Update output. + * psymtab.c (require_partial_symbols): Update output. + +2018-10-04 Tom Tromey <tom@tromey.com> + + PR cli/22234: + * complaints.c: Emit \n. + +2018-10-04 Tom Tromey <tom@tromey.com> + + * symfile.c (symbol_file_add_with_addrs, symbol_file_clear) + (separate_debug_file_exists, find_separate_debug_file) + (add_symbol_file_command, reread_symbols, allocate_symtab) + (allocate_compunit_symtab): Use filtered printing, not + unfiltered. + * psymtab.c (require_partial_symbols, dump_psymtab) + (allocate_psymtab): Use filtered printing, not unfiltered. + +2018-10-04 Tom Tromey <tom@tromey.com> + + * complaints.c (complaint_internal): Correctly check complaint + count. + +2018-10-04 Tom Tromey <tom@tromey.com> + + * complaints.h (struct complaints): Remove declaration. + * complaints.c (clear_complaints): Remove an unused variable. + +2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * MAINTAINERS (Write After Approval): Add self. + +2018-10-03 Tom Tromey <tom@tromey.com> + + * guile/scm-value.c (gdbscm_value_to_string): Initialize + "buffer_contents". + * coffread.c (coff_symtab_read): Initialize "newobj". + +2018-10-03 Simon Marchi <simon.marchi@polymtl.ca> + + * dwarf2read.c (read_func_scope): Remove struct keyword in + range-based for. + +2018-10-03 Tom Tromey <tom@tromey.com> + + * README: Mention --enable-ubsan. + * NEWS: Mention --enable-ubsan. + * acinclude.m4: Include sanitize.m4. + * configure: Rebuild. + * configure.ac: Call AM_GDB_UBSAN. + * sanitize.m4: New file. + +2018-10-03 Tom Tromey <tom@tromey.com> + + * expression.h (enum exp_opcode): Use uint8_t as base type. + * expprint.c (op_name): Handle invalid opcodes. + +2018-10-03 Tom Tromey <tom@tromey.com> + + * parse.c (prefixify_expression): Add assert. + (parse_exp_in_context_1): Throw exception if the expression is + empty. + +2018-10-03 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (read_signed_leb128): Work in ULONGEST. + +2018-10-03 Tom Tromey <tom@tromey.com> + + * c-exp.y (parse_number): Work in unsigned. Remove casts. + +2018-10-03 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (read_subrange_type): Make "negative_mask" + unsigned. + +2018-10-03 Tom Tromey <tom@tromey.com> + + * findvar.c (extract_integer): Do work in an unsigned type. + +2018-10-03 Tom Tromey <tom@tromey.com> + + * common/enum-flags.h (enum_flags::operator~): Add static assert. + * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as + base type. + * objfile-flags.h (enum objfile_flag): Use unsigned as base type. + * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base + type. + * c-lang.h (enum c_string_type_values): Use unsigned as base + type. + * btrace.h (enum btrace_thread_flag): Use unsigned as base type. + +2018-10-03 Tom Tromey <tom@tromey.com> + + * dwarf2-frame.h (dwarf2_frame_state_reg_info) + <~dwarf2_frame_state_reg_info>: Update. + <dwarf2_frame_state_reg_info>: Update. + <alloc_regs>: Add assertion. Update. + <reg>: Now a std::vector. + <num_regs>: Remove. + <swap>: Update. + * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program) + (execute_cfa_program_test, dwarf2_frame_cache): Update. + +2018-10-03 Tom Tromey <tom@tromey.com> + + * namespace.c (add_using_directive): Don't pass NULL to memcpy. + +2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment. + +2018-10-02 Tom Tromey <tom@tromey.com> + + * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest. + +2018-10-02 John Darrington <john@darrington.wattle.id.au> + + * NEWS: Mention changed commands. + * ser-uds.c: New file. + * configure.ac (SER_HARDWIRE): Add ser-uds.o. + * configure: Regenerate. + * Makefile.in: Add new file. + * serial.c (serial_open): Check if filename is a socket + and lookup the appropriate interface accordingly. + +2018-10-01 Alan Hayward <alan.hayward@arm.com> + + * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add + define. + (AARCH64_EXTRA_MAGIC): Likewise. + (AARCH64_FPSIMD_MAGIC): Likewise. + (AARCH64_SVE_MAGIC): Likewise. + (AARCH64_EXTRA_DATAP_OFFSET): Likewise. + (AARCH64_FPSIMD_FPSR_OFFSET): Likewise. + (AARCH64_FPSIMD_FPCR_OFFSET): Likewise. + (AARCH64_FPSIMD_V0_OFFSET): Likewise. + (AARCH64_FPSIMD_VREG_SIZE): Likewise. + (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise. + (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise. + (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise. + (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise. + (AARCH64_SVE_CONTEXT_SIZE): Likewise. + (read_aarch64_ctx): Add function. + (aarch64_linux_sigframe_init): Detect FP registers. + +2018-10-01 Alan Hayward <alan.hayward@arm.com> + + * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here. + (AARCH64_D0_REGNUM): Likewise. + (AARCH64_S0_REGNUM): Likewise. + (AARCH64_H0_REGNUM): Likewise. + (AARCH64_B0_REGNUM): Likewise. + (AARCH64_SVE_V0_REGNUM): Likewise. + * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here. + (AARCH64_D0_REGNUM): Likewise. + (AARCH64_S0_REGNUM): Likewise. + (AARCH64_H0_REGNUM): Likewise. + (AARCH64_B0_REGNUM): Likewise. + (AARCH64_SVE_V0_REGNUM): Likewise. + +2018-10-01 Gary Benson <gbenson@redhat.com> + + * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef. + * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use + prfpregset_t instead of gdb_prfpregset_t. + * configure.ac (PRFPREGSET_T_BROKEN): Remove check. + * configure, config.in: Rebuild. + +2018-10-01 Gary Benson <gbenson@redhat.com> + + * common/gdb_proc_service.h: New file, factored out from... + * gdb_proc_service.h: Moved common code to the above file. + * Makefile.in (HFILES_NO_SRCDIR): Add the above new file. + +2018-10-01 Gary Benson <gbenson@redhat.com> + + * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is + undefined. Use elf_fpregset_t if prfpregset_t is undefined. + +2018-10-01 Gary Benson <gbenson@redhat.com> + + * configure.ac: Check if sys/procfs.h defines elf_fpregset_t. + (AC_CHECK_HEADERS): Check for linux/elf.h. + * configure, config.in: Rebuild. + * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h + doesn't define elf_fpregset_t. + +2018-10-01 Gary Benson <gbenson@redhat.com> + + * gdb_proc_service.h: Whitespace change. + +2018-10-01 Tom Tromey <tom@tromey.com> + + * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H. + * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H. + * common/scoped_fd.h: Don't check HAVE_UNISTD_H. + +2018-10-01 Tom Tromey <tom@tromey.com> + + * README: Minor change. + +2018-09-30 Pedro Alves <palves@redhat.com> + + * darwin-nat-info.c (darwin_debug_regions_recurse) + (info_mach_exceptions_command): Remove unused local variables. + * darwin-nat.c (darwin_decode_notify_message) + (darwin_nat_target::resume, darwin_nat_target::mourn_inferior) + (darwin_stop_inferior, darwin_setup_exceptions) + (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him) + (darwin_nat_target::attach, darwin_nat_target::detach) + (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused + local variables. + * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local + variables. + +2018-09-29 Tom Tromey <tom@tromey.com> + + * README: Remove some leftover text. + +2018-09-29 Tom Tromey <tom@tromey.com> + + * PROBLEMS: Rewrite. + * README: Update. + +2018-09-28 John Baldwin <jhb@FreeBSD.org> + + * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to + case with explicit breakpoint kind. + * riscv-tdep.c (show_use_compressed_breakpoints): Remove + 'additional_info' and related logic. + (riscv_debug_breakpoints): New variable. + (riscv_breakpoint_kind_from_pc): Use the length of the existing + instruction to determine the breakpoint kind. + (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints' + flag. Update description of 'set/show riscv + use-compressed-breakpoints' flag. + +2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com> + + (NEWS): Mention changes to frame related commands. + * cli/cli-decode.c (add_cmd_suppress_notification): New function. + (add_prefix_cmd_suppress_notification): New function. + (add_com_suppress_notification): Call + add_cmd_suppress_notification. + * command.h (add_cmd_suppress_notification): Declare. + (add_prefix_cmd_suppress_notification): Declare. + * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include. + (parse_frame_specification): Moved from stack.c, with + simplification to handle a single argument. + (mi_cmd_stack_select_frame): Use parse_frame_specification, the + switch to the selected frame. Add a header comment. + * stack.c: Remove 'safe-ctype.h' include. + (find_frame_for_function): Add declaration. + (find_frame_for_address): New function. + (parse_frame_specification): Moved into mi/mi-cmd-stack.c. + (frame_selection_by_function_completer): New function. + (info_frame_command): Rename to... + (info_frame_command_core): ...this, and update parameter types. + (select_frame_command): Rename to... + (select_frame_command_core): ...this, and update parameter types. + (frame_command): Rename to... + (frame_command_core): ...this, and update parameter types. + (class frame_command_helper): New class to wrap implementations of + frame related sub-commands. + (frame_apply_cmd_list): New static global. + (frame_cmd_list): Make static. + (select_frame_cmd_list): New global for sub-commands. + (info_frame_cmd_list): New global for sub-commands. + (_initialize_stack): Register sub-commands for 'frame', + 'select-frame', and 'info frame'. Update 'frame apply' commands + to use frame_apply_cmd_list. Move function local static + frame_apply_list to file static frame_apply_cmd_list for + consistency. + * stack.h (select_frame_command): Delete declarationn. + (select_frame_for_mi): Declare new function. + +2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_insn::decode): Decode c.lui. + (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI, + and NOP. + +2018-09-26 Simon Marchi <simon.marchi@ericsson.com> + + * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove. + +2018-09-26 Tom Tromey <tom@tromey.com> + + * valops.c (auto_abandon): Remove dead code. + +2018-09-26 Tom Tromey <tom@tromey.com> + + * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s. + +2018-09-24 Tom Tromey <tom@tromey.com> + + * common/pathstuff.c (get_standard_cache_dir): Make + "xdg_cache_home" and "home" const. + * top.c (init_history): Make "tmpenv" const. + * main.c (get_init_files): Make "homedir" const. + +2018-09-23 Tom Tromey <tom@tromey.com> + + PR python/18852: + * python/py-param.c (get_set_value): Use gdbpy_handle_exception. + +2018-09-23 Tom Tromey <tom@tromey.com> + + * python/py-function.c (fnpy_call): Use gdbpy_handle_exception. + * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception. + * python/python-internal.h (gdbpy_handle_exception): Declare. + * python/py-utils.c (gdbpy_handle_exception): New function. + +2018-09-23 Tom Tromey <tom@tromey.com> + + PR python/17284: + * python/py-type.c (typy_template_argument): Check for negative + argument number. + +2018-09-23 Tom Tromey <tom@tromey.com> + + PR python/14062: + * python/python.c (gdbpy_run_events): Do not ignore exceptions. + +2018-09-23 Tom Tromey <tom@tromey.com> + + PR python/18170: + * python/py-value.c (valpy_int): Allow conversion from pointer + type. + +2018-09-23 Tom Tromey <tom@tromey.com> + + PR python/20126: + * python/py-value.c (valpy_int): Respect type sign. + +2018-09-23 Tom Tromey <tom@tromey.com> + + PR python/18352; + * python/py-value.c (valpy_float): Allow conversions from int or + char. + (valpy_int, valpy_long): Allow conversions from float. + +2018-09-23 Tom Tromey <tom@tromey.com> + + * ctf.c (ctf_start): Use gdb_fopen_cloexec. + * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec. + +2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize + __sighndlr. + * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise. + +2018-08-02 Jon Turney <jon.turney@dronecode.org.uk> + + * windows-nat.c (windows_nat_target::wait): Remove a spurious + target_terminal::ours(). + +2018-09-23 Simon Marchi <simon.marchi@ericsson.com> + + * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type + of vl to ULONGEST. + +2018-09-21 Yacov Simhony <ysimhony@gmail.com> + + * breakpoint.c (update_inserted_breakpoint_locations): Remove + redundant condition. + +2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * proc-utils.h (PROC_CTL_WORD_TYPE): Remove. + + * procfs.c: Don't check for PR_MODEL_NATIVE definition. + * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references. + * sol-thread.c (ps_pdmodel): Don't guard definition. + + * procfs.c: Fix formatting. + + * procfs.c (sysset_t_alloc): Remove. + (create_procinfo): Use XNEW instead of sysset_t_alloc. + (procfs_debug_inferior): Likewise. + (procfs_set_exec_trap): Likewise. + (proc_set_traced_sysentry): Don't allocate argp dynamically. + (proc_set_traced_sysexit): Likewise. + + * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning. + (dead_procinfo): Likewise. + (proc_warn): Likewise. + (proc_error): Likewise. + (proc_get_LDT_entry): Likewise. + (do_attach): Likewise. + (procfs_target::pid_to_str): Likewise. + (iterate_over_mappings): Likewise. + + * procfs.c (create_procinfo): Fix ARI warning. + (proc_get_status): Likewise. + (proc_stop_process): Likewise. + (proc_run_process): Likewise. + (proc_kill): Likewise. + (proc_get_LDT_entry): Likewise. + (procfs_find_LDT_entry): Likewise. + (proc_update_threads): Likewise. + (proc_iterate_over_threads): Likewise. + (do_attach): Likewise. + (procfs_xfer_memory): Likewise. + (invalidate_cache): Likewise. + (procfs_target::resume): Likewise. + (procfs_init_inferior): Likewise. + (procfs_set_exec_trap): Likewise. + (procfs_target::thread_alive): Likewise. + (procfs_target::pid_to_exec_file): Likewise. + (iterate_over_mappings): Likewise. + (procfs_target::make_corefile_notes): Likewise. + * sol-thread.c (sol_thread_target::thread_alive): Likewise. + + * procfs.c (procfs_find_LDT_entry): Silence ARI warning. + (procfs_find_LDT_entry): Likewise. + * sol-thread.c (ps_lgetLDT): Likewise. + +2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + PR tdep/17903 + * procfs.c (procfs_target): Declare pid_to_exec_file. + (procfs_target::pid_to_exec_file): New. + +2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1 + renaming. + Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1, + AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2. + +2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * i386-v4-nat.c (regmap, supply_gregset, fill_gregset) + (supply_fpregset, fill_fpregset): Move ... + * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here. + Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards. + Remove references to ioctl-based procfs. + Include <sys/reg.h>. + Remove PR_MODEL_NATIVE guards. + * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o. + * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c. + +2018-09-19 Xavier Roirand <roirand@adacore.com> + + PR gdb/20981: + * solib-darwin.c (darwin_get_dyld_bfd): New function. + (darwin_solib_get_all_image_info_addr_at_init): Update call. + (darwin_solib_create_inferior_hook): Handle unrelocated dyld. + +2018-09-19 John Baldwin <jhb@FreeBSD.org> + + * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix. + (fbsd_print_sockaddr_in6): Likewise. + +2018-09-19 Richard Bunt <richard.bunt@arm.com> + Chris January <chris.january@arm.com> + + * eval.c (skip_undetermined_arglist): Skip argument list helper. + (evaluate_subexp_standard): Return a dummy type when + honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the + OP_F77_UNDETERMINED_ARGLIST case. + * expression.h (enum noside): Update comment. + +2018-09-19 George Vasick <george.vasick@oracle.com> + + * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1. + +2018-09-19 Stefan Teleman <stefan.teleman@oracle.com> + April Chin <april.chin@oracle.com> + Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and + uint_t lwpid_t. + (create_procinfo): Print pids in /proc without leading zeros. + +2018-09-18 Sandra Loosemore <sandra@codesourcery.com> + + * nios2-tdep.c (nios2_gcc_target_options): New. + (nios2_gdb_arch_init): Install new hook. + +2018-09-18 Simon Marchi <simon.marchi@ericsson.com> + + * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch: + New file. + * update-gnulib.sh: Apply patch. + * configure: Re-generate. + +2018-09-18 John Baldwin <jhb@FreeBSD.org> + + * infcmd.c (_initialize_infcmd): Remove "running" from "info proc" + description. Make "info proc" command descriptions more + consistent. + +2018-09-18 John Baldwin <jhb@FreeBSD.org> + + * NEWS: Mention 'info proc files' command. + +2018-09-18 John Baldwin <jhb@FreeBSD.org> + + * fbsd-nat.c (fbsd_nat_target::info_proc): List open file + descriptors for IP_FILES and IP_ALL. + +2018-09-18 John Baldwin <jhb@FreeBSD.org> + + * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN) + (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER) + (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE) + (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE) + (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE) + (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS) + (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT) + (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE) + (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ) + (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND) + (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC) + (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT) + (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC) + (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR) + (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK) + (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX) + (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM) + (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP) + (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines. + (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6) + (struct fbsd_sockaddr_un): New types. + (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto) + (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6) + (fbsd_info_proc_files_header, fbsd_info_proc_files_entry) + (fbsd_core_info_proc_files): New functions. + (fbsd_core_info_proc): List open file descriptors for IP_FILES and + IP_ALL. + * fbsd-tdep.h (fbsd_info_proc_files_header) + (fbsd_info_proc_files_entry): New. + +2018-09-18 John Baldwin <jhb@FreeBSD.org> + + * defs.h (enum info_proc_what) [IP_FILES]: New value. + * infcmd.c (info_proc_cmd_files): New function. + (_initialize_infcmd): Register 'info proc files' command. + +2018-09-18 John Baldwin <jhb@FreeBSD.org> + + * gnulib/aclocal-m4-deps.mk: Re-generate. + * gnulib/aclocal.m4: Re-generate. + * gnulib/config.in: Re-generate. + * gnulib/configure: Re-generate. + * gnulib/import/Makefile.am: Re-generate. + * gnulib/import/Makefile.in: Re-generate. + * gnulib/import/m4/gnulib-cache.m4: Re-generate. + * gnulib/import/m4/gnulib-comp.m4: Re-generate. + * gnulib/import/arpa_inet.in.h: New file. + * gnulib/import/inet_ntop.c: New file. + * gnulib/import/m4/arpa_inet_h.m4: New file. + * gnulib/import/m4/inet_ntop.m4: New file. + * gnulib/import/m4/netinet_in_h.m4: New file. + * gnulib/import/m4/socklen.m4: New file. + * gnulib/import/m4/sockpfaf.m4: New file. + * gnulib/import/m4/stdalign.m4: New file. + * gnulib/import/m4/sys_uio_h.m4: New file. + * gnulib/import/netinet_in.in.h: New file. + * gnulib/import/stdalign.in.h: New file. + * gnulib/import/sys_socket.c: New file. + * gnulib/import/sys_socket.in.h: New file. + * gnulib/import/sys_uio.in.h: New file. + * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop + module. + +2018-09-18 John Baldwin <jhb@FreeBSD.org> + + * gnulib/aclocal-m4-deps.mk: New file. + * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk" + deterministically. + +2018-09-18 John Baldwin <jhb@FreeBSD.org> + + * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of + KVE_PATH. + +2018-09-18 Tom Tromey <tom@tromey.com> + + * compile/compile-object-load.c (struct + link_hash_table_cleanup_data): Add constructor and destructor. + Use DISABLE_COPY_AND_ASSIGN. + (~link_hash_table_cleanup_data): Rename from + link_hash_table_free. Now a destructor. + (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups. + +2018-09-18 Tom Tromey <tom@tromey.com> + + * compile/compile-object-run.c (do_module_cleanup): Use delete. + * compile/compile-object-load.c (struct munmap_list): Move to + header file. + (munmap_list::add): Rename from munmap_list_add; rewrite. + (munmap_list::~munmap_list): Rename from munmap_list_free. + (munmap_listp_free_cleanup): Remove. + (compile_object_load): Update. + * compile/compile-object-load.h (struct munmap_list): Move from + compile-object-load.c. Rewrite. + +2018-09-18 Alan Hayward <alan.hayward@arm.com> + + * aarch64-tdep.c (pass_in_v): Use register size. + (aarch64_extract_return_value): Likewise. + (aarch64_store_return_value): Likewise. + +2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to + rlim_t. + +2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * python/lib/gdb/command/frame_filters.py (EnableFrameFilter): + Fix short help line. + +2018-09-17 Tom Tromey <tom@tromey.com> + + PR python/20445: + * configure: Rebuild. + * configure.ac: Conditionally use -DNDEBUG for Python. + +2018-09-17 Tom Tromey <tom@tromey.com> + + * configure: Rebuild. + * configure.ac: Use gmp as a library dependency when checking for + mpfr. + +2018-09-17 Pedro Alves <palves@redhat.com> + + * python/py-inferior.c (find_inferior_object): Delete. + +2018-09-17 Simon Marchi <simon.marchi@ericsson.com> + + * compile/compile-cplus-types.c + (compile_cplus_instance::enter_scope): Don't use new_scope after + std::move. + +2018-09-17 Tom Tromey <tom@tromey.com> + + * common/pathstuff.c (get_standard_cache_dir): Use + ~/Library/Caches on macOS. + * common/pathstuff.h (get_standard_cache_dir): Update comment. + +2018-09-17 Simon Marchi <simon.marchi@polymtl.ca> + + PR python/23669 + * breakpoint.c (commands_cmd_element): New. + (_initialize_breakpoint): Assign commands_cmd_element. + * breakpoint.h (commands_cmd_element): New. + * cli/cli-script.c (while_cmd_element, if_command, + define_cmd_element): New. + (command_name_equals): Remove. + (process_next_line): Compare commands by pointer, not by name. + (_initialize_cli_script): Assign the various cmd_list_element + variables. + * compile/compile.c (compile_cmd_element): New. + (_initialize_compile): Assign compile_cmd_element. + * compile/compile.h (compile_cmd_element): New. + * guile/guile.c (guile_cmd_element): New. + (install_gdb_commands): Assign guile_cmd_element. + * guile/guile.h (guile_cmd_element): New. + * python/python.c (python_cmd_element): New. + (_initialize_python): Assign python_cmd_element. + * python/python.h (python_cmd_element): New. + * tracepoint.c (while_stepping_cmd_element): New. + (_initialize_tracepoint): Assign while_stepping_cmd_element. + * tracepoint.h (while_stepping_cmd_element): New. + +2018-09-17 Tom Tromey <tom@tromey.com> + + * infrun.c (save_infcall_suspend_state): Return + infcall_suspend_state_up. + (save_infcall_control_state): Return infcall_control_state_up. + * inferior.h (save_infcall_suspend_state) + (save_infcall_control_state): Declare later. Return unique + pointers. + +2018-09-17 Tom Tromey <tom@tromey.com> + + * infrun.c (struct stop_context): Declare constructor, + destructor, "changed" method. + (stop_context::stop_context): Rename from save_stop_context. + (stop_context::~stop_context): Rename from + release_stop_context_cleanup. + (normal_stop): Update. + (stop_context::changed): Rename from stop_context_changed. Return + bool. + +2018-09-17 Tom Tromey <tom@tromey.com> + + * inferior.h (struct infcall_suspend_state_deleter): New. + (infcall_suspend_state_up): New typedef. + (struct infcall_control_state_deleter): New. + (infcall_control_state_up): New typedef. + (make_cleanup_restore_infcall_suspend_state) + (make_cleanup_restore_infcall_control_state): Don't declare. + * infcall.c (call_function_by_hand_dummy): Update. + * infrun.c (do_restore_infcall_suspend_state_cleanup) + (make_cleanup_restore_infcall_suspend_state): Remove. + (do_restore_infcall_control_state_cleanup) + (make_cleanup_restore_infcall_control_state): Remove. + +2018-09-17 Tom Tromey <tom@tromey.com> + + * gdbthread.h (struct thread_control_state): Add initializer. + (class thread_info) <control>: Remove initializer. + * inferior.h (struct inferior_control_state): Add initializer. + (class inferior) <control>: Remove initializer. + (exit_inferior_1): Update. + * infrun.c (struct infcall_control_state): Add constructors. + (save_infcall_control_state): Use new. + (restore_infcall_control_state, discard_infcall_control_state): + Use delete. + +2018-09-17 Tom Tromey <tom@tromey.com> + + * infrun.c (struct infcall_suspend_state) <registers>: Now a + unique_ptr. + <siginfo_data>: Now a unique_xmalloc_ptr. + (save_infcall_suspend_state, restore_infcall_suspend_state) + (discard_infcall_suspend_state) + (get_infcall_suspend_state_regcache): Update. + +2018-09-17 Tom Tromey <tom@tromey.com> + + * gdbthread.h (struct thread_suspend_state): Add initializers. + (class thread_info) <suspend>: Remove initializer. + * infrun.c (struct infcall_suspend_state): Add initializers. + (save_infcall_suspend_state): Use new. + (discard_infcall_suspend_state): Use delete. + +2018-09-16 Tom Tromey <tom@tromey.com> + + * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG): + Remove. + * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to + rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG. + (py_varobj_iter_new): Likewise. + (py_varobj_get_iterator): Use gdbpy_ref. + +2018-09-16 Tom Tromey <tom@tromey.com> + + * python/py-threadevent.c (py_get_event_thread): Simplify. + * python/py-inferior.c (infpy_thread_from_thread_handle): + Return immediately after calling thread_to_thread_object. Use + Py_RETURN_NONE. + (thread_to_thread_object): Set the exception on a NULL return. + +2018-09-16 Simon Marchi <simon.marchi@polymtl.ca> + + * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS. + +2018-09-16 Tom Tromey <tom@tromey.com> + + * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF): + Remove. + +2018-09-16 Tom Tromey <tom@tromey.com> + + * python/python-internal.h (thread_to_thread_object): Change + return type. + * python/py-inferior.c (thread_to_thread_object): Return a new + reference. + (infpy_thread_from_thread_handle): Update. + * python/py-infthread.c (gdbpy_selected_thread): Update. + * python/py-stopevent.c (create_stop_event_object): Update. + * python/py-threadevent.c (py_get_event_thread): Return a new + reference. + (py_get_event_thread): Update. + * python/py-event.h (py_get_event_thread): Change return type. + * python/py-continueevent.c (create_continue_event_object): + Update. + +2018-09-16 Tom Tromey <tom@tromey.com> + + * python/py-progspace.c (pspy_get_objfiles): Update. + * python/python-internal.h (objfile_to_objfile_object): Change + return type. + * python/py-newobjfileevent.c (create_new_objfile_event_object): + Update. + * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): + Update. + * python/python.c (gdbpy_get_current_objfile): Update. + (gdbpy_objfiles): Update. + * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile): + Update. + (objfile_to_objfile_object): Return a new reference. + * python/py-symtab.c (stpy_get_objfile): Update. + * python/py-prettyprint.c (find_pretty_printer_from_objfiles): + Update. + +2018-09-16 Tom Tromey <tom@tromey.com> + + * python/py-inferior.c (infpy_get_progspace): Update. + * python/python-internal.h (pspace_to_pspace_object): Change + return type. + * python/py-newobjfileevent.c + (create_clear_objfiles_event_object): Update. + * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): + Update. + * python/python.c (gdbpy_get_current_progspace): Update. + (gdbpy_progspaces): Update. + * python/py-progspace.c (pspace_to_pspace_object): Return a new + reference. + * python/py-objfile.c (objfpy_get_progspace): Update. + * python/py-prettyprint.c (find_pretty_printer_from_progspace): + Update. + +2018-09-16 Tom Tromey <tom@tromey.com> + + * python/lib/gdb/__init__.py (current_progspace, objfiles) + (solib_name, block_for_pc, find_pc_line): New functions. + (execute_unwinders): Update. + * python/py-block.c (gdbpy_block_for_pc): Remove. + * python/py-inferior.c (infpy_get_progspace): New function. + (inferior_object_getset) <progspace>: Add. + * python/py-progspace.c (pspy_objfiles): Rewrite. + (pspy_solib_name, pspy_block_for_pc) + (pspy_find_pc_line, pspy_is_valid): New functions. + (progspace_object_methods): Add entries for solib_name, + block_for_pc, find_pc_line, is_valid. + * python/python-internal.h (gdbpy_block_for_pc) + (build_objfiles_list): Don't declare. + * python/python.c: Don't include solib.h. + (gdbpy_solib_name, gdbpy_find_pc_line) + (gdbpy_get_current_progspace, build_objfiles_list) + (gdbpy_objfiles): Remove. + (GdbMethods) <current_progspace, objfiles, block_for_pc, + solib_name, find_pc_line>: Remove entries. + +2018-09-16 Tom Tromey <tom@tromey.com> + + * top.c (new_ui_command): Use GNU style for metasyntactic + variables. + * breakpoint.c (stopat_command): Use GNU style for metasyntactic + variables. + * maint.c (maintenance_translate_address): Remove "<>" around + text. + * interps.c (interpreter_exec_cmd): Use GNU style for + metasyntactic variables. + * nto-procfs.c (nto_procfs_target_info): Use GNU style for + metasyntactic variables. + * tracepoint.c (tfind_range_command): Use GNU style for + metasyntactic variables. + (tfind_outside_command): Likewise. + (_initialize_tracepoint): Likewise. + * remote.c (extended_remote_target::create_inferior): Use GNU + style for metasyntactic variables. + * sparc64-tdep.c (adi_examine_command): Use GNU style for + metasyntactic variables. + (adi_assign_command): Likewise. + +2018-09-16 Tom Tromey <tom@tromey.com> + + * disasm.c (show_disassembler_options_sfunc): Use GNU style for + metasyntactic variables. Print message if no disassembler options + are available. + +2018-09-15 Tom Tromey <tom@tromey.com> + + * infcmd.c (get_inferior_args): Return const char *. + * inferior.h (get_inferior_args): Return type now const. + * linux-tdep.c (linux_fill_prpsinfo): Update. + * procfs.c (procfs_target::make_corefile_notes): Update. + +2018-09-07 Tom Tromey <tom@tromey.com> + + * python/python.c (execute_gdb_command): Call bpstat_do_actions + inside the TRY. + +2018-09-14 Sandra Loosemore <sandra@codesourcery.com> + + * nios2-tdep.c (nios2_type_align): New. + (nios2_gdb_arch_init): Install type_align hook. + +2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com> + + * eval.c (fake_method::fake_method): Call xzalloc directly for a + type that is neither object file owned, nor gdbarch owned. + * gdbtypes.c (get_type_gdbarch): Add an assert that returned + gdbarch is non-NULL. + (alloc_type_instance): Allocate non-objfile owned types on the + gdbarch obstack. + (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA + using TYPE_ALLOC to ensure memory is allocated on the correct + obstack. + * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile + obstack, or the gdbarch obstack. + (TYPE_ZALLOC): Rewrite using TYPE_ALLOC. + +2018-09-14 Tom Tromey <tom@tromey.com> + + * infcall.c (call_function_by_hand_dummy): Remove unnecessary + block. + +2018-09-14 Tom Tromey <tom@tromey.com> + + * nat/fork-inferior.c (get_startup_shell): Remove "static". + +2018-09-13 Tom Tromey <tom@tromey.com> + + * python/py-inferior.c (infpy_thread_from_thread_handle): Now + static. + +2018-09-13 Tom Tromey <tom@tromey.com> + + * exec.c (try_open_exec_file): Use std::string. + +2018-09-13 Tom Tromey <tom@tromey.com> + + * utils.h (gdb_bfd_errmsg): Return std::string. + * exec.c (exec_file_attach): Update. + * compile/compile-object-load.c (compile_object_load): Update. + * utils.c (gdb_bfd_errmsg): Return std::string. + +2018-09-13 Tom Tromey <tom@tromey.com> + + * procfs.c (struct procinfo_deleter): New. + (procinfo_up): New typedef. + (do_destroy_procinfo_cleanup): Remove. + (procfs_target::info_proc): Use procinfo_up. Remove cleanups. + +2018-09-13 Tom Tromey <tom@tromey.com> + + * source.c (add_path): Use gdb::unique_xmalloc_ptr. + +2018-09-13 Simon Marchi <simon.marchi@ericsson.com> +2018-09-13 Tom Tromey <tom@tromey.com> + + * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro. + (pspy_get_objfiles): New function. + (progspace_object_methods): New. + (pspace_object_type): Add tp_methods callback. + * python/python-internal.h (build_objfiles_list): New + declaration. + * python/python.c (build_objfiles_list): New function. + (gdbpy_objfiles): Implement using build_objfiles_list. + * NEWS: Mention the Progspace.objfiles method. + +2018-09-13 Simon Marchi <simon.marchi@ericsson.com> + + * python/py-inferior.c (infpy_get_progspace): New function. + (inferior_object_getset): Add progspace property. + * NEWS: Mention the new property. + +2018-09-13 Tom Tromey <tom@tromey.com> + + PR rust/23650: + * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo". + +2018-09-13 Tom Tromey <tom@tromey.com> + + PR rust/23626: + * rust-lang.c (rust_enum_variant): Now static. + (rust_empty_enum_p): New function. + (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def): + Handle empty enum. + +2018-09-13 Simon Marchi <simon.marchi@ericsson.com> + + * python/py-inferior.c (infpy_repr): New. + (inferior_object_type): Register infpy_repr. + * python/py-objfile.c (objfpy_repr): New. + (objfile_object_type): Register objfpy_repr. + +2018-09-12 John Baldwin <jhb@FreeBSD.org> + + * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable. + +2018-09-12 John Baldwin <jhb@FreeBSD.org> + + * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment + typo. + +2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com> + + * common/common-utils.c: Don't include '<sys/stat.h>'. + (is_regular_file): Move to... + * common/filestuff.c (is_regular_file): ... here. + * common/common-utils.h (is_regular_file): Move to... + * common/filestuff.h (is_regular_file): ... here. + +2018-09-12 Simon Marchi <simon.marchi@ericsson.com> + + * skip.c (debug_skip): New variable. + (skiplist_entry::do_skip_file_p): Add debug output. + (skiplist_entry::do_skip_gfile_p): Likewise. + (skiplist_entry::skip_function_p): Likewise. + (_initialize_step_skip): Create debug command. + * NEWS: Mention set/show debug skip. + +2018-09-11 Xavier Roirand <roirand@adacore.com> + + * darwin-nat.c (should_disable_startup_with_shell): + New function. + (darwin_nat_target::create_inferior): Add call. + +2018-09-11 Xavier Roirand <roirand@adacore.com> + + * darwin-nat.h (struct darwin_thread_info) <gdb_port, + inf_port, msg_state>: Initialize. + (struct darwin_thread_info) <signaled, single_step>: Change + type and initialize. + (struct darwin_thread_info) <event>: Initialize. + +2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com> + + PR gdb/23555 + PR gdb/23558 + * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation + guesses. + +2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com> + + Revert: + 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com> + + PR gdb/23555 + PR gdb/23558 + * gnulib/aclocal.m4: Regenerate. + * gnulib/config.in: Regenerate. + * gnulib/configure: Regenerate. + * gnulib/import/Makefile.am: Update. + * gnulib/import/Makefile.in: Update. + * gnulib/import/extra/snippet/_Noreturn.h: Rename to... + * gnulib/import/_Noreturn.h: ... this. + * gnulib/import/alloca.in.h: Update. + * gnulib/import/extra/snippet/arg-nonnull.h: Rename to... + * gnulib/import/arg-nonnull.h: ... this. + * gnulib/import/assure.h: Update. + * gnulib/import/at-func.c: Update. + * gnulib/import/basename-lgpl.c: Update. + * gnulib/import/extra/snippet/c++defs.h: Rename to... + * gnulib/import/c++defs.h: ... this. + * gnulib/import/canonicalize-lgpl.c: Update. + * gnulib/import/cdefs.h: Update. + * gnulib/import/chdir-long.c: Update. + * gnulib/import/chdir-long.h: Update. + * gnulib/import/cloexec.c: Update. + * gnulib/import/cloexec.h: Update. + * gnulib/import/close.c: Update. + * gnulib/import/closedir.c: Update. + * gnulib/import/config.charset: Update. + * gnulib/import/dirent-private.h: Update. + * gnulib/import/dirent.in.h: Update. + * gnulib/import/dirfd.c: Update. + * gnulib/import/dirname-lgpl.c: Update. + * gnulib/import/dirname.h: Update. + * gnulib/import/dosname.h: Update. + * gnulib/import/dup-safer-flag.c: Update. + * gnulib/import/dup-safer.c: Update. + * gnulib/import/dup.c: Update. + * gnulib/import/dup2.c: Update. + * gnulib/import/errno.in.h: Update. + * gnulib/import/error.c: Update. + * gnulib/import/error.h: Update. + * gnulib/import/exitfail.c: Update. + * gnulib/import/exitfail.h: Update. + * gnulib/import/extra/update-copyright: Update. + * gnulib/import/fchdir.c: Update. + * gnulib/import/fcntl.c: Update. + * gnulib/import/fcntl.in.h: Update. + * gnulib/import/fd-hook.c: Update. + * gnulib/import/fd-hook.h: Update. + * gnulib/import/fd-safer-flag.c: Update. + * gnulib/import/fd-safer.c: Update. + * gnulib/import/fdopendir.c: Update. + * gnulib/import/filename.h: Update. + * gnulib/import/filenamecat-lgpl.c: Update. + * gnulib/import/filenamecat.h: Update. + * gnulib/import/flexmember.h: Update. + * gnulib/import/float+.h: Update. + * gnulib/import/float.c: Update. + * gnulib/import/float.in.h: Update. + * gnulib/import/fnmatch.c: Update. + * gnulib/import/fnmatch.in.h: Update. + * gnulib/import/fnmatch_loop.c: Update. + * gnulib/import/fpucw.h: Update. + * gnulib/import/frexp.c: Update. + * gnulib/import/frexpl.c: Update. + * gnulib/import/fstat.c: Update. + * gnulib/import/fstatat.c: Update. + * gnulib/import/getcwd-lgpl.c: Update. + * gnulib/import/getcwd.c: Update. + * gnulib/import/getdtablesize.c: Update. + * gnulib/import/getlogin_r.c: Update. + * gnulib/import/getprogname.c: Update. + * gnulib/import/getprogname.h: Update. + * gnulib/import/gettext.h: Update. + * gnulib/import/gettimeofday.c: Update. + * gnulib/import/glob-libc.h: Update. + * gnulib/import/glob.c: Update. + * gnulib/import/glob.in.h: Update. + * gnulib/import/glob_internal.h: Update. + * gnulib/import/glob_pattern_p.c: Update. + * gnulib/import/globfree.c: Update. + * gnulib/import/hard-locale.c: Update. + * gnulib/import/hard-locale.h: Update. + * gnulib/import/intprops.h: Update. + * gnulib/import/inttypes.in.h: Update. + * gnulib/import/isnan.c: Update. + * gnulib/import/isnand-nolibm.h: Update. + * gnulib/import/isnand.c: Update. + * gnulib/import/isnanl-nolibm.h: Update. + * gnulib/import/isnanl.c: Update. + * gnulib/import/itold.c: Update. + * gnulib/import/libc-config.h: Update. + * gnulib/import/limits.in.h: Update. + * gnulib/import/localcharset.c: Update. + * gnulib/import/localcharset.h: Update. + * gnulib/import/localtime-buffer.c: Update. + * gnulib/import/localtime-buffer.h: Update. + * gnulib/import/lstat.c: Update. + * gnulib/import/m4/00gnulib.m4: Update. + * gnulib/import/m4/__inline.m4: Update. + * gnulib/import/m4/absolute-header.m4: Update. + * gnulib/import/m4/alloca.m4: Update. + * gnulib/import/m4/builtin-expect.m4: Update. + * gnulib/import/m4/canonicalize.m4: Update. + * gnulib/import/m4/chdir-long.m4: Update. + * gnulib/import/m4/close.m4: Update. + * gnulib/import/m4/closedir.m4: Update. + * gnulib/import/m4/configmake.m4: Update. + * gnulib/import/m4/d-ino.m4: Update. + * gnulib/import/m4/d-type.m4: Update. + * gnulib/import/m4/dirent_h.m4: Update. + * gnulib/import/m4/dirfd.m4: Update. + * gnulib/import/m4/dirname.m4: Update. + * gnulib/import/m4/double-slash-root.m4: Update. + * gnulib/import/m4/dup.m4: Update. + * gnulib/import/m4/dup2.m4: Update. + * gnulib/import/m4/eealloc.m4: Update. + * gnulib/import/m4/environ.m4: Update. + * gnulib/import/m4/errno_h.m4: Update. + * gnulib/import/m4/error.m4: Update. + * gnulib/import/m4/exponentd.m4: Update. + * gnulib/import/m4/exponentl.m4: Update. + * gnulib/import/m4/extensions.m4: Update. + * gnulib/import/m4/extern-inline.m4: Update. + * gnulib/import/m4/fchdir.m4: Update. + * gnulib/import/m4/fcntl-o.m4: Update. + * gnulib/import/m4/fcntl.m4: Update. + * gnulib/import/m4/fcntl_h.m4: Update. + * gnulib/import/m4/fdopendir.m4: Update. + * gnulib/import/m4/filenamecat.m4: Update. + * gnulib/import/m4/flexmember.m4: Update. + * gnulib/import/m4/float_h.m4: Update. + * gnulib/import/m4/fnmatch.m4: Update. + * gnulib/import/m4/fnmatch_h.m4: Update. + * gnulib/import/m4/fpieee.m4: Update. + * gnulib/import/m4/frexp.m4: Update. + * gnulib/import/m4/frexpl.m4: Update. + * gnulib/import/m4/fstat.m4: Update. + * gnulib/import/m4/fstatat.m4: Update. + * gnulib/import/m4/getcwd-abort-bug.m4: Update. + * gnulib/import/m4/getcwd-path-max.m4: Update. + * gnulib/import/m4/getcwd.m4: Update. + * gnulib/import/m4/getdtablesize.m4: Update. + * gnulib/import/m4/getlogin.m4: Update. + * gnulib/import/m4/getlogin_r.m4: Update. + * gnulib/import/m4/getpagesize.m4: Update. + * gnulib/import/m4/getprogname.m4: Update. + * gnulib/import/m4/gettimeofday.m4: Update. + * gnulib/import/m4/glibc21.m4: Update. + * gnulib/import/m4/glob.m4: Update. + * gnulib/import/m4/glob_h.m4: Update. + * gnulib/import/m4/gnulib-cache.m4: Update. + * gnulib/import/m4/gnulib-common.m4: Update. + * gnulib/import/m4/gnulib-comp.m4: Update. + * gnulib/import/m4/gnulib-tool.m4: Update. + * gnulib/import/m4/hard-locale.m4: Update. + * gnulib/import/m4/include_next.m4: Update. + * gnulib/import/m4/inttypes-pri.m4: Update. + * gnulib/import/m4/inttypes.m4: Update. + * gnulib/import/m4/isnand.m4: Update. + * gnulib/import/m4/isnanl.m4: Update. + * gnulib/import/m4/largefile.m4: Update. + * gnulib/import/m4/limits-h.m4: Update. + * gnulib/import/m4/localcharset.m4: Update. + * gnulib/import/m4/locale-fr.m4: Update. + * gnulib/import/m4/locale-ja.m4: Update. + * gnulib/import/m4/locale-zh.m4: Update. + * gnulib/import/m4/localtime-buffer.m4: Update. + * gnulib/import/m4/longlong.m4: Update. + * gnulib/import/m4/lstat.m4: Update. + * gnulib/import/m4/malloc.m4: Update. + * gnulib/import/m4/malloca.m4: Update. + * gnulib/import/m4/math_h.m4: Update. + * gnulib/import/m4/mbrtowc.m4: Update. + * gnulib/import/m4/mbsinit.m4: Update. + * gnulib/import/m4/mbsrtowcs.m4: Update. + * gnulib/import/m4/mbstate_t.m4: Update. + * gnulib/import/m4/memchr.m4: Update. + * gnulib/import/m4/memmem.m4: Update. + * gnulib/import/m4/mempcpy.m4: Update. + * gnulib/import/m4/memrchr.m4: Update. + * gnulib/import/m4/mkdir.m4: Update. + * gnulib/import/m4/mkstemp.m4: Update. + * gnulib/import/m4/mmap-anon.m4: Update. + * gnulib/import/m4/mode_t.m4: Update. + * gnulib/import/m4/msvc-inval.m4: Update. + * gnulib/import/m4/msvc-nothrow.m4: Update. + * gnulib/import/m4/multiarch.m4: Update. + * gnulib/import/m4/nocrash.m4: Update. + * gnulib/import/m4/off_t.m4: Update. + * gnulib/import/m4/onceonly.m4: Update. + * gnulib/import/m4/open-cloexec.m4: Update. + * gnulib/import/m4/open.m4: Update. + * gnulib/import/m4/openat.m4: Update. + * gnulib/import/m4/opendir.m4: Update. + * gnulib/import/m4/pathmax.m4: Update. + * gnulib/import/m4/rawmemchr.m4: Update. + * gnulib/import/m4/readdir.m4: Update. + * gnulib/import/m4/readlink.m4: Update. + * gnulib/import/m4/realloc.m4: Update. + * gnulib/import/m4/rename.m4: Update. + * gnulib/import/m4/rewinddir.m4: Update. + * gnulib/import/m4/rmdir.m4: Update. + * gnulib/import/m4/save-cwd.m4: Update. + * gnulib/import/m4/secure_getenv.m4: Update. + * gnulib/import/m4/setenv.m4: Update. + * gnulib/import/m4/signal_h.m4: Update. + * gnulib/import/m4/ssize_t.m4: Update. + * gnulib/import/m4/stat-time.m4: Update. + * gnulib/import/m4/stat.m4: Update. + * gnulib/import/m4/std-gnu11.m4: Update. + * gnulib/import/m4/stdbool.m4: Update. + * gnulib/import/m4/stddef_h.m4: Update. + * gnulib/import/m4/stdint.m4: Update. + * gnulib/import/m4/stdio_h.m4: Update. + * gnulib/import/m4/stdlib_h.m4: Update. + * gnulib/import/m4/strchrnul.m4: Update. + * gnulib/import/m4/strdup.m4: Update. + * gnulib/import/m4/strerror.m4: Update. + * gnulib/import/m4/string_h.m4: Update. + * gnulib/import/m4/strstr.m4: Update. + * gnulib/import/m4/strtok_r.m4: Update. + * gnulib/import/m4/sys_socket_h.m4: Update. + * gnulib/import/m4/sys_stat_h.m4: Update. + * gnulib/import/m4/sys_time_h.m4: Update. + * gnulib/import/m4/sys_types_h.m4: Update. + * gnulib/import/m4/tempname.m4: Update. + * gnulib/import/m4/time_h.m4: Update. + * gnulib/import/m4/unistd-safer.m4: Update. + * gnulib/import/m4/unistd_h.m4: Update. + * gnulib/import/m4/warn-on-use.m4: Update. + * gnulib/import/m4/wchar_h.m4: Update. + * gnulib/import/m4/wchar_t.m4: Update. + * gnulib/import/m4/wctype_h.m4: Update. + * gnulib/import/m4/wint_t.m4: Update. + * gnulib/import/malloc.c: Update. + * gnulib/import/malloc/scratch_buffer.h: Update. + * gnulib/import/malloc/scratch_buffer_grow.c: Update. + * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update. + * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update. + * gnulib/import/malloca.c: Update. + * gnulib/import/malloca.h: Update. + * gnulib/import/malloca.valgrind: Update. + * gnulib/import/math.in.h: Update. + * gnulib/import/mbrtowc.c: Update. + * gnulib/import/mbsinit.c: Update. + * gnulib/import/mbsrtowcs-impl.h: Update. + * gnulib/import/mbsrtowcs-state.c: Update. + * gnulib/import/mbsrtowcs.c: Update. + * gnulib/import/memchr.c: Update. + * gnulib/import/memmem.c: Update. + * gnulib/import/mempcpy.c: Update. + * gnulib/import/memrchr.c: Update. + * gnulib/import/mkdir.c: Update. + * gnulib/import/mkstemp.c: Update. + * gnulib/import/msvc-inval.c: Update. + * gnulib/import/msvc-inval.h: Update. + * gnulib/import/msvc-nothrow.c: Update. + * gnulib/import/msvc-nothrow.h: Update. + * gnulib/import/open.c: Update. + * gnulib/import/openat-die.c: Update. + * gnulib/import/openat-priv.h: Update. + * gnulib/import/openat-proc.c: Update. + * gnulib/import/openat.c: Update. + * gnulib/import/openat.h: Update. + * gnulib/import/opendir.c: Update. + * gnulib/import/pathmax.h: Update. + * gnulib/import/pipe-safer.c: Update. + * gnulib/import/rawmemchr.c: Update. + * gnulib/import/readdir.c: Update. + * gnulib/import/readlink.c: Update. + * gnulib/import/realloc.c: Update. + * gnulib/import/ref-add.sin: Update. + * gnulib/import/ref-del.sin: Update. + * gnulib/import/rename.c: Update. + * gnulib/import/rewinddir.c: Update. + * gnulib/import/rmdir.c: Update. + * gnulib/import/same-inode.h: Update. + * gnulib/import/save-cwd.c: Update. + * gnulib/import/save-cwd.h: Update. + * gnulib/import/scratch_buffer.h: Update. + * gnulib/import/secure_getenv.c: Update. + * gnulib/import/setenv.c: Update. + * gnulib/import/signal.in.h: Update. + * gnulib/import/stat-time.c: Update. + * gnulib/import/stat-time.h: Update. + * gnulib/import/stat-w32.c: Update. + * gnulib/import/stat-w32.h: Update. + * gnulib/import/stat.c: Update. + * gnulib/import/stdbool.in.h: Update. + * gnulib/import/stddef.in.h: Update. + * gnulib/import/stdint.in.h: Update. + * gnulib/import/stdio.in.h: Update. + * gnulib/import/stdlib.in.h: Update. + * gnulib/import/str-two-way.h: Update. + * gnulib/import/strchrnul.c: Update. + * gnulib/import/strdup.c: Update. + * gnulib/import/streq.h: Update. + * gnulib/import/strerror-override.c: Update. + * gnulib/import/strerror-override.h: Update. + * gnulib/import/strerror.c: Update. + * gnulib/import/string.in.h: Update. + * gnulib/import/stripslash.c: Update. + * gnulib/import/strnlen1.c: Update. + * gnulib/import/strnlen1.h: Update. + * gnulib/import/strstr.c: Update. + * gnulib/import/strtok_r.c: Update. + * gnulib/import/sys_stat.in.h: Update. + * gnulib/import/sys_time.in.h: Update. + * gnulib/import/sys_types.in.h: Update. + * gnulib/import/tempname.c: Update. + * gnulib/import/tempname.h: Update. + * gnulib/import/time.in.h: Update. + * gnulib/import/unistd--.h: Update. + * gnulib/import/unistd-safer.h: Update. + * gnulib/import/unistd.in.h: Update. + * gnulib/import/unsetenv.c: Update. + * gnulib/import/verify.h: Update. + * gnulib/import/extra/snippet/warn-on-use.h: Update. + * gnulib/import/wchar.in.h: Update. + * gnulib/import/wctype.in.h: Update. + * gnulib/import/xalloc-oversized.h: Update. + * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to + "53e2c179f26a890fa6685af4b6c1397ee370433b". + +2018-09-10 Simon Marchi <simon.marchi@ericsson.com> + + * record-btrace.c (get_thread_current_frame): Remove + old_inferior_ptid. + +2018-09-10 Jerome Guitton <guitton@adacore.com> + + * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type + with check_tag to 1 if and only if the type is tagged and the + component being searched cannot been found in the current + view. Otherwise, always call ada_to_fixed_type with + check_tag to 0. + +2018-09-10 Xavier Roirand <roirand@adacore.com> + + * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static + declaration. + * ada-lang.h: add ada_is_access_to_unconstrained_array prototype. + * ada-varobj.c (ada_varobj_get_number_of_children, + ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code. + +2018-09-10 Xavier Roirand <roirand@adacore.com> + + * ada-valprint.c (ada_value_print): Use type instead of + enclosing type. + +2018-09-10 Xavier Roirand <roirand@adacore.com> + + * ada-lang.c (ada_value_subscript): Handle case when parameter is + an array of access to unconstrained array. + +2018-09-10 Xavier Roirand <roirand@adacore.com> + + * ada-lang.c (ada_is_access_to_unconstrained_array): New function. + (ada_check_typedef): Use it. + +2018-09-10 Xavier Roirand <roirand@adacore.com> + + * ada-varobj.c (ada_varobj_describe_struct_child) + (ada_varobj_describe_child): Handle union case like struct one. + +2018-09-10 Tom Tromey <tom@tromey.com> + + PR python/18380: + * python/python.c (_initialize_python): Make example in "python" + help work in Python 3. + +2018-09-10 Eli Zaretskii <eliz@gnu.org> + + * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of + INSTALL_PROGRAM to install gdb-add-index.sh. Don't append + $(EXEEXT) to the script, as it is not a program. + +2018-09-09 Simon Marchi <simon.marchi@ericsson.com> + + * python/py-prettyprint.c (pretty_print_one_value): Return + gdbpy_ref<>. + (print_string_repr): Adjust. + (apply_varobj_pretty_printer): Return gdbpy_ref<>. + * python/python-internal.h (apply_varobj_pretty_printer): Return + gdbpy_ref<>. + * varobj.c (varobj_value_get_print_value): Adjust. + +2018-09-08 Tom Tromey <tom@tromey.com> + + PR python/16047: + * python/py-prettyprint.c (pretty_print_one_value): Check for + to_string method. + +2018-09-08 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to + replace_operator_with_call. + +2018-09-08 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (ada_value_cast): Remove unnecessary parentheses. + +2018-09-08 Joel Brobecker <brobecker@adacore.com> + + * ada-typeprint.c (print_range): Print the bounds using TYPE + rather than its TYPE_TARGET_TYPE. + +2018-09-08 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (ada_to_fixed_value): Minor reformatting in + call to ada_to_fixed_value_create. + +2018-09-08 Jerome Guitton <guitton@adacore.com> + + * ada-lang.c (ada_decode): strip dot prefix in symbol name. + +2018-09-08 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (ada_exception_sal): Replace gdb_assert calls + by calls to error. + +2018-09-08 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (ada_unhandled_exception_name_addr_from_raise): + Move update of loop variable "fi". + +2018-09-08 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (value_assign_to_component): In the case of + big-endian targets, extract the bits of the given VAL + using an src_offset of zero if container is not a scalar. + +2018-09-06 Simon Ser <contact@emersion.fr> + + PR gdb/23105 + * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for + TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS. + * fbsd-tdep.c (fbsd_make_note_desc): New. + (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV, + NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes. + * target.h (enum target_object) Add FreeBSD-specific + TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS. + +2018-09-06 Simon Marchi <simon.marchi@ericsson.com> + + * compile/compile-c.h (generate_c_for_variable_locations): + Change reference to pointer. + * compile/compile-c-support.c (compile_program) <compute>: + Likewise. + * compile/compile-c-symbols.c (generate_vla_size): Likewise. + (generate_c_for_for_one_variable): Likewise + (generate_c_for_variable_locations): Likewise + * compile/compile-c-types.c (compile_c_instance::convert_type): + Likewise + * compile/compile-cplus-symbols.c (convert_one_symbol): + std::move the scope passed to enter_scope. + * compile/compile-cplus-types.c + (compile_cplus_instance::enter_scope): Make parameter + rvalue-reference. + (compile_cplus_instance::new_scope): Change reference to + pointer. + (compile_cplus_instance::convert_type): Likewise + (compile_cplus_convert_typedef): std::move the scope passed to + enter_scope. + (compile_cplus_convert_struct_or_union): Likewise. + (compile_cplus_convert_enum): Likewise. + (compile_cplus_convert_namespace): Likewise. + * compile/compile-cplus.h (compile_cplus_instance) + <enter_scope>: Make parameter rvalue-reference. + * compile/compile-internal.h (compile_instance) + <get_cached_type>: Likewise + * compile/compile-loc2c.c (push): Likewise + (pushf): Likewise + (unary): Likewise + (binary): Likewise + (print_label): Likewise + (pushf_register_address): Likewise + (pushf_register): Likewise + (do_compile_dwarf_expr_to_c): Likewise + (compile_dwarf_expr_to_c): Likewise + (compile_dwarf_bounds_to_c): Likewise + * compile/compile.c (compile_instance::get_cached_type): + Likewise + * compile/compile.h (compile_dwarf_expr_to_c): Likewise. + (compile_dwarf_bounds_to_c): Likewise + * dwarf2loc.c (locexpr_generate_c_location): Likewise. + (dwarf2_compile_property_to_c): Likewise + * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise + * symtab.h (struct symbol_computed_ops) <generate_c_location>: + Likewise + +2018-09-06 Simon Marchi <simon.marchi@ericsson.com> + + * tui/tui-data.h (struct tui_win_element) <highlight>: Remove. + * tui/tui-data.c (init_content_element): Don't initialize it. + +2018-09-06 Simon Marchi <simon.marchi@ericsson.com> + + * tui/tui-data.h (struct tui_win_info) + <detail::opaque>: Remove. + * tui/tui-data.c (init_win_info): Remove assignment. + +2018-09-05 Tom Tromey <tom@tromey.com> + + * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing + -Wformat-nonliteral. + * target-float.c (host_float_ops<T>::to_string) + (host_float_ops<T>::from_string): Use + DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL. + * configure: Rebuild. + +2018-09-05 Simon Marchi <simon.marchi@ericsson.com> + + * printcmd.c (printf_c_string): Use + DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL. + (printf_wide_c_string, printf_pointer, ui_printf): Likewise. + +2018-09-05 Tom Tromey <tom@tromey.com> + + * cli/cli-cmds.c (shell_escape, edit_command): Remove cast. + +2018-09-05 Tom de Vries <tdevries@suse.de> + + * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer + with resolve_abstract_p == true. + (indirect_synthetic_pointer): Add resolve_abstract_p parameter, + defaulting to false. Propagate resolve_abstract_p to + dwarf2_fetch_die_loc_sect_off. + * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p + parameter, defaulting to false. + * dwarf2read.c (read_variable): Add variable to abstract_to_concrete. + (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p + parameter. + * dwarf2read.h (struct die_info): Forward-declare. + (die_info_ptr): New typedef. + (struct dwarf2_per_objfile): Add abstract_to_concrete field. + +2018-09-05 Joel Brobecker <brobecker@adacore.com> + + GDB 8.2 released. + +2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com> + Pedro Alves <palves@redhat.com> + + * gnulib/Makefile.in (aclocal_m4_deps): Move to + "aclocal-m4-deps.mk". Include file here. + $(srcdir)/aclocal.m4: Add "configure.ac". + * gnulib/aclocal-m4-deps.mk: New file. + * gnulib/update-gnulib.sh: Automatically update + "aclocal-m4-deps.mk". + +2018-09-04 Tom Tromey <tom@tromey.com> + + * configure: Rebuild. + * configure.ac: Remove multi-ice code. + +2018-09-04 Tom Tromey <tom@tromey.com> + + * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove. + (ada-exp.o): Update. + +2018-09-04 Tom Tromey <tom@tromey.com> + + * Makefile.in (printcmd.o, target-float.o): Remove. + (GDB_WARN_CFLAGS_NO_FORMAT): Remove. + +2018-09-04 Tom Tromey <tom@tromey.com> + + * gnulib/Makefile.in: Remove obsolete comment. + * Makefile.in: Remove obsolete comment. + +2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a + line with '+'. + +2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c: Add 'prologue-value.h' include. + (struct riscv_unwind_cache): New struct. + (riscv_debug_unwinder): New global. + (riscv_scan_prologue): Update arguments, capture register details + from prologue scan. + (riscv_skip_prologue): Reformat arguments line, move end of + prologue calculation into riscv_scan_prologue. + (riscv_frame_cache): Update return type, create + riscv_unwind_cache, scan the prologue, and fill in remaining cache + details. + (riscv_frame_this_id): Use frame id computed in riscv_frame_cache. + (riscv_frame_prev_register): Use the trad_frame within the + riscv_unwind_cache. + (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder' + flag. + +2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com> + + * trad-frame.h (trad_frame_set_realreg): Declare. + (trad_frame_set_addr): Declare. + * trad-frame.c (trad_frame_set_realreg): Define new function. + (trad_frame_set_addr): Define new function. + (trad_frame_set_reg_realreg): Use new function. + (trad_frame_set_reg_addr): Use new function. + +2018-09-01 Keith Seitz <keiths@redhat.com> + + * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use + pulongest instead of "%lld". + * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove + ATTRIBUTE_UNUSED. + +2018-08-31 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the + variant part type. + +2018-08-31 Pedro Alves <palves@redhat.com> + + * gdbarch.h: Regenerate. + +2018-08-31 Pedro Alves <palves@redhat.com> + + * gdbarch.sh (have_nonsteppable_watchpoint): Add comment. + * target.h (Hardware watchpoint interfaces): Describe + continuable/steppable/non-steppable watchpoints. + * gdbarch.h, gdbarch.c: Regenerate. + +2018-08-31 Pedro Alves <palves@redhat.com> + + * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint): + Delete. + * s390-linux-nat.c + (s390_linux_nat_target::have_continuable_watchpoint): Delete. + * target.h (target_ops::have_continuable_watchpoint): Delete. + (target_have_continuable_watchpoint): Delete. + * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete. + * target-delegates.c: Regenerate. + +2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com> + + * gnulib/Makefile.in (aclocal_m4_deps): Update according to + the files present in "gnulib/import/m4/". + +2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd, + c.sw, c.swsp, and c.sdsp. + +2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (struct riscv_inferior_data): Delete. + (riscv_read_misa_reg): Don't cache value read into inferior data. + (riscv_new_inferior_data): Delete. + (riscv_inferior_data_cleanup): Delete. + (riscv_inferior_data): Delete. + (riscv_invalidate_inferior_data): Delete. + (_initialize_riscv_tdep): Remove initialisation of inferior data. + +2018-08-30 Simon Marchi <simon.marchi@ericsson.com> + + * compile/compile-cplus-types.c + (compile_cplus_instance::leave_scope): Take the address of scope + object. + (compile_cplus_instance::convert_qualified_base): Compare quals + to 0. + +2018-08-30 Keith Seitz <keiths@redhat.com> + + * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope): + Use "%s" and host_address_to_string instead of "%p" in printf. + +2018-08-29 Keith Seitz <keiths@redhat.com> + + * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c + and compile-cplus-types.c. + (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h. + * c-lang.c (cplus_language_defn): Set C++ compile functions. + * c-lang.h (cplus_get_compile_context, cplus_compute_program): + Declare. + * compile/compile-c-support.c: Include compile-cplus.h. + (load_libcompile): Templatize. + (get_compile_context): "New" function. + (c_get_compile_context): Use get_compile_context. + (cplus_get_compile_context): New function. + (cplus_push_user_expression, cplus_pop_user_expression) + (cplus_add_code_header, cplus_add_input, cplus_compile_program) + (cplus_compute_program): Define new structs/functions. + * compile/compile-cplus-symmbols.c: New file. + * compile/compile-cplus-types.c: New file. + * compile/compile-cplus.h: New file. + * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE): + Declare. + * compile/compile-object-load.c (get_out_value_type): Use + strncmp_iw when comparing symbol names. + (compile_object_load): Add mst_bss and mst_data. + * compile/compile.c (_initialize_compile): Remove + -Wno-implicit-function-declaration from `compile_args'. + * compile/gcc-cp-plugin.h: New file. + * NEWS: Mention C++ compile support and new debug options. + +2018-08-29 Keith Seitz <keiths@redhat.com> + + * linespec.c (collect_info::add_symbol): Make virtual. + (struct symbol_searcher_collect_info): New struct. + (symbol_searcher::find_all_symbols): New method. + * symtab.h (class symbol_searcher): New class. + +2018-08-29 Keith Seitz <keiths@redhat.com> + + * linespec.c (struct linespec) <function_symbols, label_symbols>: + Change to vector of block_symbol. Update all users. + (struct collect_info) <symbols>: Likewise. + (collect_info::add_symbol): Take block_symbol as argument. + Update all callers. + (decode_compound_collector) <m_symbols>: Change type to vector + of block_symbol. Update all users. + (decode_compound_collector::operator ()): Change parameter type + to block_symbol. + (find_method, find_function_symbols, find_linespec_symbols) + (find_label_symbols_in_block, find_label_symbols): Change symbol + vectors to block_symbol vectors. + * symtab.h (symbol_found_callback_ftype): Change parameter type to + block_symbol. + +2018-08-29 Keith Seitz <keiths@redhat.com> + + * linespec.c (symbolp): Remove typedef and VEC definitions. + (bound_minimal_symbol_d): Likewise. + +2018-08-29 Keith Seitz <keiths@redhat.com> + + * linespec.c (decode_compound_collector::decode_compound_collector): + Remove initialization for `m_symtabs'. + (decode_compound_collector::release_symbols): Change return type + to std::vector. Update all callers. + (class decode_compound_collector) <m_symbols>: Change type to + std::vector. + (lookup_prefix_sym): Change return type to std::vector. Update all + callers. + (compare_symbols): Remove. + (std_compare_symbols): Rename to `compare_symbols'. + (find_method): Change `sym_classes' parameter to std::vector. + Update all callers. Use std::sort to sort sym_classes. + (find_linespec_symbols): Remove cleanup. + +2018-08-29 Keith Seitz <keiths@redhat.com> + + * linespec.c (struct linespec) <minimal_symbols>: Change type to + std::vector. Update all users. + (convert_linespec_to_sals): Use std::sort to sort minimal symbols. + (struct collect_info) <minimal_symbols>: Likewise. + (compare_msymbols): Return bool. Change parameters to const + bound_minimal_symbol references. + (find_method, find_function_symbols, find_linespec_symbols): Change + `minsyms' parameter to std::vector. Update all callers. + +2018-08-29 Keith Seitz <keiths@redhat.com> + + * linespec.c (struct linespec) <label_symbols>: Change type to + std::vector. Update all users. + (find_label_symbols_in_block): Change `result' parameter to + std::vector. Update all callers. + (find_label_symbols): Return std::vector. Update all callers. + +2018-08-29 Keith Seitz <keiths@redhat.com> + + * linespec.c (struct linespec) <function_symbols>: Change type to + std::vector. Update all users. + (struct collect_info) <function_symbols>: Likewise. + (convert_linespec_to_sals): Use std::sort to sort function_symbols. + (std_compare_symbols): New function. + (find_method, find_function_symbols, find_linespec_symbols) + (find_label_symbols_in_block): Change `symbols' parameter to + std::vector. Update all callers. + (find_label_symbols): Likewise for `function_symbols' and + `label_funcs_ret'. + +2018-08-29 Keith Seitz <keiths@redhat.com> + + * linespec.c (symtab_vector_up): Define. + (struct linespec) <file_symtabs>: Change type to std::vector *. + Update all uses. + (struct collect_info) <file_symtabs>: Likewise. + (collect_symtabs_from_filename): Return symtab_vector_up. + Update all callers. + (decode_objc): Remove cleanup. + (symtab_collector::symtab_collector): Initialize `m_symtabs'. + (symtab_collector::release_symtabs): Return symtab_vector_up. + Update all callers. + (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up. + Update all users. + (collect_symtabs_from_filename, symtabs_from_filename): Return + symtab_vector_up. Update all callers. + +2018-08-29 Tom Tromey <tom@tromey.com> + + * csky-tdep.c (csky_analyze_prologue): Use + core_addr_to_string_nz. + +2018-08-29 Tom Tromey <tom@tromey.com> + + * windows-nat.c (struct xlate_exception) <them>: Change type to + DWORD. + (xlate): Fix formatting. Remove last entry. + (struct xlate_exception, xlate): Comment out. + (windows_nat_target::resume): Use ranged for. + +2018-08-29 Jim Wilson <jimw@sifive.com> + + * riscv-linux-nat.c: Include elf/common.h instead of elf.h. + (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead + of NT_PRFPREG. + (riscv_linux_nat_target::store_registers): Likewise. + +2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com> + + PR gdb/23555 + PR gdb/23558 + * gnulib/aclocal.m4: Regenerate. + * gnulib/config.in: Regenerate. + * gnulib/configure: Regenerate. + * gnulib/import/Makefile.am: Update. + * gnulib/import/Makefile.in: Update. + * gnulib/import/extra/snippet/_Noreturn.h: Rename to... + * gnulib/import/_Noreturn.h: ... this. + * gnulib/import/alloca.in.h: Update. + * gnulib/import/extra/snippet/arg-nonnull.h: Rename to... + * gnulib/import/arg-nonnull.h: ... this. + * gnulib/import/assure.h: Update. + * gnulib/import/at-func.c: Update. + * gnulib/import/basename-lgpl.c: Update. + * gnulib/import/extra/snippet/c++defs.h: Rename to... + * gnulib/import/c++defs.h: ... this. + * gnulib/import/canonicalize-lgpl.c: Update. + * gnulib/import/cdefs.h: Update. + * gnulib/import/chdir-long.c: Update. + * gnulib/import/chdir-long.h: Update. + * gnulib/import/cloexec.c: Update. + * gnulib/import/cloexec.h: Update. + * gnulib/import/close.c: Update. + * gnulib/import/closedir.c: Update. + * gnulib/import/config.charset: Update. + * gnulib/import/dirent-private.h: Update. + * gnulib/import/dirent.in.h: Update. + * gnulib/import/dirfd.c: Update. + * gnulib/import/dirname-lgpl.c: Update. + * gnulib/import/dirname.h: Update. + * gnulib/import/dosname.h: Update. + * gnulib/import/dup-safer-flag.c: Update. + * gnulib/import/dup-safer.c: Update. + * gnulib/import/dup.c: Update. + * gnulib/import/dup2.c: Update. + * gnulib/import/errno.in.h: Update. + * gnulib/import/error.c: Update. + * gnulib/import/error.h: Update. + * gnulib/import/exitfail.c: Update. + * gnulib/import/exitfail.h: Update. + * gnulib/import/extra/update-copyright: Update. + * gnulib/import/fchdir.c: Update. + * gnulib/import/fcntl.c: Update. + * gnulib/import/fcntl.in.h: Update. + * gnulib/import/fd-hook.c: Update. + * gnulib/import/fd-hook.h: Update. + * gnulib/import/fd-safer-flag.c: Update. + * gnulib/import/fd-safer.c: Update. + * gnulib/import/fdopendir.c: Update. + * gnulib/import/filename.h: Update. + * gnulib/import/filenamecat-lgpl.c: Update. + * gnulib/import/filenamecat.h: Update. + * gnulib/import/flexmember.h: Update. + * gnulib/import/float+.h: Update. + * gnulib/import/float.c: Update. + * gnulib/import/float.in.h: Update. + * gnulib/import/fnmatch.c: Update. + * gnulib/import/fnmatch.in.h: Update. + * gnulib/import/fnmatch_loop.c: Update. + * gnulib/import/fpucw.h: Update. + * gnulib/import/frexp.c: Update. + * gnulib/import/frexpl.c: Update. + * gnulib/import/fstat.c: Update. + * gnulib/import/fstatat.c: Update. + * gnulib/import/getcwd-lgpl.c: Update. + * gnulib/import/getcwd.c: Update. + * gnulib/import/getdtablesize.c: Update. + * gnulib/import/getlogin_r.c: Update. + * gnulib/import/getprogname.c: Update. + * gnulib/import/getprogname.h: Update. + * gnulib/import/gettext.h: Update. + * gnulib/import/gettimeofday.c: Update. + * gnulib/import/glob-libc.h: Update. + * gnulib/import/glob.c: Update. + * gnulib/import/glob.in.h: Update. + * gnulib/import/glob_internal.h: Update. + * gnulib/import/glob_pattern_p.c: Update. + * gnulib/import/globfree.c: Update. + * gnulib/import/hard-locale.c: Update. + * gnulib/import/hard-locale.h: Update. + * gnulib/import/intprops.h: Update. + * gnulib/import/inttypes.in.h: Update. + * gnulib/import/isnan.c: Update. + * gnulib/import/isnand-nolibm.h: Update. + * gnulib/import/isnand.c: Update. + * gnulib/import/isnanl-nolibm.h: Update. + * gnulib/import/isnanl.c: Update. + * gnulib/import/itold.c: Update. + * gnulib/import/libc-config.h: Update. + * gnulib/import/limits.in.h: Update. + * gnulib/import/localcharset.c: Update. + * gnulib/import/localcharset.h: Update. + * gnulib/import/localtime-buffer.c: Update. + * gnulib/import/localtime-buffer.h: Update. + * gnulib/import/lstat.c: Update. + * gnulib/import/m4/00gnulib.m4: Update. + * gnulib/import/m4/__inline.m4: Update. + * gnulib/import/m4/absolute-header.m4: Update. + * gnulib/import/m4/alloca.m4: Update. + * gnulib/import/m4/builtin-expect.m4: Update. + * gnulib/import/m4/canonicalize.m4: Update. + * gnulib/import/m4/chdir-long.m4: Update. + * gnulib/import/m4/close.m4: Update. + * gnulib/import/m4/closedir.m4: Update. + * gnulib/import/m4/configmake.m4: Update. + * gnulib/import/m4/d-ino.m4: Update. + * gnulib/import/m4/d-type.m4: Update. + * gnulib/import/m4/dirent_h.m4: Update. + * gnulib/import/m4/dirfd.m4: Update. + * gnulib/import/m4/dirname.m4: Update. + * gnulib/import/m4/double-slash-root.m4: Update. + * gnulib/import/m4/dup.m4: Update. + * gnulib/import/m4/dup2.m4: Update. + * gnulib/import/m4/eealloc.m4: Update. + * gnulib/import/m4/environ.m4: Update. + * gnulib/import/m4/errno_h.m4: Update. + * gnulib/import/m4/error.m4: Update. + * gnulib/import/m4/exponentd.m4: Update. + * gnulib/import/m4/exponentl.m4: Update. + * gnulib/import/m4/extensions.m4: Update. + * gnulib/import/m4/extern-inline.m4: Update. + * gnulib/import/m4/fchdir.m4: Update. + * gnulib/import/m4/fcntl-o.m4: Update. + * gnulib/import/m4/fcntl.m4: Update. + * gnulib/import/m4/fcntl_h.m4: Update. + * gnulib/import/m4/fdopendir.m4: Update. + * gnulib/import/m4/filenamecat.m4: Update. + * gnulib/import/m4/flexmember.m4: Update. + * gnulib/import/m4/float_h.m4: Update. + * gnulib/import/m4/fnmatch.m4: Update. + * gnulib/import/m4/fnmatch_h.m4: Update. + * gnulib/import/m4/fpieee.m4: Update. + * gnulib/import/m4/frexp.m4: Update. + * gnulib/import/m4/frexpl.m4: Update. + * gnulib/import/m4/fstat.m4: Update. + * gnulib/import/m4/fstatat.m4: Update. + * gnulib/import/m4/getcwd-abort-bug.m4: Update. + * gnulib/import/m4/getcwd-path-max.m4: Update. + * gnulib/import/m4/getcwd.m4: Update. + * gnulib/import/m4/getdtablesize.m4: Update. + * gnulib/import/m4/getlogin.m4: Update. + * gnulib/import/m4/getlogin_r.m4: Update. + * gnulib/import/m4/getpagesize.m4: Update. + * gnulib/import/m4/getprogname.m4: Update. + * gnulib/import/m4/gettimeofday.m4: Update. + * gnulib/import/m4/glibc21.m4: Update. + * gnulib/import/m4/glob.m4: Update. + * gnulib/import/m4/glob_h.m4: Update. + * gnulib/import/m4/gnulib-cache.m4: Update. + * gnulib/import/m4/gnulib-common.m4: Update. + * gnulib/import/m4/gnulib-comp.m4: Update. + * gnulib/import/m4/gnulib-tool.m4: Update. + * gnulib/import/m4/hard-locale.m4: Update. + * gnulib/import/m4/include_next.m4: Update. + * gnulib/import/m4/inttypes-pri.m4: Update. + * gnulib/import/m4/inttypes.m4: Update. + * gnulib/import/m4/isnand.m4: Update. + * gnulib/import/m4/isnanl.m4: Update. + * gnulib/import/m4/largefile.m4: Update. + * gnulib/import/m4/limits-h.m4: Update. + * gnulib/import/m4/localcharset.m4: Update. + * gnulib/import/m4/locale-fr.m4: Update. + * gnulib/import/m4/locale-ja.m4: Update. + * gnulib/import/m4/locale-zh.m4: Update. + * gnulib/import/m4/localtime-buffer.m4: Update. + * gnulib/import/m4/longlong.m4: Update. + * gnulib/import/m4/lstat.m4: Update. + * gnulib/import/m4/malloc.m4: Update. + * gnulib/import/m4/malloca.m4: Update. + * gnulib/import/m4/math_h.m4: Update. + * gnulib/import/m4/mbrtowc.m4: Update. + * gnulib/import/m4/mbsinit.m4: Update. + * gnulib/import/m4/mbsrtowcs.m4: Update. + * gnulib/import/m4/mbstate_t.m4: Update. + * gnulib/import/m4/memchr.m4: Update. + * gnulib/import/m4/memmem.m4: Update. + * gnulib/import/m4/mempcpy.m4: Update. + * gnulib/import/m4/memrchr.m4: Update. + * gnulib/import/m4/mkdir.m4: Update. + * gnulib/import/m4/mkstemp.m4: Update. + * gnulib/import/m4/mmap-anon.m4: Update. + * gnulib/import/m4/mode_t.m4: Update. + * gnulib/import/m4/msvc-inval.m4: Update. + * gnulib/import/m4/msvc-nothrow.m4: Update. + * gnulib/import/m4/multiarch.m4: Update. + * gnulib/import/m4/nocrash.m4: Update. + * gnulib/import/m4/off_t.m4: Update. + * gnulib/import/m4/onceonly.m4: Update. + * gnulib/import/m4/open-cloexec.m4: Update. + * gnulib/import/m4/open.m4: Update. + * gnulib/import/m4/openat.m4: Update. + * gnulib/import/m4/opendir.m4: Update. + * gnulib/import/m4/pathmax.m4: Update. + * gnulib/import/m4/rawmemchr.m4: Update. + * gnulib/import/m4/readdir.m4: Update. + * gnulib/import/m4/readlink.m4: Update. + * gnulib/import/m4/realloc.m4: Update. + * gnulib/import/m4/rename.m4: Update. + * gnulib/import/m4/rewinddir.m4: Update. + * gnulib/import/m4/rmdir.m4: Update. + * gnulib/import/m4/save-cwd.m4: Update. + * gnulib/import/m4/secure_getenv.m4: Update. + * gnulib/import/m4/setenv.m4: Update. + * gnulib/import/m4/signal_h.m4: Update. + * gnulib/import/m4/ssize_t.m4: Update. + * gnulib/import/m4/stat-time.m4: Update. + * gnulib/import/m4/stat.m4: Update. + * gnulib/import/m4/std-gnu11.m4: Update. + * gnulib/import/m4/stdbool.m4: Update. + * gnulib/import/m4/stddef_h.m4: Update. + * gnulib/import/m4/stdint.m4: Update. + * gnulib/import/m4/stdio_h.m4: Update. + * gnulib/import/m4/stdlib_h.m4: Update. + * gnulib/import/m4/strchrnul.m4: Update. + * gnulib/import/m4/strdup.m4: Update. + * gnulib/import/m4/strerror.m4: Update. + * gnulib/import/m4/string_h.m4: Update. + * gnulib/import/m4/strstr.m4: Update. + * gnulib/import/m4/strtok_r.m4: Update. + * gnulib/import/m4/sys_socket_h.m4: Update. + * gnulib/import/m4/sys_stat_h.m4: Update. + * gnulib/import/m4/sys_time_h.m4: Update. + * gnulib/import/m4/sys_types_h.m4: Update. + * gnulib/import/m4/tempname.m4: Update. + * gnulib/import/m4/time_h.m4: Update. + * gnulib/import/m4/unistd-safer.m4: Update. + * gnulib/import/m4/unistd_h.m4: Update. + * gnulib/import/m4/warn-on-use.m4: Update. + * gnulib/import/m4/wchar_h.m4: Update. + * gnulib/import/m4/wchar_t.m4: Update. + * gnulib/import/m4/wctype_h.m4: Update. + * gnulib/import/m4/wint_t.m4: Update. + * gnulib/import/malloc.c: Update. + * gnulib/import/malloc/scratch_buffer.h: Update. + * gnulib/import/malloc/scratch_buffer_grow.c: Update. + * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update. + * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update. + * gnulib/import/malloca.c: Update. + * gnulib/import/malloca.h: Update. + * gnulib/import/malloca.valgrind: Update. + * gnulib/import/math.in.h: Update. + * gnulib/import/mbrtowc.c: Update. + * gnulib/import/mbsinit.c: Update. + * gnulib/import/mbsrtowcs-impl.h: Update. + * gnulib/import/mbsrtowcs-state.c: Update. + * gnulib/import/mbsrtowcs.c: Update. + * gnulib/import/memchr.c: Update. + * gnulib/import/memmem.c: Update. + * gnulib/import/mempcpy.c: Update. + * gnulib/import/memrchr.c: Update. + * gnulib/import/mkdir.c: Update. + * gnulib/import/mkstemp.c: Update. + * gnulib/import/msvc-inval.c: Update. + * gnulib/import/msvc-inval.h: Update. + * gnulib/import/msvc-nothrow.c: Update. + * gnulib/import/msvc-nothrow.h: Update. + * gnulib/import/open.c: Update. + * gnulib/import/openat-die.c: Update. + * gnulib/import/openat-priv.h: Update. + * gnulib/import/openat-proc.c: Update. + * gnulib/import/openat.c: Update. + * gnulib/import/openat.h: Update. + * gnulib/import/opendir.c: Update. + * gnulib/import/pathmax.h: Update. + * gnulib/import/pipe-safer.c: Update. + * gnulib/import/rawmemchr.c: Update. + * gnulib/import/readdir.c: Update. + * gnulib/import/readlink.c: Update. + * gnulib/import/realloc.c: Update. + * gnulib/import/ref-add.sin: Update. + * gnulib/import/ref-del.sin: Update. + * gnulib/import/rename.c: Update. + * gnulib/import/rewinddir.c: Update. + * gnulib/import/rmdir.c: Update. + * gnulib/import/same-inode.h: Update. + * gnulib/import/save-cwd.c: Update. + * gnulib/import/save-cwd.h: Update. + * gnulib/import/scratch_buffer.h: Update. + * gnulib/import/secure_getenv.c: Update. + * gnulib/import/setenv.c: Update. + * gnulib/import/signal.in.h: Update. + * gnulib/import/stat-time.c: Update. + * gnulib/import/stat-time.h: Update. + * gnulib/import/stat-w32.c: Update. + * gnulib/import/stat-w32.h: Update. + * gnulib/import/stat.c: Update. + * gnulib/import/stdbool.in.h: Update. + * gnulib/import/stddef.in.h: Update. + * gnulib/import/stdint.in.h: Update. + * gnulib/import/stdio.in.h: Update. + * gnulib/import/stdlib.in.h: Update. + * gnulib/import/str-two-way.h: Update. + * gnulib/import/strchrnul.c: Update. + * gnulib/import/strdup.c: Update. + * gnulib/import/streq.h: Update. + * gnulib/import/strerror-override.c: Update. + * gnulib/import/strerror-override.h: Update. + * gnulib/import/strerror.c: Update. + * gnulib/import/string.in.h: Update. + * gnulib/import/stripslash.c: Update. + * gnulib/import/strnlen1.c: Update. + * gnulib/import/strnlen1.h: Update. + * gnulib/import/strstr.c: Update. + * gnulib/import/strtok_r.c: Update. + * gnulib/import/sys_stat.in.h: Update. + * gnulib/import/sys_time.in.h: Update. + * gnulib/import/sys_types.in.h: Update. + * gnulib/import/tempname.c: Update. + * gnulib/import/tempname.h: Update. + * gnulib/import/time.in.h: Update. + * gnulib/import/unistd--.h: Update. + * gnulib/import/unistd-safer.h: Update. + * gnulib/import/unistd.in.h: Update. + * gnulib/import/unsetenv.c: Update. + * gnulib/import/verify.h: Update. + * gnulib/import/extra/snippet/warn-on-use.h: Update. + * gnulib/import/wchar.in.h: Update. + * gnulib/import/wctype.in.h: Update. + * gnulib/import/xalloc-oversized.h: Update. + * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to + "53e2c179f26a890fa6685af4b6c1397ee370433b". + +2018-08-16 Gary Benson <gbenson@redhat.com> + + PR gdb/13000: + * gdb/main.c (captured_main_1): Exit with nonzero status + in batch mode if the last command to be executed failed. + * NEWS: Mention the above. + +2018-08-29 Simon Marchi <simon.marchi@ericsson.com> + + * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at + end of warning message. + +2018-08-29 Alan Hayward <alan.hayward@arm.com> + + PR gdb/22943: + * aarch64-tdep.c (is_hfa_or_hva): Remove function. + (aarch64_extract_return_value): Use + aapcs_is_vfp_call_or_return_candidate. + (aarch64_return_in_memory): Likewise. + (aarch64_store_return_value): Likewise. + +2018-08-29 Alan Hayward <alan.hayward@arm.com> + + * aarch64-tdep.c + (aapcs_is_vfp_call_or_return_candidate): Make static + (pass_in_v_or_stack): Remove function. + (pass_in_v_vfp_candidate): New function. + (aarch64_push_dummy_call): Check for float register candidates. + +2018-08-29 Alan Hayward <alan.hayward@arm.com> + + * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro. + (aapcs_is_vfp_call_or_return_candidate_1): New function. + (aapcs_is_vfp_call_or_return_candidate): Likewise. + +2018-08-28 Simon Marchi <simon.marchi@polymtl.ca> + + PR build/23399 + * common/agent.c (IPA_SYM_STRUCT_NAME): Define. + (struct ipa_sym_addresses): Rename to... + (struct ipa_sym_addresses_common): ... this. + * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME. + +2018-08-28 Tom Tromey <tom@tromey.com> + + * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC. + (token_fifo): Now a std::vector. + (yylex, c_parse): Update. + * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC. + (token_fifo): Now a std::vector. + (yylex, d_parse): Update. + * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC. + (token_fifo): Now a std::vector. + (yylex, go_parse): Update. + +2018-08-28 Simon Marchi <simon.marchi@ericsson.com> + + * parser-defs.h (struct type_stack) <elements>: Change type to + std::vector<union type_stack_elt>. + <depth, size>: Remove. + * parse.c (parse_exp_in_context_1): Adjust. + (type_stack_reserve): Remove. + (check_type_stack_depth): Remove. + (insert_into_type_stack): Adjust to std::vector. + (insert_type): Likewise. + (push_type): Likewise. + (push_type_int): Likewise. + (insert_type_address_space): Likewise. + (pop_type): Likewise. + (pop_type_int): Likewise. + (pop_typelist): Likewise. + (pop_type_stack): Likewise. + (append_type_stack): Likewise. + (push_type_stack): Likewise. + (get_type_stack): Likewise. + (type_stack_cleanup): Likewise. + (push_typelist): Likewise. + (follow_types): Likewise. + (_initialize_parse): Likewise. + +2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com> + + * NEWS: Mention csky target. + +2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com> + Hafiz Abid Qadeer <abidh@codesourcery.com> + Don Breazeal <donb@codesourcery.com> + + * csky-linux-tdep.c: New file. + * csky-tdep.c: Likewise. + * csky-tdep.h: Likewise. + * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and + csky-tdep.o. + (HFILES_NO_SRCDIR): Add csky-tdep.h. + (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c + * configure.tgt: Add csky support. + +2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz> + + * python/py-framefilter.c (py_print_frame): Print frame architecture + when printing on an MI output. + +2018-08-27 Tom Tromey <tom@tromey.com> + + PR build/23087: + * configure: Rebuild. + * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing. + +2018-08-27 Tom Tromey <tom@tromey.com> + + * aarch64-linux-tdep.c + (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add + casts to int. + +2018-08-27 Tom Tromey <tom@tromey.com> + + * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to + unsigned. + (ppc64_standard_linkage1, ppc64_standard_linkage2) + (ppc64_standard_linkage3, ppc64_standard_linkage4) + (ppc64_standard_linkage5, ppc64_standard_linkage6) + (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to + unsigned. + +2018-08-27 Tom Tromey <tom@tromey.com> + + * xtensa-tdep.h (XTREG_END): Add cast to unsigned. + (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise. + +2018-08-27 Tom Tromey <tom@tromey.com> + + * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine. + * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use + ULONGEST_MAX. + * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use + ULONGEST_MAX. + * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use + ULONGEST_MAX. + * sparc-linux-tdep.c (sparc32_linux_sigframe) + (sparc32_linux_rt_sigframe): Use ULONGEST_MAX. + * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use + ULONGEST_MAX. + * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame) + (ppc64_linux_sigaction_tramp_frame) + (ppc32_linux_sighandler_tramp_frame) + (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX. + * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame) + (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX. + * mn10300-linux-tdep.c (am33_linux_sigframe) + (am33_linux_rt_sigframe): Use ULONGEST_MAX. + * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX. + * mips-linux-tdep.c (mips_linux_o32_sigframe) + (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe) + (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe) + (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe) + (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX. + * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe) + (mips64_fbsd_sigframe): Use ULONGEST_MAX. + * microblaze-linux-tdep.c + (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX. + * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2) + (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31) + (i386nbsd_sigtramp_si4): Use ULONGEST_MAX. + * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX. + * common/common-types.h (ULONGEST_MAX): New define. + (CORE_ADDR_MAX): Fix formatting. + * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX. + * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX. + * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame) + (arm_linux_rt_sigreturn_tramp_frame) + (arm_eabi_linux_sigreturn_tramp_frame) + (arm_eabi_linux_rt_sigreturn_tramp_frame) + (thumb2_eabi_linux_sigreturn_tramp_frame) + (thumb2_eabi_linux_rt_sigreturn_tramp_frame) + (arm_linux_restart_syscall_tramp_frame) + (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX. + * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX. + * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use + ULONGEST_MAX. + * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX. + +2018-08-27 Tom Tromey <tom@tromey.com> + + * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use + CORE_ADDR_MAX. + * mips-tdep.c (mips_deal_with_atomic_sequence) + (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX. + * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw) + (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX. + * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use + CORE_ADDR_MAX. + * aarch64-tdep.c (aarch64_software_single_step): Use + CORE_ADDR_MAX. + +2018-08-27 Tom Tromey <tom@tromey.com> + + * linespec.c (complete_linespec_component): Add cast to "char". + * completer.c (completion_tracker::build_completion_result): Add + cast to "char". + +2018-08-26 Simon Marchi <simon.marchi@polymtl.ca> + + * solist.h (struct solist, struct target_so_ops): Fix + indentation. + +2018-08-26 Simon Marchi <simon.marchi@polymtl.ca> + + * ada-tasks.c (ada_task_info_s): Remove typedef. + (DEF_VEC_O(ada_task_info_s)): Remove. + (struct ada_tasks_inferior_data): Initialize fields. + <task_list>: Make an std::vector. + (get_ada_tasks_inferior_data): Allocate with new. + (ada_get_task_number): Adjust. + (get_task_number_from_id): Likewise. + (valid_task_id): Likewise. + (ada_get_task_info_from_ptid): Likewise. + (iterate_over_live_ada_tasks): Likewise. + (add_ada_task): Likewise. + (read_known_tasks): Likewise. + (ada_build_task_list): Likewise. + (print_ada_task_info): Likewise. + (info_task): Likewise. + (task_command_1): Likewise. + +2018-08-26 Simon Marchi <simon.marchi@polymtl.ca> + + * ada-lang.c (add_angle_brackets): Return std::string. + +2018-08-25 Simon Marchi <simon.marchi@polymtl.ca> + + * python/py-threadevent.c (py_get_event_thread): Initialize + pythread. + +2018-08-24 Pedro Alves <palves@redhat.com> + + * python/py-bpevent.c (create_breakpoint_event_object): Use + copy-initialization. + * python/py-continueevent.c (emit_continue_event): Use + copy-initialization. + * python/py-exitedevent.c (create_exited_event_object): Return a + gdbpy_ref<>. + (emit_exited_event): Use copy-initialization. + * python/py-inferior.c (python_new_inferior) + (python_inferior_deleted, add_thread_object): Use + copy-initialization. + * python/py-infevents.c (create_inferior_call_event_object) + (create_register_changed_event_object) + (create_memory_changed_event_object): Return a gdbpy_ref<>. + (emit_inferior_call_event, emit_memory_changed_event) + (emit_register_changed_event): Use copy-initialization. + * python/py-newobjfileevent.c (create_new_objfile_event_object): + Return a gdbpy_ref<>. + (emit_new_objfile_event): Use copy-initialization. + (create_clear_objfiles_event_object): Return a gdbpy_ref<>. + (emit_clear_objfiles_event): Use copy-initialization. + * python/py-signalevent.c (create_signal_event_object): Use + copy-initialization. + * python/py-threadevent.c (create_thread_event_object): Use + copy-initialization. + +2018-08-24 Pedro Alves <palves@redhat.com> + Simon Marchi <simon.marchi@ericsson.com> + + PR gdb/23379 + * python/py-continueevent.c: Include "gdbthread.h". + (create_continue_event_object): Add intro comment. Add 'ptid' + parameter. Use it to find thread to pass to + create_thread_event_object. + (emit_continue_event): Pass PTID down to + create_continue_event_object. + * python/py-event.h (py_get_event_thread): Declare. + (create_thread_event_object): Remove default from 'thread' + parameter. + * python/py-stopevent.c (create_stop_event_object): Use + py_get_event_thread. + * python/py-threadevent.c (get_event_thread): Rename to ... + (py_get_event_thread): ... this, make extern, add 'ptid' parameter + and use it to find the thread. + (create_thread_event_object): Assert that THREAD isn't null. + Don't find the event thread here. + +2018-08-23 Kevin Buettner <kevinb@redhat.com> + + * block.h (blockrange, blockranges): New struct declarations. + (struct block): Add new field named `ranges'. + (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P) + (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New + macros for accessing ranges in struct block. + (make_blockranges): New declaration. + block.c (make_blockranges): New function. + * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES + for block. + * symtab.h (find_pc_partial_function): Add new parameter `block'. + * blockframe.c (cache_pc_function_block): New static global. + (clear_pc_function_cache): Clear cache_pc_function_block. + (find_pc_partial_function): Move comment to symtab.h. Add + support for non-contiguous blocks. + * cli/cli-cmds.c (block.h): Include. + (print_disassembly): Handle printing of non-contiguous blocks. + (disassemble_current_function): Likewise. + (disassemble_command): Likewise. + + * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of + BLOCK_START. + * blockframe.c (get_pc_function_start): Likewise. + * compile/compile-c-symbols.c (convert_one_symbol): Likewise. + (gcc_symbol_address): Likewise. + * compile/compile-object-run.c (compile_object_run): Likewise. + * compile/compile.c (get_expr_block_and_pc): Likewise. + * dwarf2loc.c (dwarf2_find_location_expression): Likewise. + (func_addr_to_tail_call_list): Likewise. + * findvar.c (default_read_var_value): Likewise. + * inline-frame.c (inline_frame_this_id): Likewise. + (skip-inline_frames): Likewise. + * infcmd.c (until_next_command): Likewise. + * linespec.c (convert_linespec_to_sals): Likewise. + * parse.c (parse_exp_in_context_1): Likewise. + * printcmd.c (build_address_symbolic): likewise. + (info_address_command): Likewise. + symtab.c (find_function_start_sal): Likewise. + (skip_prologue_sal): Likewise. + (find_function_alias_target): Likewise. + (find_gnu_ifunc): Likewise. + * stack.c (find_frame_funname): Likewise. + * symtab.c (fixup_symbol_section): Likewise. + (find_function_start_sal): Likewise. + (skip_prologue_sal): Likewsie. + (find_function_alias_target): Likewise. + (find_gnu_ifunc): Likewise. + * tracepoint.c (info_scope_command): Likewise. + * value.c (value_fn_field): Likewise. + + * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc + in place of find_pc_partial_function. + * blockframe.c (find_function_entry_range_from_pc): New function. + * symtab.h (find_function_entry_range_from_pc): Declare and document. + * objfiles.c (objfile_relocate1): Relocate start and end addresses + for each range in a block. + + +2018-08-23 Xavier Roirand <roirand@adacore.com> + + * machoread.c (macho_symfile_read_all_oso): Remove uneeded + incrementation. + +2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> + + * solib-svr4.c (read_program_headers_from_bfd): Return + gdb::optional<gdb::byte_vector>. + (svr4_exec_displacement): Adjust. + +2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> + + * solib-svr4.c (read_program_header): Return + gdb::optional<gdb::byte_vector>, remove p_sect_size param. + (find_program_interpreter): Return + gdb::optional<gdb::byte_vector>. + (scan_dyntag_auxv): Adjust. + (enable_break): Adjust. + (svr4_exec_displacement): Adjust. + +2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> + + * inf-child.h (inf_child_target) <terminal_save_inferior>: New. + * inf-child.c (inf_child_target::terminal_save_inferior): New. + +2018-08-22 Simon Marchi <simon.marchi@polymtl.ca> + + * guile/scm-string.c (gdbscm_scm_from_printf): Use + string_vprintf. + * guile/scm-utils.c (gdbscm_printf): Likewise. + * serial.c (serial_printf): Likewise. + * xml-support.c (gdb_xml_parser::vdebug): Likewise. + +2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz> + + * stack.c (print_frame): Print frame architecture when printing on + an MI output. + * NEWS: Mention new "arch" attribute in frame output. + +2018-08-21 Alan Hayward <alan.hayward@arm.com> + + * arch/aarch64.h (aarch64_regnum): Update comment. + +2018-08-21 Alan Hayward <alan.hayward@arm.com> + + * NEWS: Add SVE to 8.2 section. + +2018-08-21 Pedro Alves <palves@redhat.com> + + * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored + out from gdbscm_parse_function_args. + (gdbscm_parse_function_args): Rework to use gdbscm_wrap and + gdbscm_parse_function_args_1. + +2018-08-21 Simon Marchi <simon.marchi@ericsson.com> + + PR gdb/17816 + * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary + operator. + +2018-08-19 Simon Marchi <simon.marchi@polymtl.ca> + + * solib-svr4.c (svr4_exec_displacement): Fix formatting. + +2018-08-19 Michael Spang <spang@google.com> + + PR gdb/11786 + * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields + for PT_TLS segments. + +2018-08-18 Kevin Buettner <kevinb@redhat.com> + + * dwarf2expr.h (struct dwarf_expr_context): Add virtual method + dwarf_variable_value. + * dwarf2-frame.c (class dwarf_expr_executor): + Add override for dwarf_variable_value. + * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise. + (class symbol_needs_eval_context): Likewise. + (indirect_synthetic_pointer): Add forward declaration. + (sect_variable_value): New function. + (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value. + * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case + for DW_OP_GNU_variable_value. + +2018-08-16 Tom Tromey <tom@tromey.com> + + * top.c (read_command_file): Update. + (command_line_input): Remove "repeat" argument. + * ada-lang.c (get_selections): Update. + * linespec.c (decode_line_2): Update. + * defs.h (command_line_input): Remove argument. + * cli/cli-script.c (read_next_line): Update. + * python/py-gdb-readline.c: Update. + +2018-08-17 Tom Tromey <tom@tromey.com> + + * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to + command_line_input. + +2018-08-15 Tom Tromey <tom@tromey.com> + + * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest. + +2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz> + + * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option. + If used, use find_pc_partial_function to find address range + to disassemble. + * mi/mi-main.c (mi_cmd_list_features): Report + "data-disassemble-a-option" feature. + * NEWS: Mention new -data-disassemble option -a. + +2018-08-13 Tom Tromey <tom@tromey.com> + + * common/common-defs.h (_FORTIFY_SOURCE): Define. + +2018-08-13 Alan Hayward <alan.hayward@arm.com> + + * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function. + (aarch64_linux_collect_sve_regset): Likewise. + (aarch64_linux_iterate_over_regset_sections): Check for SVE. + * regcache.h (regcache_map_entry_size): New function. + +2018-08-13 Alan Hayward <alan.hayward@arm.com> + + * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define. + (SVE_HEADER_MAX_SIZE_LENGTH): Likewise. + (SVE_HEADER_VL_LENGTH): Likewise. + (SVE_HEADER_MAX_VL_LENGTH): Likewise. + (SVE_HEADER_FLAGS_LENGTH): Likewise. + (SVE_HEADER_RESERVED_LENGTH): Likewise. + (SVE_HEADER_SIZE_OFFSET): Likewise. + (SVE_HEADER_MAX_SIZE_OFFSET): Likewise. + (SVE_HEADER_VL_OFFSET): Likewise. + (SVE_HEADER_MAX_VL_OFFSET): Likewise. + (SVE_HEADER_FLAGS_OFFSET): Likewise. + (SVE_HEADER_RESERVED_OFFSET): Likewise. + (SVE_HEADER_SIZE): Likewise. + (aarch64_linux_core_read_vq): Add function. + (aarch64_linux_core_read_description): Check for SVE section. + +2018-08-13 Alan Hayward <alan.hayward@arm.com> + + * aarch64-fbsd-tdep.c + (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and + collect_size. + * aarch64-linux-tdep.c + (aarch64_linux_iterate_over_regset_sections): Likewise. + * alpha-linux-tdep.c + (alpha_linux_iterate_over_regset_sections): + * alpha-nbsd-tdep.c + (alphanbsd_iterate_over_regset_sections): Likewise. + * amd64-fbsd-tdep.c + (amd64fbsd_iterate_over_regset_sections): Likewise. + * amd64-linux-tdep.c + (amd64_linux_iterate_over_regset_sections): Likewise. + * arm-bsd-tdep.c + (armbsd_iterate_over_regset_sections): Likewise. + * arm-fbsd-tdep.c + (arm_fbsd_iterate_over_regset_sections): Likewise. + * arm-linux-tdep.c + (arm_linux_iterate_over_regset_sections): Likewise. + * corelow.c (get_core_registers_cb): Likewise. + (core_target::fetch_registers): Likewise. + * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise. + * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise. + * gdbarch.h (void): Regenerate. + * gdbarch.sh: Add supply_size and collect_size. + * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise. + * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise. + * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise. + * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise. + * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise. + * i386-tdep.c (i386_iterate_over_regset_sections): Likewise. + * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise. + * linux-tdep.c (linux_collect_regset_section_cb): Likewise. + * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise. + * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise. + * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise. + * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise. + * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise. + * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise. + * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): + Likewise. + * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise. + * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise. + * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise. + * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise. + * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise. + * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise. + * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): + Likewise. + * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise. + * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise. + * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise. + * sh-tdep.c (sh_iterate_over_regset_sections): Likewise. + * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise. + * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise. + * vax-tdep.c (vax_iterate_over_regset_sections): Likewise. + * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise. + +2018-08-10 Simon Marchi <simon.marchi@ericsson.com> + + * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf + with string_printf. + +2018-08-10 Keith Seitz <keiths@redhat.com> + + * compile/compile-c-support.c (add_code_header, add_code_footer): + Move into policy class. + (c_push_user_expression, pop_user_expression_nop) + (c_add_code_header, c_add_code_footer, c_add_input): New policy class. + (compile_program): New host class. + (c_compile_program): New typedef. + (c_compute_porgram): Use c_compile_program. + +2018-08-10 Keith Seitz <keiths@redhat.com> + + * compile/compile-internal.h (compile_instance::~compile_instance): + Remove calls to htab_delete. + <m_type_map, m_symbol_err_map>: Switch type to htab_up. + * compile.c (compile_instance::compile_instance): Initialize + htab unique pointers. + (compile_instance::get_cached_type, compile_instance::insert_type) + (compile_instance::error_symbol_once): Update for unique_ptr. + +2018-08-10 Keith Seitz <keiths@redhat.com> + + * compile/compile-c-symbols.c (struct symbol_error) + (hash_symbol_error, eq_symbol_error, del_symbol_error) + (compile_instance::insert_symbol_error) + (compile_instance::error_symbol_once): Move to ... + * compile/compile.c: ... here. + +2018-08-10 Keith Seitz <keiths@redhat.com> + + * compile/compile-c-support.c (c_get_compile_context): Use `new' + instead of `new_compile_instance'. + * compile/compile-c-symbols.c (compile_instance::insert_symbol_error): + Update description. + If the symbol error map is not initialized, create it. + (generate_c_for_for_one_symbol): Do not check/initialize + the symbol error map. + * compile/compile-c-types.c (compile_c_instance): Make a class. + Update all callers. + (compile_instance::compile_instance): Initialize the type cache. + (get_cached_type): New function. + (insert_type): Update description. + (compile_c_instance::m_default_cflags): Define. + (convert_type): Update description. Use get_cached_type. + (delete_instance): Moved to destructor. + (new_compile_instance): Moved to constructor. + * compile/compile-c.h (compile_c_instance): Make class inheriting + from compile_instance. + <base>: Remove field. + <type_map, symbol_err_map>: Move to base class. + <c_plugin>: Rename to `m_plugin' and remove pointer type. + * compile/compile-internal.h (compile_instance): Make class. + <type_map_t, symbol_err_map_t>: Define. + <fe>: Rename to `m_gcc_fe'. + <scope, block, gcc_target_options>: Add `m_' prefix. + <m_type_map, m_symbol_err_map>: New fields, moved from + compile_c_instance. + <destroy>: Remove. + (convert_type, new_compile_instance): Remove. + * compile/compile.c (cleanup_compile_instance): Remove. + (compile_to_object): Use unique_ptr to eliminate cleanups. + (compile_instance::set_print_callback, compile_instance::version) + (compile_instance::set_verbose) + (compile_instance::set_driver_filename) + (compile_instance::set_triplet_regexp) + (compile_instance::set_arguments) + (compile_instance::set_source_file) + (compile_instance::compile): Define. + +2018-08-10 Keith Seitz <keiths@redhat.com> + + * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h. + * compile/compile-c-types.c: Define GCC_METHODN macros and include + gcc-c-fe.def to define C plugin. + (delete_instance): Delete `c_plugin'. + (new_compile_instance): Initialize `c_plugin'. + * compile/compile-c.h: Include gcc_c_plugin.h. + (struct compile_c_instance) <c_plugin>: New member. + * gcc-c-plugin.h: New file. + Update all callers with API change. + +2018-08-10 Keith Seitz <keiths@redhat.com> + + * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ... + (HFILES_NO_SRCDIR): ... to here. + Add compile-internal.h and compile-c.h. + * compile/compile-c-support.c: Include compile-c.h. + * compile/compile-c-symbols.c: Include compile-c.h. + (generate_c_for_variable_locations): Update comment. + * compile/compile-c-types.c: Include compile-c.h. + * compile/compile-c.h: New file -- moved C language declarations + from other files here. + * compile/compile-internal.h: Do not include hashtab.h or + common/enum-flags.h. + (gcc_qualifiers_flags, struct compile_c_instance, C_CTX) + (gcc_convert_symbol, gcc_symbol_address) + (generate_c_for_variable_locations, c_get_mode_for_size) + (c_get_range_decl_name): Definitions moved to compile-c.h. + * compile/compile-loc2c.c: Include compile-c.h. + +2018-08-10 Keith Seitz <keiths@redhat.com> + + * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ... + (c_symbol_substitution_name): ... this. + Update all callers. + +2018-08-10 Keith Seitz <keiths@redhat.com> + + * compile/compile-c-support.c (c_compute_program): Use + unique_xmalloc_ptr to eliminate cleanup. + * compile/compile-c-symbols.c (generate_c_for_variable_locations): + Return a unique_xmalloc_ptr and eliminate cleanup. + * compile/compile-internal.h (generate_c_for_variable_locations): + Return unique_xmalloc_ptr and update description. + +2018-08-10 Alan Hayward <alan.hayward@arm.com> + + * corelow.c (core_target::get_core_register_section): Rename + min_size to section_min_size. + +2018-08-09 Jim Wilson <jimw@sifive.com> + + * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c. + (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c. + * NEWS: Mention new GNU/Linux RISC-V target. + * configure.host: Add riscv*-*-linux*. + * configure.nat: Add riscv*. + * configure.tgt: Add riscv*-*-linux*. + * riscv-linux-nat.c: New file. + * riscv-linux-tdep.c: New file. + +2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com> + + * infrun.c (resume): Make static, add forward declaration. + (proceed): Update header comment. + * infrun.h (resume): Delete declaration. + +2018-08-09 Tom Tromey <tom@tromey.com> + + * riscv-tdep.h: Minor formatting fixes. + +2018-08-09 Simon Marchi <simon.marchi@ericsson.com> + + * common/scoped_mmap.c (mmap_file): Silence ARI warning. + * dwarf-index-cache.c (create_dir_and_check): Likewise. + (test_mkdir_recursive): Likewise. + * dwarf-index-write.c (write_psymtabs_to_index): Likewise. + +2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com> + + * valarith.c (value_subscripted_rvalue): If an array is not in + memory, and we don't know the upper bound, then we can't know that + the requested element exists or not. + +2018-08-08 Simon Marchi <simon.marchi@ericsson.com> + + * target.c (str_comma_list_concat_elem): Fix typo in comment. + (target_options_to_string): Add comment. + +2018-08-08 Tom Tromey <tom@tromey.com> + + * unittests/scoped_mmap-selftests.c: Check result of "write". + +2018-08-08 Jim Wilson <jimw@sifive.com> + + * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes. + (decode_register_index_short): New. + (decode_j_type_insn, decode_cj_type_insn): New. + (decode_b_type_insn, decode_cb_type_insn): New. + (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New + local xlen. Check xlen when decoding ambiguous compressed insns. In + compressed decode, use is_c_lui_insn instead of is_lui_insn, and + is_c_sw_insn instead of is_sw_insn. + (riscv_next_pc, riscv_next_pc_atomic_sequence): New. + (riscv_software_single_step): New. + * riscv-tdep.h (riscv_software_single_step): Declare. + + * riscv-tdep.c (riscv_isa_xlen): Drop static. + * riscv-tdep.h (riscv_isa_xlen): Add extern declaration. + +2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com> + + PR gdb/18050: + * target.c (dispose_inferior): Don't dispose of inferiors that are + already killed. + +2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com> + + * remote.c (remote_target::download_tracepoint): Change char* to + const char*. + +2018-08-07 Simon Marchi <simon.marchi@polymtl.ca> + + * target.h (target_options_to_string): Return an std::string. + * target.c (str_comma_list_concat_elem): Return void, use + std::string. + (do_option): Likewise. + (target_options_to_string): Return an std::string. + * linux-nat.c (linux_nat_target::wait): Adjust. + * target-debug.h (target_debug_print_options): Adjust. + +2018-08-07 Tom Tromey <tom@tromey.com> + + * Makefile.in (CPPFLAGS): New variable. + (INTERNAL_CPPFLAGS): Use it. + +2018-08-07 Simon Marchi <simon.marchi@ericsson.com> + + * NEWS: Mention the index cache. + +2018-08-07 Simon Marchi <simon.marchi@ericsson.com> + + * common/pathstuff.h (get_standard_cache_dir): New. + * common/pathstuff.c (get_standard_cache_dir): New. + * build-id.h (build_id_to_string): New. + * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX, + DEBUG_STR_SUFFIX): Move to here. + * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX, + DEBUG_STR_SUFFIX): Move from there. + (write_psymtabs_to_index): Make non-static, add basename + parameter. Write to temporary files, rename when done. + (save_gdb_index_command): Adjust call to + write_psymtabs_to_index. + * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New + field. + * dwarf2read.c (dwz_file) <index_cache_res>: New field. + (get_gdb_index_contents_from_cache): New. + (get_gdb_index_contents_from_cache_dwz): New. + (dwarf2_initialize_objfile): Read index from cache. + (dwarf2_build_psymtabs): Save to index. + * dwarf-index-cache.h: New file. + * dwarf-index-cache.c: New file. + * dwarf-index-write.h: New file. + +2018-08-07 Simon Marchi <simon.marchi@ericsson.com> + + * gnulib/aclocal.m4: Re-generate. + * gnulib/config.in: Re-generate. + * gnulib/configure: Re-generate. + * gnulib/import/Makefile.am: Re-generate. + * gnulib/import/Makefile.in: Re-generate. + * gnulib/import/m4/gnulib-cache.m4: Re-generate. + * gnulib/import/m4/gnulib-comp.m4: Re-generate. + * gnulib/import/m4/mkdir.m4: New file. + * gnulib/import/mkdir.c: New file. + * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir + module. + +2018-08-07 Simon Marchi <simon.marchi@ericsson.com> + + * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c. + * common/scoped_mmap.c: New file. + * common/scoped_mmap.h (destroy): New method. + (~scoped_mmap, reset): Use destroy. + (scoped_mmap): New move constructor. + (mmap_file): New declaration. + * unittests/scoped_mmap-selftests.c (test_normal, + test_invalid_filename, run_tests): New functions. + (_initialize_scoped_mmap_selftests): Register selftest. + +2018-08-07 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2read.c (read_gdb_index_from_section): Rename to... + (read_gdb_index_from_buffer): ... this. Remove section + parameter, add buffer parameter. + (get_gdb_index_contents_ftype, + get_gdb_index_contents_dwz_ftype): New typedefs. + (dwarf2_read_gdb_index): Add callback parameters to get the + index contents. + (get_gdb_index_contents_from_section): New. + (dwarf2_initialize_objfile): Update call to + dwarf2_read_gdb_index. + +2018-08-07 Simon Marchi <simon.marchi@ericsson.com> + + * common/filestuff.h (gdb_fopen_cloexec): New overload. + (gdb_open_cloexec): Likewise. + * nat/linux-osdata.c (command_from_pid): Use string_printf. + (commandline_from_pid): Likewise. + (linux_xfer_osdata_threads): Likewise. + (linux_xfer_osdata_fds): Likewise. + * ada-lang.c (is_package_name): Likewise. + * auxv.c (procfs_xfer_auxv): Likewise. + * breakpoint.c (print_one_breakpoint_location): Use + uiout::field_fmt. + (print_one_catch_solib): Use string_printf. + * coff-pe-read.c (add_pe_exported_sym): Likewise. + (add_pe_forwarded_sym): Likewise. + * dwarf2read.c (create_type_unit_group): Likewise. + (build_error_marker_type): Likewise. + * infcall.c (get_function_name): Likewise. + * valprint.c (print_converted_chars_to_obstack): Likewise. + * xtensa-tdep.c (xtensa_register_type): Likewise. + +2018-08-06 Simon Marchi <simon.marchi@ericsson.com> + + * remote.c (remote_target::download_tracepoint): Fix format + string errors. + +2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * tracefile.c: Include common/byte-vector.h. + (trace_save): Change type of buf to gdb::byte_vector. Initialize + with trace_regblock_size if needed. Update uses of buf. + +2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * tracepoint.h (collection_list) <m_regs_mask>: Change type to + std::vector<unsigned char>. + * tracepoint.c (collection_list::collection_list): Remove + m_regs_mask initializer from initializer list. Resize + m_regs_mask using the largest remote register number. + (collection_list::add_remote_register): Remove size check on + m_regs_mask. Use at to access element. + (collection_list::stringify): Change type of temp_buf to + gdb::char_vector. Update uses of temp_buf. Resize if needed to + stringify the register mask. Use pack_hex_byte for the register + mask. + +2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * tracepoint.h (class collection_list) <add_register>: Remove. + <add_remote_register, add_ax_registers, add_local_register>: + Declare. + <add_memrange>: Add scope parameter. + * tracepoint.c (encode_actions_1): Likewise. + (collection_list::add_register): Rename to ... + (collection_list::add_remote_register): ... this. Update + comment. + (collection_list::add_ax_registers, add_local_register): New + methods. + (collection_list::add_memrange): Add scope parameter. Call + add_local_register instead of add_register. + (finalize_tracepoint_aexpr): New function. + (collection_list::collect_symbol): Update calls to add_memrange. + Call add_local_register instead of add_register. Call + add_ax_registers. Call finalize_tracepoint_aexpr. + (encode_actions_1): Get remote regnos for $reg action. Call + add_remote_register, add_ax_registers, and add_local_register. + Update call to add_memrange. Call finalize_tracepoint_aexpr. + (validate_actionline): Call finalize_tracepoint_aexpr. + +2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE. + Replace array buf with gdb::char_vector buf, of size + get_remote_packet_size (). Replace references to buf and + BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat + and xsnprintf with snprintf. Raise errors if the buffer is too + small. + +2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * remote.c (remote_target::download_tracepoint): Fix the has_more + predicate in the QTDP action list iteration. + +2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> + + * remote.c (remote_target::download_tracepoint): Fix indentation + in for block. + +2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * proc-api.c (_initialize_proc_api): Remove c, unused. + * procfs.c (procfs_init_inferior): Remove signals, unused. + (procfs_target::make_corefile_notes): Remove old_chain, fpregs, + unused. + +2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com> + Andrew Burgess <andrew.burgess@embecosm.com> + + * linux-nat.c (linux_nat_target::follow_fork): Avoid using + 'W_STOPCODE (0)' as this could be ambiguous. + +2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com> + + * ser-tcp.c (net_open): Fix thinko when deciding whether to + disable TCP's Nagle algorithm (use "ai_protocol" instead of + "ai_socktype"). + +2018-08-02 Tom Tromey <tom@tromey.com> + + PR symtab/16842. + * dwarf2read.c (read_func_scope): Set symtab on template parameter + symbols. + (process_structure_scope): Likewise. + +2018-08-02 Xavier Roirand <roirand@adacore.com> + + PR gdb/22629: + * darwin-nat.c (darwin_kill_inferior): Fix handling of + kill inferior. + +2018-08-02 Tom Tromey <tom@tromey.com> + + * darwin-nat.c (find_inferior_task_it, darwin_find_thread) + (darwin_suspend_inferior, darwin_resume_inferior) + (darwin_decode_notify_message, darwin_resume_inferior_threads) + (darwin_check_new_threads): Check result of get_darwin_inferior. + +2018-07-31 Joel Brobecker <brobecker@adacore.com> + + GDB 8.1.1 released. + +2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz> + + * varobj.c (varobj_get_path_expr_parent): Report an error if + parent is a dynamic varobj. + +2018-07-31 Simon Marchi <simon.marchi@ericsson.com> + + * gnulib/aclocal.m4: Re-generate. + * gnulib/config.in: Re-generate. + * gnulib/configure: Re-generate. + * gnulib/import/Makefile.in: Re-generate. + * gnulib/import/m4/gnulib-comp.m4: Re-generate. + * gnulib/import/m4/onceonly.m4: Re-generate. + +2018-07-31 Simon Marchi <simon.marchi@ericsson.com> + + * target-descriptions.c (struct xml_test_tdesc): New. + (xml_tdesc): Change type to std::vector<xml_test_tdesc>. + (record_xml_tdesc): Update. + (maintenance_check_xml_descriptions): Update. + * target-descriptions.h (record_xml_tdesc): Update comment. + +2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com> + + * eval.c (evaluate_subexp_for_sizeof): Check for array type before + checking array bounds are defined. + +2018-07-30 Tom Tromey <tom@tromey.com> + + * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix + irreflexivity violation. + +2018-07-30 Tom Tromey <tom@tromey.com> + + * cli/cli-decode.c (lookup_cmd): Remove lint code. + * value.c (unpack_long): Remove lint code. + * valops.c (value_ind): Remove lint code. + * valarith.c (value_x_binop, value_x_unop, value_equal) + (value_pos): Remove lint code. + +2018-07-28 Tom de Vries <tdevries@suse.de> + + * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type + with undefined upper bound as <optimized out>. + +2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com> + + * gcore.in: Rename variable "name" to "prefix". Expand + "usage" text. + +2018-07-14 Jon Turney <jon.turney@dronecode.org.uk> + + * windows-nat.c (windows_nat_target::create_inferior): Update to + call close() in global namespace. + +2018-07-26 Tom Tromey <tom@tromey.com> + + * dwarf-index-write.c (add_address_entry): Don't add objfile + offsets. + * dbxread.c (find_stab_function): Rename from + find_stab_function_addr. Return a bound_minimal_symbol. + (read_dbx_symtab): Use raw_text_low, raw_text_high. + Don't add objfile offsets. + (end_psymtab): Use raw_text_low, raw_text_high, + MSYMBOL_VALUE_RAW_ADDRESS. + (read_ofile_symtab): Update. + (process_one_symbol): Update. + * dwarf2read.c (create_addrmap_from_index): Don't add objfile + offsets. + (dw2_relocate): Remove. + (dw2_find_pc_sect_symtab): Bias PC by the text offset before + searching addrmap. + (dwarf2_gdb_index_functions, dwarf2_debug_names_functions): + Update. + (process_psymtab_comp_unit_reader, add_partial_symbol) + (add_partial_subprogram, dwarf2_ranges_read): Update. + (load_partial_dies): Update. + (add_address_entry): Don't add objfile offsets. + (dwarf2_build_include_psymtabs): Update. + (create_addrmap_from_aranges): Don't add objfile offsets. + (dw2_find_pc_sect_compunit_symtab): Update. + * mdebugread.c (parse_symbol): Don't add objfile offsets. + (parse_lines): Remove 'pst' parameter, replace with 'textlow'. + Update. + (parse_partial_symbols): Don't add objfile offsets. Use + raw_text_low, raw_text_high. Update. + (handle_psymbol_enumerators, psymtab_to_symtab_1): Update. + * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap + or call 'relocate' quick function. Clear psymbol_map. + * psympriv.h (struct partial_symbol) <address>: Add section + offset. + <set_unrelocated_address>: Rename from set_address. + <raw_text_low, raw_text_high>: New methods. + <text_low, text_high>: Add objfile parameter. + (add_psymbol_to_bcache): Add 'section' parameter. Call + set_unrelocated_address. + * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) + (find_pc_psymbol): Update. + (fixup_psymbol_section, relocate_psymtabs): Remove. + (dump_psymtab, psym_functions): Update. + (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section' + parameter. + (maintenance_info_psymtabs, maintenance_check_psymtabs): Update. + (start_psymtab_common): Update. + * symfile-debug.c (debug_qf_relocate): Remove. + (debug_sym_quick_functions): Update. + * symfile.h (struct quick_symbol_functions) <relocate>: Remove. + * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets. + Update. + +2018-07-26 Tom Tromey <tromey@redhat.com> + + * dbxread.c (end_psymtab): Use text_high_valid and + text_low_valid. + * mdebugread.c (parse_partial_symbols): Use text_low_valid. + (psymtab_to_symtab_1): Use text_high_valid and text_low_valid. + * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>: + Update comment. + <text_low_valid, text_high_valid>: New fields. + <set_text_low, set_text_high>: Update. + * xcoffread.c (scan_xcoff_symtab): Use text_low_valid. + +2018-07-26 Tom Tromey <tom@tromey.com> + + * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): + Update. + * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize + textlow and texthigh fields. + (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs): + Update. + * mdebugread.c (parse_lines, parse_partial_symbols) + (psymtab_to_symtab_1): Update. + * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>: + Rename fields. Update comment. Now private. + <text_low, text_high, set_text_low, set_text_high>: New methods. + * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) + (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab) + (start_psymtab_common, maintenance_info_psymtabs) + (maintenance_check_psymtabs): Update. + * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and + texthigh fields. + (scan_xcoff_symtab): Update. + +2018-07-26 Tom Tromey <tromey@redhat.com> + + * psympriv.h (struct partial_symbol) <unrelocated_address, + address, set_address>: New methods. + * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol) + (fixup_psymbol_section, relocate_psymtabs): Update. + (print_partial_symbols): Add 'objfile' parameter. Update. + (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map): + Update. + +2018-07-26 Tom Tromey <tom@tromey.com> + + * dwarf-index-write.c (write_psymbols, debug_names::insert) + (debug_names::write_psymbols): Update. + * psympriv.h (struct partial_symbol): Derive from + general_symbol_info. + <obj_section>: New method. + (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n + * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab) + (find_pc_sect_psymbol, fixup_psymbol_section) + (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs) + (print_partial_symbols, recursively_search_psymtabs) + (compare_psymbols, psymbol_hash, psymbol_compare) + (add_psymbol_to_bcache, maintenance_check_psymtabs) + (psymbol_name_matches, psym_fill_psymbol_map): Update. + +2018-07-26 Tom Tromey <tromey@redhat.com> + + * dbxread.c (end_psymtab): Remove dead code. + +2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com> + + * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if + DWARF unwinders are disabled. + * dwarf2-frame.c: Add dwarf2read.h include. + (dwarf2_frame_sniffer): Exit early if DWARF unwinders are + disabled. + (dwarf2_frame_unwinders_enabled_p): Define. + (show_dwarf_unwinders_enabled_p): New function. + (_initialize_dwarf2_frame): Register switch to control DWARF + unwinder use. + * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare. + * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword. + (show_dwarf_cmdlist): Remove static keyword. + * dwarf2read.h (set_dwarf_cmdlist): Declare. + (show_dwarf_cmdlist): Declare. + * NEWS: Document new feature. + +2018-07-26 Tom de Vries <tdevries@suse.de> + + PR breakpoints/23366 + * infcmd.c (info_program_command): Handle ptid == minus_one_ptid. + +2018-07-26 Tom de Vries <tdevries@suse.de> + + * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or + DW_AT_count can't be translated to a dynamic prop. + +2018-07-25 Tom de Vries <tdevries@suse.de> + + * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in + try/catch. + +2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz> + + * breakpoint.c (enable_disable_bp_num_loc): Notify observers. + +2018-07-25 Joel Brobecker <brobecker@adacore.com> + + * MAINTAINERS (Global Maintainers): Add Tom Tromey. + +2018-07-24 Keith Seitz <keiths@redhat.comt + + PR symtab/23010 + * dwarf2read.c (dw2_add_symbol_to_list): New function. + (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list + instead of add_symbol_to_list. + (read_file_scope): Call prepare_one_comp_unit before reading + any other DIEs. + +2018-07-24 Simon Marchi <simon.marchi@ericsson.com> + + * common/scoped_mmap.h (class scoped_mmap): Fix indentation. + +2018-07-24 Tom Tromey <tom@tromey.com> + + * utils.c (malloc, realloc, free): Don't declare. + * configure, config.in: Rebuild. + * configure.ac: Don't check for declarations of free, malloc, or + realloc. + +2018-07-22 Simon Marchi <simon.marchi@polymtl.ca> + + * aarch64-linux-nat.c + (aarch64_linux_nat_target::stopped_data_address): Remove unused + variable. + * arm-linux-nat.c (fetch_regs): Likewise. + (store_regs): Likewise. + (fetch_vfp_regs): Likewise. + (store_vfp_regs): Likewise. + (arm_linux_nat_target::insert_hw_breakpoint): Likewise. + (arm_linux_nat_target::remove_hw_breakpoint): Likewise. + (arm_linux_nat_target::insert_watchpoint): Likewise. + (arm_linux_nat_target::remove_watchpoint): Likewise. + * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint): + Likewise. + * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): + Likewise. + * ppc-linux-nat.c (fetch_register): Likewise. + (fetch_all_gp_regs): Likewise. + (fetch_ppc_registers): Likewise. + (store_all_gp_regs): Likewise. + (store_ppc_registers): Likewise. + (hwdebug_insert_point): Likewise. + (can_use_watchpoint_cond_accel): Likewise. + * remote-sim.c (gdb_os_write_stdout): Likewise. + +2018-07-22 Simon Marchi <simon.marchi@polymtl.ca> + Tom Tromey <tom@tromey.com> + + * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special + test for it. + * configure: Rebuild. + +2018-07-22 Tom Tromey <tom@tromey.com> + + * regformats/regdat.sh: Define xmltarget_${name} inside + #ifndef IN_PROCESS_AGENT. + +2018-07-22 Tom Tromey <tom@tromey.com> + + * value.c (value_fetch_lazy_bitfield): Remove unused variable. + +2018-07-22 Tom Tromey <tom@tromey.com> + + * symfile.c (reread_symbols): Notify iter, not objfile. + +2018-07-22 Tom Tromey <tom@tromey.com> + + * ravenscar-thread.c (ravenscar_thread_target::store_registers): + Use arch_ops. + (ravenscar_thread_target::prepare_to_store): Likewise. + +2018-07-22 Tom Tromey <tom@tromey.com> + + * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove + unused variable. Call value_fetch_lazy when needed. + * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): + Remove unused variable. Call value_fetch_lazy when needed. + +2018-07-22 Tom Tromey <tom@tromey.com> + + * m32c-tdep.c (mark_dma): Return void. + (make_regs): Remove unused declarations. + +2018-07-22 Tom Tromey <tom@tromey.com> + + * guile/scm-cmd.c (gdbscm_dont_repeat): Call + cmdscm_get_valid_command_smob_arg_unsafe for effect. + * guile/scm-block.c (gdbscm_make_block_syms_iter): Call + bkscm_get_valid_block_smob_arg_unsafe for effect. + +2018-07-22 Tom Tromey <tom@tromey.com> + + * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not + value_type. + +2018-07-22 Tom Tromey <tom@tromey.com> + + * windows-nat.c (saved_context): Conditionally define. + * remote.c (remote_target::remote_btrace_maybe_reopen): + Conditionally declare "warned". + * inflow.c (sigquit_ours): Conditionally define. + (new_tty): Move "tty" declaration inside #if. + * guile/guile.c (guile_datadir): Conditionally define. + * charset.c (set_be_le_names): Move some declarations inside #if. + * btrace.c (parse_xml_btrace): Move "errcode" declaration inside + #if. + (parse_xml_btrace_conf): Likewise. + +2018-07-22 Tom Tromey <tom@tromey.com> + + * spu-tdep.c (spu_get_overlay_table): Remove unused variable. + +2018-07-22 Tom Tromey <tom@tromey.com> + + * guile/scm-value.c (gdbscm_value_call): Remove unused variables. + * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow) + (vlscm_convert_typed_value_from_scheme): Remove unused variable. + * buildsym-legacy.c (get_macro_table): Remove unused variable. + * stack.c (frame_apply_level_command): Remove unused variable. + * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable. + * sparc64-tdep.c (adi_examine_command): Remove unused variable. + * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove + unused variable. + * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable. + * mep-tdep.c (mep_push_dummy_call): Remove unused variable. + * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused + variable. + * amd64-tdep.c (amd64_supply_xsave): Remove unused variable. + * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused + variable. + * breakpoint.c (check_no_tracepoint_commands, update_watchpoint): + Remove unused variable. + * cli/cli-script.c (recurse_read_control_structure): Remove unused + variable. + * common/tdesc.c (print_xml_feature::visit): Remove unused + variable. + * compile/compile-object-load.c (store_regs): Remove unused + variables. + * complaints.c (clear_complaints): Remove unused variable. + * corelow.c (core_target_open): Remove unused variable. + * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused + variable. + * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused + variable. + * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused + variable. + * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused + variable. + * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused + variable. + * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused + variable. + * ia64-tdep.c (examine_prologue): Remove unused variable. + * infcall.c (run_inferior_call): Remove unused variable. + * inferior.c (exit_inferior): Remove unused variable. + * infrun.c (infrun_thread_ptid_changed): Remove unused variable. + * linespec.c (decode_line_2): Remove unused variable. + * linux-nat.c (super_close): Remove. + * linux-tdep.c (linux_info_proc): Remove unused variable. + * mi/mi-main.c (mi_execute_command): Remove unused variable. + * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache): + Remove unused variable. + * parse.c (find_minsym_type_and_address): Remove unused variable. + * printcmd.c (info_symbol_command, printf_floating): Remove unused + variable. + * python/py-breakpoint.c (bppy_set_commands): Remove unused + variable. + * python/py-unwind.c (unwind_infopy_dealloc): Remove unused + variables. + * record-btrace.c (record_btrace_target::store_registers): Remove + unused variable. + (cmd_show_record_btrace_cpu): Remove unused variable. + * riscv-tdep.c (riscv_register_reggroup_p) + (riscv_push_dummy_call, riscv_return_value): Remove unused + variable. + * rust-exp.y (literal): Remove unused variable. + * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove + unused variable. + <STRUCTOP_ANONYMOUS>: Likewise. + * s390-linux-tdep.c (s390_linux_init_abi_31) + (s390_linux_init_abi_64): Remove unused variable. + * ser-ming2.c (ser_windows_read_prim, pipe_select_thread) + (file_select_thread, net_windows_open, _initialize_ser_windows): + Remove unused variables. + * symtab.c (find_pc_sect_line): Remove unused variable. + * target-memory.c (compute_garbled_blocks): Remove unused + variable. + (target_write_memory_blocks): Remove unused variable. + * target.c (target_stack::unpush): Remove unused variables. + * tracepoint.c (start_tracing, all_tracepoint_actions) + (merge_uploaded_trace_state_variables) + (print_one_static_tracepoint_marker): Remove unused variable. + * unittests/basic_string_view/element_access/char/1.cc (test01): + Remove unused variable. + * windows-nat.c (windows_continue, windows_add_all_dlls) + (do_initial_windows_stuff, windows_nat_target::create_inferior): + Remove unused variables. + +2018-07-21 Simon Marchi <simon.marchi@polymtl.ca> + + * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and + attr_profile in HAVE_ELF. + * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in + HAVE_ELF. + +2018-07-20 Simon Marchi <simon.marchi@polymtl.ca> + + * frame.c (frame_register_unwind): Change parameter name. + (frame_unwind_register): Likewise. + (frame_unwind_register_value): Likewise. + (frame_unwind_register_signed): Likewise. + (frame_unwind_register_unsigned): Likewise. + * frame.h (frame_register_unwind): Likewise. + (frame_unwind_register): Likewise. + (frame_unwind_register_value): Likewise. + (frame_unwind_register_signed): Likewise. + (frame_unwind_register_unsigned): Likewise. + (frame_unwind_arch): Likewise. + +2018-07-20 Maciej W. Rozycki <macro@mips.com> + + * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV + ISA maintenance. + +2018-07-20 Maciej W. Rozycki <macro@mips.com> + + * mips-linux-nat.c (mips_linux_nat_target::read_description): + Call `get_ptrace_pid' rather than extracting the ptrace PID by + hand. + +2018-07-20 Keith Seitz <keiths@redhat.com> + + * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles, + m_main_subfile, m_comp_dir, m_producer, m_debugformat, + m_compunit_symtab, m_language>: Add "m_" prefix. + Update all uses. + * buildsym.c: Update all uses. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * buildsym-legacy.h (record_line): Don't use record_line_ftype. + * buildsym.h (record_line_ftype): Remove typedef. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * buildsym-legacy.h (augment_type_symtab): Don't declare. + (end_expandable_symtab): Likewise. + (end_symtab_get_static_block): Likewise. + (end_symtab_from_static_block): Likewise. + * buildsym-legacy.c (augment_type_symtab): Remove. + (end_expandable_symtab): Remove. + (end_symtab_get_static_block): Remove. + (end_symtab_from_static_block): Remove. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * dwarf2read.c: Include buildsym.h. + (struct dwarf2_cu) <builder>: New method. + (fixup_go_packaging): Update. + (process_full_comp_unit, process_full_type_unit): Update. Don't + use scoped_free_pendings. + (using_directives): Add "cu" parameter, remove "language". + (read_import_statement, setup_type_unit_groups, ) + (read_func_scope, read_lexical_block_scope) + (dwarf2_record_block_ranges, read_namespace): Update. + (lnp_state_machine::lnp_state_machine): Add cu parameter. + (lnp_state_machine::handle_end_sequence): Update. + (class lnp_state_machine) <m_cu>: New member. + <m_record_line_callback>: Remove. + <m_currently_recording_lines>: New member. + (lnp_state_machine::handle_set_file): Update. + (noop_record_line): Remove. + (dwarf_record_line_p): Add cu parameter. + (dwarf_record_line_1, dwarf_finish_line): Likewise. + (lnp_state_machine::record_line) + (lnp_state_machine::lnp_state_machine) + (lnp_state_machine::check_line_address, dwarf_decode_lines_1) + (dwarf_decode_lines): Update. + (dwarf2_start_subfile): Add cu parameter. + (dwarf2_start_symtab, new_symbol): Update. + (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter. + Remove dwarf2_per_objfile parameter. + (dwarf_decode_macros): Update. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * stabsread.c (define_symbol): Update. + * buildsym-legacy.h (get_buildsym_compunit): Declare. + * dwarf2read.c (new_symbol): Update. + * cp-support.h (cp_scan_for_anonymous_namespaces): Update. + * cp-namespace.c: Include buildsym.h. + (cp_scan_for_anonymous_namespaces): Add "compunit" parameter. + * buildsym-legacy.c (get_buildsym_compunit): New function. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * xcoffread.c: Include buildsym-legacy.h. + * windows-nat.c: Include buildsym-legacy.h. + * stabsread.c: Include buildsym-legacy.h. + * mdebugread.c: Include buildsym-legacy.h. + * buildsym-legacy.h: New file. + * buildsym-legacy.c: New file, from buildsym.c. + * go32-nat.c: Include buildsym-legacy.h. + * dwarf2read.c: Include buildsym-legacy.h. + * dbxread.c: Include buildsym-legacy.h. + * cp-namespace.c: Include buildsym-legacy.h. + * coffread.c: Include buildsym-legacy.h. + * buildsym.h: Move some contents to buildsym-legacy.h. + * buildsym.c: Include buildsym-legacy.h. Move many functions to + buildsym-legacy.c. + * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * buildsym.h (struct buildsym_compunit): Move from buildsym.c. + * buildsym.c (struct buildsym_compunit): Move to buildsym.h. + (buildsym_compunit::buildsym_compunit) + (buildsym_compunit::~buildsym_compunit) + (buildsym_compunit::get_macro_table): Define. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * buildsym.c (reset_symtab_globals): Remove. + (buildsym_compunit::end_symtab_from_static_block): Update. + (buildsym_compunit::augment_type_symtab): Update. + (end_symtab_from_static_block): Call free_buildsym_compunit. + (augment_type_symtab, end_symtab, end_expandable_symtab): + Likewise. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * arch-utils.c: Do not include buildsym.h. + * mipsread.c: Do not include buildsym.h. + * machoread.c: Do not include buildsym.h. + * elfread.c: Do not include buildsym.h. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * buildsym.c (buildsym_compunit::buildsym_compunit): Do more + initialization. + (buildsym_compunit): Add new constructor. + (struct buildsym_compunit) <get_last_source_file, finish_block, + record_block_range, start_subfile, patch_subfile_names, + push_subfile, pop_subfile, record_line, get_compunit_symtab, + set_last_source_start_addr, get_last_source_start_addr, + get_local_using_directives, set_local_using_directives, + get_global_using_directives, outermost_context_p, + get_current_context_stack, get_context_stack_depth, + get_current_subfile, get_local_symbols, get_file_symbols, + get_global_symbols, record_debugformat, record_producer, + push_context, pop_context, end_symtab_get_static_block, + end_symtab_from_static_block, end_symtab, end_expandable_symtab>: + New public methods. + <record_pending_block, finish_block_internal, make_blockvector, + watch_main_source_file_lossage, end_symtab_with_blockvector>: New + private methods. + Update all users. + +2018-05-22 Tom Tromey <tom@tromey.com> + + * buildsym.c (record_pending_block): Move earlier. Remove objfile + parameter. + (finish_block_internal): Update. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * buildsym.c (record_pending_block): Move earlier. Remove objfile + parameter. + (finish_block_internal): Update. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * buildsym.h (EXTERN): Don't define or undef. + * buildsym.c (EXTERN): Don't define. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * buildsym.c: Remove TODO comment. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * coffread.c (coff_symtab_read): Update. + * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. + (xcoff_new_init): Update. + * mipsread.c (mipscoff_new_init): Update. + * mdebugread.c (mdebug_build_psymtabs): Update. + * elfread.c (elf_new_init): Update. + * dwarf2read.c (process_full_comp_unit, process_full_type_unit): + Update. + * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1) + (coffstab_build_psymtabs, elfstab_build_psymtabs) + (stabsect_build_psymtabs): Update. + * buildsym.h (buildsym_init): Don't declare. + * buildsym.c: Update comment. + (prepare_for_building): Remove. + (start_symtab, restart_symtab): Update. + (reset_symtab_globals): Update comment. + (buildsym_init): Remove. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update. + * stabsread.c (patch_block_stabs, define_symbol, read_type) + (read_enum_type, common_block_start, common_block_end) + (cleanup_undefined_types_1, finish_global_stabs): Update. + * mdebugread.c (psymtab_to_symtab_1): Update. + * dwarf2read.c (fixup_go_packaging, read_func_scope) + (read_lexical_block_scope, new_symbol): Update. + * dbxread.c (process_one_symbol): Update. + * coffread.c (coff_symtab_read, process_coff_symbol) + (coff_read_enum_type): Update. + * buildsym.h (file_symbols, global_symbols, local_symbols): Don't + declare. + (get_local_symbols, get_file_symbols, get_global_symbols): New + functions. + * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and + m_global_symbols. + <m_file_symbols, m_local_symbols, m_global_symbols>: New members. + (~scoped_free_pendings): Update. + (finish_block, prepare_for_building, reset_symtab_globals) + (end_symtab_get_static_block, end_symtab_with_blockvector) + (augment_type_symtab, push_context): Update. + (get_local_symbols, get_file_symbols, get_global_symbols): New + functions. + (buildsym_init): Update. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope. + (process_full_type_unit): Likewise. + (dwarf2_start_symtab): Set list_in_scope. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (process_psymtab_comp_unit_reader) + (build_type_psymtabs_reader): Do not set list_in_scope. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * buildsym.c (free_pendings): Remove. + (add_symbol_to_list, scoped_free_pendings) + (finish_block_internal, buildsym_init): Update. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * xcoffread.c (read_xcoff_symtab): Update. + * dwarf2read.c (read_func_scope, read_lexical_block_scope): + Update. + * dbxread.c (process_one_symbol): Update. + * coffread.c (coff_symtab_read): Update. + * buildsym.h (finish_block): Update. + * buildsym.c (finish_block): Remove "listhead" argument. + (end_symtab_get_static_block): Update. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * buildsym.h (class scoped_free_pendings): Remove constructor. + * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New + method. + <m_pending_block_obstack, m_pending_blocks>: New members. + (pending_block_obstack, pending_blocks): Remove. + (scoped_free_pendings::scoped_free_pendings): Default. + (~scoped_free_pendings): Update. + (free_pending_blocks): Remove. + (finish_block_internal, record_pending_block, make_blockvector) + (end_symtab_get_static_block, augment_type_symtab, push_context) + (buildsym_init): Update. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * buildsym.c (struct buildsym_compunit) <m_pending_addrmap, + m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New + members. + (pending_addrmap, pending_addrmap_obstack) + (pending_addrmap_interesting): Remove. + (scoped_free_pendings, record_block_range, make_blockvector) + (prepare_for_building, reset_symtab_globals, buildsym_init): + Update. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * xcoffread.c (process_linenos): Update. + * stabsread.c (define_symbol, read_type, read_enum_type): Update. + * mdebugread.c (psymtab_to_symtab_1): Update. + * dwarf2read.c (setup_type_unit_groups) + (lnp_state_machine::handle_set_file, dwarf_record_line_p) + (lnp_state_machine::record_line, dwarf_decode_lines): Update. + * dbxread.c (process_one_symbol): Update. + * coffread.c (coff_symtab_read, enter_linenos) + (process_coff_symbol): Update. + * buildsym.h (current_subfile): Don't declare. + (get_current_subfile): Declare. + * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New + member. + (start_subfile, free_buildsym_compunit, push_subfile) + (prepare_for_building, start_symtab): Update. + (get_current_subfile): New function. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * coffread.c (coff_symtab_read): Update. + * xcoffread.c (read_xcoff_symtab): Update. + * dwarf2read.c (new_symbol): Update. + (read_func_scope, read_lexical_block_scope): Update. + * dbxread.c (process_one_symbol): Update. + * buildsym.h (context_stack, context_stack_depth): Don't declare. + (outermost_context_p): Remove macro. + (outermost_context_p, get_current_context_stack) + (get_context_stack_depth): Declare. + (pop_context): Return struct context_stack. + * buildsym.c (struct buildsym_compunit) <m_context_stack: New + member. + (context_stack_size): Remove. + (INITIAL_CONTEXT_STACK_SIZE): Remove. + (prepare_for_building, end_symtab_get_static_block) + (augment_type_symtab, push_context): Update. + (pop_context): Return struct context_stack. + (outermost_context_p, get_current_context_stack) + (get_context_stack_depth): New functions. + (buildsym_init): Update. + +2018-07-20 Tom Tromey <tom@tromey.com> + + * rust-exp.y: Now a pure parser. Update all rules. + (%union): Move earlier. + (current_parser, work_obstack): Remove globals. + (rust_parser, ~rust_parser): Update. + (class rust_parser) <copy_name, concat3, crate_name, super_name, + lex_character, lex_number, lex_string, lex_identifier, + rust_lookup_type, convert_params_to_types, convert_ast_to_type, + convert_name, convert_params_to_expression, + convert_ast_to_expression, ast_basic_type, ast_operation, + ast_compound_assignment, rust_op, ast_literal, ast_dliteral, + ast_structop, ast_structop_anonymous, ast_unary, ast_cast, + ast_call_ish, ast_path, ast_string, ast_struct, ast_range, + ast_array_type, ast_slice_type, ast_reference_type, + ast_pointer_type, ast_function_type, ast_tuple_type>: New methods. + (rust_parse): Update. + (rustyyerror, rustyylex): Add parser parameter. + (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test) + (rust_lex_stringish_test, rust_lex_test_sequence) + (rust_lex_test_trailing_dot, rust_lex_test_completion) + (rust_lex_test_push_back, rust_lex_tests): Update. + +2018-07-19 Pedro Alves <palves@redhat.com> + + * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a + gdb::unique_xmalloc_ptr. + * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): + Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr. + * guile/scm-exception.c (gdbscm_exception_message_to_string): Use + copy-initialization. + * guile/scm-pretty-print.c (ppscm_print_children): Use + gdb::unique_xmalloc_ptr instead of cleanups. + (gdbscm_apply_val_pretty_printer): Remove cleanups. + * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a + gdb::unique_xmalloc_ptr. + * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p): + Adjust to use gdb::unique_xmalloc_ptr. + * guile/scm-utils.c (extract_arg): Adjust. + * guile/scm-value.c (gdbscm_value_field): Adjust to use + gdb::unique_xmalloc_ptr instead of a cleanup. + +2018-07-19 Tom Tromey <tom@tromey.com> + + * utils.c (do_value_free_to_mark) + (make_cleanup_value_free_to_mark): Remove. + * utils.h (make_cleanup_value_free_to_mark): Remove. + +2018-07-19 Pedro Alves <palves@redhat.com> + + * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a + forwarding reference. + +2018-07-18 Pedro Alves <palves@redhat.com> + + * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use + gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a + cleanup. + +2018-07-18 Pedro Alves <palves@redhat.com> + + * guile/guile-internal.h: Add comment about mixing GDB and Scheme + exceptions. + (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete. + (gdbscm_wrap): New. + * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree + directly instead of a cleanup. + * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ... + (vlscm_unop): ... this. Reimplement using gdbscm_wrap. + (vlscm_binop_gdbthrow): New, factored out from ... + (vlscm_binop): ... this. Reimplement using gdbscm_wrap. + (vlscm_rich_compare): Use gdbscm_wrap. + * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly + instead of a cleanup. + (gdbscm_lookup_global_symbol): Use xfree directly instead of a + cleanup. + * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p): + Use xfree directly instead of a cleanup. + * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value): + Adjust to use gdbscm_wrap and scoped_value_mark. + (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap. + (gdbscm_value_address, gdbscm_value_dereference) + (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and + scoped_value_mark. + (gdbscm_value_dynamic_type): Use scoped_value_mark. + (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and + scoped_value_mark. + (gdbscm_value_subscript, gdbscm_value_call): Adjust to use + gdbscm_wrap and scoped_value_mark. + (gdbscm_value_to_string): Use xfree directly instead of a + cleanup. Move 'buffer' unique_ptr to TRY scope. + (gdbscm_value_to_lazy_string): Use xfree directly instead of a + cleanup. Move 'buffer' unique_ptr to TRY scope. Use + scoped_value_mark. + (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap. + (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and + scoped_value_mark. + (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use + gdbscm_wrap. + +2018-07-18 Tom de Vries <tdevries@suse.de> + + * findvar.c (default_read_var_value): Also resolve dynamic type for + LOC_OPTIMIZED_OUT vars. + +2018-07-18 Maciej W. Rozycki <macro@mips.com> + + * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction + decoding. + +2018-07-17 Tom Tromey <tom@tromey.com> + + * guile/scm-param.c (pascm_set_func, pascm_show_func) + (compute_enum_list, pascm_set_param_value_x) + (gdbscm_parameter_value): Update. + * guile/guile-internal.h (gdbscm_scm_to_string): Update. + (gdbscm_scm_to_host_string): Update. + * guile/scm-math.c (vlscm_convert_typed_value_from_scheme): + Update. + * guile/scm-cmd.c (cmdscm_add_completion): Update. + * guile/scm-pretty-print.c (ppscm_print_string_repr): Update. + * guile/scm-string.c (gdbscm_scm_to_string): Return + unique_xmalloc_ptr. + (gdbscm_scm_to_host_string): Likewise. + +2018-07-17 Tom Tromey <tom@tromey.com> + + * guile/guile.c (gdbscm_eval_from_control_command): Update. + * guile/guile-internal.h (gdbscm_safe_eval_string): Update. + * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update. + * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return + unique_xmalloc_ptr. + +2018-07-17 Tom Tromey <tom@tromey.com> + + * guile/scm-param.c (pascm_signal_setshow_error): Update. + * guile/guile-internal.h (gdbscm_exception_message_to_string): + Update. + * guile/scm-cmd.c (cmdscm_function): Update. + * guile/scm-pretty-print.c + (ppscm_print_exception_unless_memory_error): Update. + * guile/scm-exception.c (gdbscm_exception_message_to_string): + Return unique_xmalloc_ptr. + +2018-07-17 Tom Tromey <tom@tromey.com> + + * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception): + Use string_printf. + +2018-07-17 Jim Wilson <jimw@sifive.com> + + * riscv-tdep.c (riscv_has_feature): Delete comment that refers to + set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always. + (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now + unecessary braces after EF_RISCV_RVC test. Delete call to + set_gdbarch_decr_pc_after_break. + + * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of + RISCV_LAST_FP_REGNUM + 1. + (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM. + +2018-07-17 Tom Tromey <tom@tromey.com> + + * configure.ac: Remove --disable-gdbcli. + * configure: Rebuild. + * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS) + (SUBDIR_CLI_CFLAGS): Remove. + (SFILES): Use SUBDIR_CLI_SRCS. + (COMMON_OBS): Use SUBDIR_CLI_OBS. + +2018-07-17 Tom Tromey <tom@tromey.com> + + PR gdb/18624: + * coffread.c (coff_symtab_read): Use scoped_free_pendings. + +2018-07-16 Jim Wilson <jimw@sifive.com> + + * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi. + +2018-07-16 Simon Marchi <simon.marchi@ericsson.com> + + * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused + variable. + (libunwind_frame_sniffer): Likewise. + (libunwind_frame_prev_register): Likewise. + (libunwind_sigtramp_frame_sniffer): Likewise. + * ia64-tdep.c (ia64_access_reg): Likewise. + (ia64_access_rse_reg): Likewise. + (ia64_libunwind_sigtramp_frame_this_id): Likewise. + * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise. + +2018-07-16 Simon Marchi <simon.marchi@ericsson.com> + + * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast. + +2018-07-16 Simon Marchi <simon.marchi@ericsson.com> + + * remote-sim.c (gdbsim_target::close, + gdbsim_target::mourn_inferior): Remove unused variables. + +2018-07-16 Simon Marchi <simon.marchi@polymtl.ca> + + * ia64-tdep.c (ktab_buf): New global. + (getunwind_table): Return a gdb::optional<gdb::byte_vector>. + (get_kernel_table): Adjust. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * xcoffread.c (read_xcoff_symtab): Use outermost_context_p. + * dwarf2read.c (using_directives, new_symbol): Use + outermost_context_p. + * dbxread.c (process_one_symbol): Use outermost_context_p. + * coffread.c (coff_symtab_read): Use outermost_context_p. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (using_directives, read_func_scope) + (read_lexical_block_scope): Update. + * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update. + * buildsym.h (local_using_directives, global_using_directives): + Don't declare. + (get_local_using_directives, set_local_using_directives) + (get_global_using_directives): Declare. + * buildsym.c (struct buildsym_compunit) <m_local_using_directives, + m_global_using_directives>: New members. + (finish_block_internal, prepare_for_building) + (reset_symtab_globals, end_symtab_get_static_block) + (push_context): Update. + (get_local_using_directives, set_local_using_directives) + (get_global_using_directives): New functions. + (buildsym_init): Update. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * xcoffread.c (xcoff_initial_scan): Don't call + free_pending_blocks. + * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks. + * buildsym.h (class scoped_free_pendings): Add constructor. + (free_pending_blocks): Don't declare. + * buildsym.c (scoped_free_pendings::scoped_free_pendings): New. + (free_pending_blocks): Now static. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * buildsym.h (push_subfile, pop_subfile): Update declarations. + * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New + member. + (struct subfile_stack): Remove. + (subfile_stack): Remove. + (push_subfile, pop_subfile, buildsym_init): Update. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * buildsym.c (push_subfile): Use gdb_assert. + (pop_subfile): Use gdb_assert. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * buildsym.h (merge_symbol_lists): Remove. + * buildsym.c (merge_symbol_lists): Remove. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * stabsread.c (scan_file_globals): Update comment. + * stabsread.h (scan_file_globals): Move from buildsym.h. + * buildsym.h (scan_file_globals): Move to stabsread.h. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * xcoffread.c (xcoff_new_init): Update. + * mipsread.c (mipscoff_new_init): Update. + * mdebugread.c (mdebug_build_psymtabs): Update. + * elfread.c (elf_new_init): Update. + * dbxread.c (dbx_new_init, coffstab_build_psymtabs) + (elfstab_build_psymtabs, stabsect_build_psymtabs): Update. + * buildsym.h (buildsym_new_init): Don't declare. + * buildsym.c (buildsym_new_init): Remove. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * stabsread.h (within_function): Move from buildsym.h. + * stabsread.c (start_stabs): Clear within_function. + * coffread.c (coff_start_symtab): Clear within_function. + * buildsym.h (within_function): Move to stabsread.h. + * buildsym.c (prepare_for_building): Update. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * stabsread.h (processing_gcc_compilation): Move from buildsym.h. + * dwarf2read.c (dwarf2_start_symtab): Don't set + processing_gcc_compilation. + * buildsym.h (processing_gcc_compilation): Move to stabsread.h. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text) + (next_symbol_text_func): Move from buildsym.h. + * stabsread.c (hashname): Move from buildsym.c. + * buildsym.h (HASHSIZE, symnum, next_symbol_text) + (next_symbol_text_func, hashname): Move to stabsread.h. + * buildsym.c: Don't include bcache.h + (hashname): Move to stasbread.c. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * buildsym.h (context_stack_size): Don't declare. + * buildsym.c (context_stack_size): New global. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * dbxread.c (processing_acc_compilation): New global. + * buildsym.h (processing_acc_compilation): Don't declare. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * xcoffread.c (aix_process_linenos, complete_symtab): Update. + * dbxread.c (read_ofile_symtab): Update. + * coffread.c (coff_start_symtab, coff_end_symtab): Update. + * buildsym.h (last_source_start_addr): Remove. + (set_last_source_start_addr, get_last_source_start_addr): + Declare. + * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr + parameter. + (struct buildsym_compunit) <m_last_source_start_addr>: New + member. + (prepare_for_building): Remove start_addr parameter. + (start_symtab, restart_symtab, end_symtab_get_static_block) + (end_symtab_with_blockvector): Update. + (set_last_source_start_addr, get_last_source_start_addr): New + functions. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New + member. + (have_line_numbers): Remove. + (record_line, prepare_for_building, end_symtab_get_static_block) + (augment_type_symtab): Update. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * buildsym.c (~buildsym_compunit): Free the macro table. + (struct buildsym_compunit) <get_macro_table, release_macros>: New + methods. + <m_pending_macros>: New member. + (pending_macros): Remove. + (~scoped_free_pendings, get_macro_table, prepare_for_building) + (reset_symtab_globals, end_symtab_get_static_block) + (end_symtab_with_blockvector, augment_type_symtab) + (buildsym_init): Update. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * buildsym.c (buildsym_compunit::buildsym_compunit): Add name + parameter. + (buildsym_compunit::set_last_source_file): New method. + <m_last_source_file>: New member. + (prepare_for_building): Remove "name" parameter. + (start_symtab, restart_symtab, reset_symtab_globals): Update. + (last_source_file): Remove. + (set_last_source_file, get_last_source_file): Update. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * buildsym.c (prepare_for_building): Add assert. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * buildsym.c (~buildsym_compunit): Update. + (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr. + (start_subfile, patch_subfile_names) + (end_symtab_with_blockvector): Update. + +2018-07-16 Tom Tromey <tom@tromey.com> + + * buildsym.c (struct buildsym_compunit): Add constructor, + destructor, initializers. + (start_buildsym_compunit): Remove. + (free_buildsym_compunit): Use "delete". + (start_symtab, restart_symtab): Use "new". + +2018-07-13 Simon Marchi <simon.marchi@polymtl.ca> + + * symfile.c (set_objfile_default_section_offset): Remove struct + keyword. + +2018-07-14 Stafford Horne <shorne@gmail.com> + + * (Responsible Maintainers): Add myself as or1k maintainer. + +2018-07-13 Tom Tromey <tom@tromey.com> + + * symfile.c (set_objfile_default_section_offset): Use extra braces + around initializer. + +2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com> + + * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a + non-branching basr. + +2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + unittests/cli-utils-selftests.c + * unittests/cli-utils-selftests.c: New file. + +2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * NEWS: Mention new commands. Mention change to 'thread apply'. + +2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * thread.c (thr_try_catch_cmd): New function. + (thread_apply_all_command): Handle qcs flags. + (thread_apply_command): Handle qcs flags. + (taas_command): New function. + (tfaas_command): New function. + (_initialize_thread): Update to setup the new commands 'taas + and 'tfaas'. Change doc string for 'thread apply'. + +2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * stack.c: (trailing_outermost_frame): New function, mostly + extracted from backtrace_command_1. + (leading_innermost_frame): New function. + (backtrace_command_1): Update to call trailing_outermost_frame. + (frame_apply_command_count): New function. + (frame_apply_level_command): New function. + (frame_apply_all_command): New function. + (frame_apply_command): New function. + (faas_command): New function. + (frame_cmd_list): New variable. + (_initialize_stack): Update to setup the new commands 'frame apply' + and 'faas'. + +2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * cli-utils.c (number_or_range_parser::get_number): Only handle + numbers or convenience var as numbers. + (parse_flags): New function. + (parse_flags_qcs): New function. + (number_or_range_parser::finished): Ensure parsing end is detected + before end of string. + * cli-utils.h (parse_flags): New function. + (parse_flags_qcs): New function. + (number_or_range_parser): Remove m_finished bool. + (number_or_range_parser::skip_range): Set m_in_range to false. + +2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com> + + * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building + on Windows. + +2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com> + Jan Kratochvil <jan.kratochvil@redhat.com> + Paul Fertser <fercerpav@gmail.com> + Tsutomu Seki <sekiriki@gmail.com> + Pedro Alves <palves@redhat.com> + + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + 'unittests/parse-connection-spec-selftests.c'. + (COMMON_SFILES): Add 'common/netstuff.c'. + (HFILES_NO_SRCDIR): Add 'common/netstuff.h'. + * NEWS (Changes since GDB 8.2): Mention IPv6 support. + * common/netstuff.c: New file. + * common/netstuff.h: New file. + * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'. + (wait_for_connect): Update comment. New parameter + 'gdb::optional<int> sock' instead of 'struct serial *scb'. + Use 'sock' directly instead of 'scb->fd'. + (try_connect): New function, with code from 'net_open'. + (net_open): Rewrite main loop to deal with multiple + sockets/addresses. Handle IPv6-style hostnames; implement + support for IPv6 connections. + * unittests/parse-connection-spec-selftests.c: New file. + +2018-07-11 Pedro Alves <palves@redhat.com> + + PR gdb/23377 + * remote.c (remote_target::remote_detach_pid): Call + set_current_process. + +2018-07-11 Pedro Alves <palves@redhat.com> + + * h8300-tdep.c (h8300_gdbarch_init): Remove + set_gdbarch_ecoff_reg_to_regnum calls. + +2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com> + + PR c++/23373 + * c-typeprint.c (c_type_print_base_struct_union): Don't print + offsets/sizes for static members of a class/struct. + +2018-07-11 Alan Hayward <alan.hayward@arm.com> + + * target-descriptions.c (tdesc_register_bitsize): Rename. + * target-descriptions.h (tdesc_register_bitsize): Likewise. + * rs6000-tdep.c (rs6000_gdbarch_init): Use new name. + * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size. + +2018-07-10 Tom Tromey <tom@tromey.com> + + * breakpoint.c (moribund_locations): Now static and a + std::vector. + (breakpoint_init_inferior, moribund_breakpoint_here_p) + (build_bpstat_chain, update_global_location_list) + (breakpoint_retire_moribund): Update. + * breakpoint.h (bp_location_p): Remove typedef. Don't declare + VEC. + +2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_is_fp_regno_p): New function. + (riscv_register_reggroup_p): Use new function, remove unneeded + parenthesis. + (riscv_push_dummy_call): Extend assert to compare against xlen or + flen based on register type. + +2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME. + +2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com> + + * remote.c (show_hardware_watchpoint_limit): New function. + (show_hardware_watchpoint_length_limit): New function. + (show_hardware_breakpoint_limit): New function. + (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd + where appropriate, update help text. + +2018-07-09 Tom Tromey <tom@tromey.com> + + * Makefile.in (CDEPS): Don't mention XM_CDEPS. + (CLIBS): Don't mention NAT_CLIBS. + +2018-07-09 Tom Tromey <tom@tromey.com> + + * Makefile.in (ADD_FILES, ADD_DEPS): Remove. + (LIBGDB_OBS, clean mostlyclean): Update. + (gdb$(EXEEXT), insight$(EXEEXT)): Update. + +2018-07-09 Tom Tromey <tom@tromey.com> + + * Makefile.in (%.c: %.y): Use ECHO_YACC. + (%.c: %.l): Use ECHO_LEX. Just fail if flex not available. + * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables. + +2018-07-09 Tom Tromey <tom@tromey.com> + + * Makefile.in (ALLDEPFILES): Remove exec.c. + (COMMON_OBS): Remove exec.o. + (COMMON_SFILES): Add exec.c. + +2018-07-09 Tom Tromey <tom@tromey.com> + + * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove. + +2018-07-09 Tom Tromey <tom@tromey.com> + + * Makefile.in (clean mostlyclean): Remove stamp-version. + (version.c): Depend on stamp-version. + (stamp-version): New rule, from version.c rule. + +2018-07-09 Tom Tromey <tom@tromey.com> + + * Makefile.in (init.c): Depend on stamp-init. + (stamp-init): New rule, from init.c rule. + (clean mostlyclean): Remove stamp-init. + +2018-07-09 Tom Tromey <tom@tromey.com> + + * Makefile.in (INIT_FILES): Remove CONFIG_SRCS, + SUBDIR_GCC_COMPILE_SRCS. + +2018-07-09 Tom Tromey <tom@tromey.com> + + * Makefile.in (init.c): Remove some unused sed rules. + +2018-07-09 Tom Tromey <tom@tromey.com> + + * Makefile.in (TSOBS): Remove. + (INIT_FILES): Update. + (LIBGDB_OBS): Update. + (COMMON_SFILES): Add inflow.c. + (SFILES): Remove inflow.c. + +2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com> + + * contrib/gdb-add-index.sh ($dwarf5): New, use it. + +2018-07-07 Simon Marchi <simon.marchi@polymtl.ca> + + * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name, + get_saveloc_name, is_signal_frame_name, step_name, + init_remote_name, create_addr_space_name, + destroy_addr_space_name, search_unwind_table_name, + find_dyn_list_name): Constify. + +2018-07-05 Simon Marchi <simon.marchi@polymtl.ca> + + * darwin-nat.c (darwin_pthread_kill): New function. + (darwin_resume_thread): Use darwin_pthread_kill. + +2018-07-05 Tom de Vries <tdevries@suse.de> + + * macroexp.c (macro_buffer) <operator=>: New member function. + +2018-07-04 Tom Tromey <tom@tromey.com> + + * darwin-nat.c (darwin_attach_pid): Use exit_inferior. + +2018-07-04 Simon Marchi <simon.marchi@polymtl.ca> + + * common/common-defs.h (HAVE_USEFUL_SBRK): Define. + * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK. + * maint.c: Likewise. + * top.c: Likewise. + +2018-07-04 Joel Brobecker <brobecker@adacore.com> + + * NEWS: Create a new section for the next release branch. + Rename the section of the current branch, now that it has + been cut. + +2018-07-04 Joel Brobecker <brobecker@adacore.com> + + GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e): + * version.in: Bump version to 8.2.50.DATE-git. + +2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com> + Pedro Alves <palves@redhat.com> + + * linux-nat.c (linux_init_ptrace): Rename to ... + (linux_init_ptrace_procfs): ... this. Call + linux_proc_init_warnings. + (linux_nat_target::post_attach) + (linux_nat_target::post_startup_inferior): Adjust. + * nat/linux-procfs.c (linux_proc_init_warnings): Define function. + * nat/linux-procfs.h (linux_proc_init_warnings): Declare function. + +2018-07-04 Tom de Vries <tdevries@suse.de> + + * dwarf2read.c (error_check_comp_unit_head): Move dwarf version + check ... + (read_comp_unit_head): ... here. + +2018-07-03 Tom Tromey <tom@tromey.com> + + * tracepoint.c (process_tracepoint_on_disconnect, start_tracing) + (stop_tracing, tstatus_command) + (find_matching_tracepoint_location, merge_uploaded_tracepoints) + (print_one_static_tracepoint_marker): Update. + * breakpoint.c (static_tracepoints_here, all_tracepoints): Return + std::vector. + * breakpoint.h (breakpoint_p): Remove typedef. Don't declare + VEC. + (all_tracepoints, static_tracepoints_here): Return std::vector. + +2018-07-03 Tom Tromey <tom@tromey.com> + + * common/ptid.c (ptid_equal): Remove. + * common/ptid.h (ptid_equal): Don't declare. + * ada-tasks.c: Update. + * breakpoint.c: Update. + * common/agent.c: Update. + * corelow.c: Update. + * darwin-nat-info.c: Update. + * darwin-nat.c: Update. + * dcache.c: Update. + * dtrace-probe.c: Update. + * dummy-frame.c: Update. + * fbsd-nat.c: Update. + * frame.c: Update. + * gdbthread.h: Update. + * gnu-nat.c: Update. + * go32-nat.c: Update. + * inf-loop.c: Update. + * inf-ptrace.c: Update. + * infcall.c: Update. + * infcmd.c: Update. + * inflow.c: Update. + * infrun.c: Update. + * linux-fork.c: Update. + * linux-nat.c: Update. + * linux-thread-db.c: Update. + * mi/mi-cmd-var.c: Update. + * mi/mi-interp.c: Update. + * mi/mi-main.c: Update. + * nto-procfs.c: Update. + * ppc-linux-tdep.c: Update. + * procfs.c: Update. + * python/py-inferior.c: Update. + * python/py-record-btrace.c: Update. + * python/py-record.c: Update. + * ravenscar-thread.c: Update. + * regcache.c: Update. + * remote-sim.c: Update. + * remote.c: Update. + * sol-thread.c: Update. + * solib.c: Update. + * target.c: Update. + * tui/tui-stack.c: Update. + * varobj.c: Update. + * windows-nat.c: Update. + * windows-tdep.c: Update. + +2018-07-03 Tom Tromey <tom@tromey.com> + + * common/ptid.c (ptid_match): Remove. + * common/ptid.h (ptid_match): Don't declare. + * fbsd-nat.c: Update. + * infcmd.c: Update. + * infrun.c: Update. + * linux-nat.c: Update. + * record-btrace.c: Update. + * regcache.c: Update. + * remote.c: Update. + +2018-07-03 Tom Tromey <tom@tromey.com> + + * common/ptid.c (ptid_tid_p): Remove. + * common/ptid.h (ptid_tid_p): Don't declare. + * sol-thread.c: Update. + +2018-07-03 Tom Tromey <tom@tromey.com> + + * common/ptid.c (ptid_lwp_p): Remove. + * common/ptid.h (ptid_lwp_p): Don't declare. + * fbsd-nat.c: Update. + * linux-nat.c: Update. + * nat/linux-procfs.c: Update. + * nat/x86-linux-dregs.c: Update. + * sol-thread.c: Update. + +2018-07-03 Tom Tromey <tom@tromey.com> + + * common/ptid.c (ptid_is_pid): Remove. + * common/ptid.h (ptid_is_pid): Don't declare. + * infrun.c: Update. + * linux-nat.c: Update. + * mi/mi-interp.c: Update. + * remote.c: Update. + * thread.c: Update. + +2018-07-03 Tom Tromey <tom@tromey.com> + + * common/ptid.c (ptid_get_tid): Remove. + * common/ptid.h (ptid_get_tid): Don't declare. + * ada-tasks.c: Update. + * aix-thread.c: Update. + * bsd-uthread.c: Update. + * darwin-nat.c: Update. + * fbsd-nat.c: Update. + * i386-darwin-nat.c: Update. + * infrun.c: Update. + * linux-tdep.c: Update. + * nto-procfs.c: Update. + * ppc-ravenscar-thread.c: Update. + * python/py-infthread.c: Update. + * ravenscar-thread.c: Update. + * sol-thread.c: Update. + * sparc-ravenscar-thread.c: Update. + * windows-nat.c: Update. + +2018-07-03 Tom Tromey <tom@tromey.com> + + * common/ptid.c (ptid_get_lwp): Remove. + * common/ptid.h (ptid_get_lwp): Don't declare. + * aarch64-linux-nat.c: Update. + * ada-tasks.c: Update. + * aix-thread.c: Update. + * amd64-linux-nat.c: Update. + * arm-linux-nat.c: Update. + * corelow.c: Update. + * fbsd-nat.c: Update. + * fbsd-tdep.c: Update. + * gnu-nat.c: Update. + * i386-cygwin-tdep.c: Update. + * i386-gnu-nat.c: Update. + * i386-linux-nat.c: Update. + * ia64-linux-nat.c: Update. + * inf-ptrace.c: Update. + * infrun.c: Update. + * linux-fork.c: Update. + * linux-nat.c: Update. + * linux-tdep.c: Update. + * linux-thread-db.c: Update. + * mips-linux-nat.c: Update. + * nat/aarch64-linux-hw-point.c: Update. + * nat/aarch64-linux.c: Update. + * nat/linux-btrace.c: Update. + * nat/linux-osdata.c: Update. + * nat/linux-procfs.c: Update. + * nat/x86-linux-dregs.c: Update. + * obsd-nat.c: Update. + * ppc-fbsd-nat.c: Update. + * ppc-linux-nat.c: Update. + * procfs.c: Update. + * python/py-infthread.c: Update. + * ravenscar-thread.c: Update. + * remote.c: Update. + * s390-linux-nat.c: Update. + * sol-thread.c: Update. + * sol2-tdep.c: Update. + * spu-linux-nat.c: Update. + * x86-linux-nat.c: Update. + * xtensa-linux-nat.c: Update. + +2018-07-03 Tom Tromey <tom@tromey.com> + + * common/ptid.c (ptid_get_pid): Remove. + * common/ptid.h (ptid_get_pid): Don't declare. + * aarch64-linux-nat.c: Update. + * ada-lang.c: Update. + * aix-thread.c: Update. + * alpha-bsd-nat.c: Update. + * amd64-fbsd-nat.c: Update. + * amd64-linux-nat.c: Update. + * arm-linux-nat.c: Update. + * arm-nbsd-nat.c: Update. + * auxv.c: Update. + * break-catch-syscall.c: Update. + * breakpoint.c: Update. + * bsd-uthread.c: Update. + * corelow.c: Update. + * ctf.c: Update. + * darwin-nat.c: Update. + * fbsd-nat.c: Update. + * fbsd-tdep.c: Update. + * gcore.c: Update. + * gnu-nat.c: Update. + * hppa-nbsd-nat.c: Update. + * hppa-obsd-nat.c: Update. + * i386-fbsd-nat.c: Update. + * ia64-linux-nat.c: Update. + * inf-ptrace.c: Update. + * infcmd.c: Update. + * inferior.c: Update. + * inferior.h: Update. + * inflow.c: Update. + * infrun.c: Update. + * linux-fork.c: Update. + * linux-nat.c: Update. + * linux-tdep.c: Update. + * linux-thread-db.c: Update. + * m68k-bsd-nat.c: Update. + * mi/mi-interp.c: Update. + * mi/mi-main.c: Update. + * mips-linux-nat.c: Update. + * mips-nbsd-nat.c: Update. + * mips64-obsd-nat.c: Update. + * nat/aarch64-linux-hw-point.c: Update. + * nat/aarch64-linux.c: Update. + * nat/linux-btrace.c: Update. + * nat/linux-osdata.c: Update. + * nat/linux-procfs.c: Update. + * nat/x86-linux-dregs.c: Update. + * nto-procfs.c: Update. + * obsd-nat.c: Update. + * ppc-linux-nat.c: Update. + * ppc-nbsd-nat.c: Update. + * ppc-obsd-nat.c: Update. + * proc-service.c: Update. + * procfs.c: Update. + * python/py-inferior.c: Update. + * python/py-infthread.c: Update. + * ravenscar-thread.c: Update. + * record.c: Update. + * remote-sim.c: Update. + * remote.c: Update. + * rs6000-nat.c: Update. + * s390-linux-nat.c: Update. + * sh-nbsd-nat.c: Update. + * sol-thread.c: Update. + * sparc-nat.c: Update. + * sparc64-tdep.c: Update. + * spu-linux-nat.c: Update. + * spu-tdep.c: Update. + * target-debug.h: Update. + * target.c: Update. + * thread.c: Update. + * tid-parse.c: Update. + * tracefile-tfile.c: Update. + * vax-bsd-nat.c: Update. + * windows-nat.c: Update. + * x86-linux-nat.c: Update. + * x86-nat.c: Update. + +2018-07-03 Tom Tromey <tom@tromey.com> + + * common/ptid.c (pid_to_ptid): Remove. + * common/ptid.h (pid_to_ptid): Don't declare. + * aix-thread.c: Update. + * arm-linux-nat.c: Update. + * common/ptid.c: Update. + * common/ptid.h: Update. + * corelow.c: Update. + * ctf.c: Update. + * darwin-nat.c: Update. + * fbsd-nat.c: Update. + * fork-child.c: Update. + * gnu-nat.c: Update. + * go32-nat.c: Update. + * inf-ptrace.c: Update. + * infcmd.c: Update. + * inferior.c: Update. + * infrun.c: Update. + * linux-fork.c: Update. + * linux-nat.c: Update. + * nat/aarch64-linux-hw-point.c: Update. + * nat/fork-inferior.c: Update. + * nat/x86-linux-dregs.c: Update. + * nto-procfs.c: Update. + * obsd-nat.c: Update. + * procfs.c: Update. + * progspace.c: Update. + * remote.c: Update. + * rs6000-nat.c: Update. + * s390-linux-nat.c: Update. + * sol-thread.c: Update. + * spu-linux-nat.c: Update. + * target.c: Update. + * top.c: Update. + * tracefile-tfile.c: Update. + * windows-nat.c: Update. + +2018-07-03 Tom Tromey <tom@tromey.com> + + * common/ptid.h (ptid_build): Don't declare. + * common/ptid.c (ptid_build): Remove. + * aix-thread.c: Update. + * bsd-kvm.c: Update. + * bsd-uthread.c: Update. + * common/agent.c: Update. + * common/ptid.c: Update. + * common/ptid.h: Update. + * corelow.c: Update. + * darwin-nat.c: Update. + * fbsd-nat.c: Update. + * gnu-nat.c: Update. + * linux-fork.c: Update. + * linux-nat.c: Update. + * linux-thread-db.c: Update. + * nat/linux-osdata.c: Update. + * nat/linux-procfs.c: Update. + * nto-procfs.c: Update. + * obsd-nat.c: Update. + * proc-service.c: Update. + * procfs.c: Update. + * ravenscar-thread.c: Update. + * remote-sim.c: Update. + * remote.c: Update. + * sol-thread.c: Update. + * target.c: Update. + * windows-nat.c: Update. + +2018-07-03 Tom Tromey <tom@tromey.com> + + * infrun.c (follow_exec): Use exit_inferior_silent. + * inferior.c (exit_inferior_num_silent): Remove. + * inferior.h (exit_inferior_num_silent): Don't declare. + +2018-07-03 Tom Tromey <tom@tromey.com> + + PR cli/23340: + * darwin-nat.c (darwin_attach_pid): Reset inferior and + inferior_ptid on error. + +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 + * dwarf2read.c (lnp_state_machine::check_line_address): Update + declaration. + (dwarf_decode_lines_1): Adjust. + +2018-06-27 Simon Marchi <simon.marchi@ericsson.com> + + * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add + override. + <info_proc>: Likewise. + +2018-06-26 Joel Brobecker <brobecker@adacore.com> + + * windows-nat.c (do_windows_fetch_inferior_registers): Rename + to windows_fetch_one_register, and only handle the case of + fetching one register. Move the code that reloads the context + and iterates over all registers if R is negative to... + (windows_nat_target::fetch_registers): ... here. + (do_windows_store_inferior_registers): Rename to + windows_store_one_register, and only handle the case of storing + one register. Move the code that handles the case where r is + negative to... + (windows_nat_target::store_registers) ... here. + +2018-06-26 Tom Tromey <tom@tromey.com> + + PR rust/22574: + * typeprint.c (whatis_exp): Allow ptype/o for Rust. + * rust-lang.c (rust_print_struct_def): Add podata parameter. + Update. + (rust_internal_print_type): Add podata parameter. + (rust_print_type): Update. + +2018-06-26 Tom Tromey <tom@tromey.com> + + * typeprint.h (struct print_offset_data) <update, finish, + maybe_print_hole>: New methods. + <indentation>: New constant. + * typeprint.c (print_offset_data::indentation): Define. + (print_offset_data::maybe_print_hole, print_offset_data::update) + (print_offset_data::finish): Move from c-typeprint.c and rename. + * c-typeprint.c (OFFSET_SPC_LEN): Remove. + (print_spaces_filtered_with_print_options): Update. + (c_print_type_union_field_offset, maybe_print_hole) + (c_print_type_struct_field_offset): Move to typeprint.c and + rename. + (c_type_print_base_struct_union): Update. + +2018-06-25 Pedro Alves <palves@redhat.com> + + * gdbthread.h (thread_info_ref, delete_thread) + (delete_thread_silent, first_thread_of_inferior) + (any_thread_of_inferior, switch_to_thread) + (enable_thread_stack_temporaries) + (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) + (get_last_thread_stack_temporary) + (value_in_thread_stack_temporaries, can_access_registers_thread): + Spell out "struct thread_info" instead of just "thread_info". + * inferior.h (notice_new_inferior): Likewise. + +2018-06-25 Pedro Alves <palves@redhat.com> + + * windows-nat.c (windows_delete_thread): Use find_thread_ptid and + pass thread_info pointer to delete_thread. + (windows_nat_target::detach): Pass inferior pointer to + detach_inferior. + * aix-thread.c (sync_threadlists): Pass thread_info pointer to + delete_thread. + * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors. + * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid + and pass a thread_info pointer to delete_thread. + * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and + pass thread_info pointer to delete_thread. + * go32-nat.c (go32_nat_target::mourn_inferior): Remove + delete_thread_silent call. + * procfs.c (procfs_target::detach): Pass inferior pointer to + detach_inferior. + (procfs_target::wait): Pass thread_info pointer to delete_thread. + * remote-sim.c (gdbsim_target::mourn_inferior): Remove + delete_thread_silent call. + * windows-nat.c (windows_delete_thread): Use find_thread_ptid and + pass thread_info pointer to delete_thread. + (windows_nat_target::detach): Pass inferior pointer to + delete_inferior. + +2018-06-22 Alan Hayward <alan.hayward@arm.com> + + * regcache.c (readable_regcache::read_part): Fix asserts. + (reg_buffer::raw_collect_part): New function. + (regcache::write_part): Fix asserts. + (reg_buffer::raw_supply_part): New function. + (regcache::transfer_regset_register): New helper function. + (regcache::transfer_regset): Call new functions. + (regcache_supply_regset): Use gdb_byte*. + (regcache::supply_regset): Likewise. + (regcache_collect_regset): Likewise. + (regcache::collect_regset): Likewise. + * regcache.h (reg_buffer::raw_collect_part): New declaration. + (reg_buffer::raw_supply_part): Likewise. + (regcache::transfer_regset_register): Likewise. + (regcache::transfer_regset): Use gdb_byte*. + +2018-06-22 Alan Hayward <alan.hayward@arm.com> + + * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &. + +2018-06-21 Pedro Alves <palves@redhat.com> + + * ada-lang.h (ada_get_task_number): Take a thread_info pointer + instead of a ptid_t. All callers adjusted. + * ada-tasks.c (ada_get_task_number): Likewise. All callers + adjusted. + (print_ada_task_info, display_current_task_id, task_command_1): + Adjust. + * breakpoint.c (watchpoint_in_thread_scope): Adjust to use + inferior_thread. + (breakpoint_kind): Adjust. + (remove_breakpoints_pid): Rename to ... + (remove_breakpoints_inf): ... this. Adjust to take an inferior + pointer. All callers adjusted. + (bpstat_clear_actions): Use inferior_thread. + (get_bpstat_thread): New. + (bpstat_do_actions): Use it. + (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust + to take a thread_info pointer. All callers adjusted. + (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint) + (breakpoint_re_set_thread): Use inferior_thread. + * breakpoint.h (struct inferior): Forward declare. + (bpstat_stop_status): Update. + (remove_breakpoints_pid): Delete. + (remove_breakpoints_inf): New. + * bsd-uthread.c (bsd_uthread_target::wait) + (bsd_uthread_target::update_thread_list): Use find_thread_ptid. + * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch) + (maint_btrace_packet_history_cmd) + (maint_btrace_clear_packet_history_cmd): Adjust. + (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use + inferior_thread. + * cli/cli-interp.c: Include "inferior.h". + * common/refcounted-object.h (struct + refcounted_object_ref_policy): New. + * compile/compile-object-load.c: Include gdbthread.h. + (store_regs): Use inferior_thread. + * corelow.c (core_target::close): Use current_inferior. + (core_target_open): Adjust to use first_thread_of_inferior and use + the current inferior. + * ctf.c (ctf_target::close): Adjust to use current_inferior. + * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ... + <thread>: ... this new field. All references adjusted. + (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor): + Take a thread_info pointer instead of a ptid_t. + * dummy-frame.h (dummy_frame_push, dummy_frame_pop) + (dummy_frame_discard, register_dummy_frame_dtor): Take a + thread_info pointer instead of a ptid_t. + * elfread.c: Include "inferior.h". + (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): + Use inferior_thread. + * eval.c (evaluate_subexp): Likewise. + * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use + inferior_thread. + * gdb_proc_service.h (struct thread_info): Forward declare. + (struct ps_prochandle) <ptid>: Delete, replaced by ... + <thread>: ... this new field. All references adjusted. + * gdbarch.h, gdbarch.c: Regenerate. + * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a + 'thread' parameter. All implementations and callers adjusted. + * gdbthread.h (thread_info) <set_running>: New method. + (delete_thread, delete_thread_silent): Take a thread_info pointer + instead of a ptid. + (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete. + (first_thread_of_process): Delete, replaced by ... + (first_thread_of_inferior): ... this new function. All callers + adjusted. + (any_live_thread_of_process): Delete, replaced by ... + (any_live_thread_of_inferior): ... this new function. All callers + adjusted. + (switch_to_thread, switch_to_no_thread): Declare. + (is_executing): Delete. + (enable_thread_stack_temporaries): Update comment. + <enable_thread_stack_temporaries>: Take a thread_info pointer + instead of a ptid_t. Incref the thread. + <~enable_thread_stack_temporaries>: Decref the thread. + <m_ptid>: Delete + <m_thr>: New. + (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) + (get_last_thread_stack_temporary) + (value_in_thread_stack_temporaries, can_access_registers_thread): + Take a thread_info pointer instead of a ptid_t. All callers + adjusted. + * infcall.c (get_call_return_value): Use inferior_thread. + (run_inferior_call): Work with thread pointers instead of ptid_t. + (call_function_by_hand_dummy): Work with thread pointers instead + of ptid_t. Use thread_info_ref. + * infcmd.c (proceed_thread_callback): Access thread's state + directly. + (ensure_valid_thread, ensure_not_running): Use inferior_thread, + access thread's state directly. + (continue_command): Use inferior_thread. + (info_program_command): Use find_thread_ptid and access thread + state directly. + (proceed_after_attach_callback): Use thread state directly. + (notice_new_inferior): Take a thread_info pointer instead of a + ptid_t. All callers adjusted. + (exit_inferior): Take an inferior pointer instead of a pid. All + callers adjusted. + (exit_inferior_silent): New. + (detach_inferior): Delete. + (valid_gdb_inferior_id, pid_to_gdb_inferior_id) + (gdb_inferior_id_to_pid, in_inferior_list): Delete. + (detach_inferior_command, kill_inferior_command): Use + find_inferior_id instead of valid_gdb_inferior_id and + gdb_inferior_id_to_pid. + (inferior_command): Use inferior and thread pointers. + * inferior.h (struct thread_info): Forward declare. + (notice_new_inferior): Take a thread_info pointer instead of a + ptid_t. All callers adjusted. + (detach_inferior): Delete declaration. + (exit_inferior, exit_inferior_silent): Take an inferior pointer + instead of a pid. All callers adjusted. + (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list) + (valid_gdb_inferior_id): Delete. + * infrun.c (follow_fork_inferior, proceed_after_vfork_done) + (handle_vfork_child_exec_or_exit, follow_exec): Adjust. + (struct displaced_step_inferior_state) <pid>: Delete, replaced by + ... + <inf>: ... this new field. + <step_ptid>: Delete, replaced by ... + <step_thread>: ... this new field. + (get_displaced_stepping_state): Take an inferior pointer instead + of a pid. All callers adjusted. + (displaced_step_in_progress_any_inferior): Adjust. + (displaced_step_in_progress_thread): Take a thread pointer instead + of a ptid_t. All callers adjusted. + (displaced_step_in_progress, add_displaced_stepping_state): Take + an inferior pointer instead of a pid. All callers adjusted. + (get_displaced_step_closure_by_addr): Adjust. + (remove_displaced_stepping_state): Take an inferior pointer + instead of a pid. All callers adjusted. + (displaced_step_prepare_throw, displaced_step_prepare) + (displaced_step_fixup): Take a thread pointer instead of a ptid_t. + All callers adjusted. + (start_step_over): Adjust. + (infrun_thread_ptid_changed): Remove bit updating ptids in the + displaced step queue. + (do_target_resume): Adjust. + (fetch_inferior_event): Use inferior_thread. + (context_switch, get_inferior_stop_soon): Take an + execution_control_state pointer instead of a ptid_t. All callers + adjusted. + (switch_to_thread_cleanup): Delete. + (stop_all_threads): Use scoped_restore_current_thread. + * inline-frame.c: Include "gdbthread.h". + (inline_state) <inline_state>: Take a thread pointer instead of a + ptid_t. All callers adjusted. + <ptid>: Delete, replaced by ... + <thread>: ... this new field. + (find_inline_frame_state): Take a thread pointer instead of a + ptid_t. All callers adjusted. + (skip_inline_frames, step_into_inline_frame) + (inline_skipped_frames, inline_skipped_symbol): Take a thread + pointer instead of a ptid_t. All callers adjusted. + * inline-frame.h (skip_inline_frames, step_into_inline_frame) + (inline_skipped_frames, inline_skipped_symbol): Likewise. + * linux-fork.c (delete_checkpoint_command): Adjust to use thread + pointers directly. + * linux-nat.c (get_detach_signal): Likewise. + * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter. + (thread_db_notice_clone): Adjust. + (thread_db_find_new_threads_silently) + (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take + a thread pointer instead of a ptid_t. All callers adjusted. + * mi/mi-cmd-var.c: Include "inferior.h". + (mi_cmd_var_update_iter): Update to use thread pointers. + * mi/mi-interp.c (mi_new_thread): Update to use the thread's + inferior directly. + (mi_output_running_pid, mi_inferior_count): Delete, bits factored + out to ... + (mi_output_running): ... this new function. + (mi_on_resume_1): Adjust to use it. + (mi_user_selected_context_changed): Adjust to use inferior_thread. + * mi/mi-main.c (proceed_thread): Adjust to use thread pointers + directly. + (interrupt_thread_callback): : Adjust to use thread and inferior + pointers. + * proc-service.c: Include "gdbthread.h". + (ps_pglobal_lookup): Adjust to use the thread's inferior directly. + * progspace-and-thread.c: Include "inferior.h". + * progspace.c: Include "inferior.h". + * python/py-exitedevent.c (create_exited_event_object): Adjust to + hold a reference to an inferior_object. + * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use + inferior_thread. + * python/py-inferior.c (struct inferior_object): Give the type a + tag name instead of a typedef. + (python_on_normal_stop): No need to check if the current thread is + listed. + (inferior_to_inferior_object): Change return type to + inferior_object. All callers adjusted. + (find_thread_object): Delete, bits factored out to ... + (thread_to_thread_object): ... this new function. + * python/py-infthread.c (create_thread_object): Use + inferior_to_inferior_object. + (thpy_is_stopped): Use thread pointer directly. + (gdbpy_selected_thread): Use inferior_thread. + * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete + field, replaced with ... + <thread>: ... this new field. All users adjusted. + (btpy_insn_or_gap_new): Drop const. + (btpy_list_new): Take a thread pointer instead of a ptid_t. All + callers adjusted. + * python/py-record.c: Include "gdbthread.h". + (recpy_insn_new, recpy_func_new): Take a thread pointer instead of + a ptid_t. All callers adjusted. + (gdbpy_current_recording): Use inferior_thread. + * python/py-record.h (recpy_record_object) <ptid>: Delete + field, replaced with ... + <thread>: ... this new field. All users adjusted. + (recpy_element_object) <ptid>: Delete + field, replaced with ... + <thread>: ... this new field. All users adjusted. + (recpy_insn_new, recpy_func_new): Take a thread pointer instead of + a ptid_t. All callers adjusted. + * python/py-threadevent.c: Include "gdbthread.h". + (get_event_thread): Use thread_to_thread_object. + * python/python-internal.h (struct inferior_object): Forward + declare. + (find_thread_object, find_inferior_object): Delete declarations. + (thread_to_thread_object, inferior_to_inferior_object): New + declarations. + * record-btrace.c: Include "inferior.h". + (require_btrace_thread): Use inferior_thread. + (record_btrace_frame_sniffer) + (record_btrace_tailcall_frame_sniffer): Use inferior_thread. + (get_thread_current_frame): Use scoped_restore_current_thread and + switch_to_thread. + (get_thread_current_frame): Use thread pointer directly. + (record_btrace_replay_at_breakpoint): Use thread's inferior + pointer directly. + * record-full.c: Include "inferior.h". + * regcache.c: Include "gdbthread.h". + (get_thread_arch_regcache): Use the inferior's address space + directly. + (get_thread_regcache, registers_changed_thread): New. + * regcache.h (get_thread_regcache(thread_info *thread)): New + overload. + (registers_changed_thread): New. + (remote_target) <remote_detach_1>: Swap order of parameters. + (remote_add_thread): <remote_add_thread>: Return the new thread. + (get_remote_thread_info(ptid_t)): New overload. + (remote_target::remote_notice_new_inferior): Use thread pointers + directly. + (remote_target::process_initial_stop_replies): Use + thread_info::set_running. + (remote_target::remote_detach_1, remote_target::detach) + (extended_remote_target::detach): Adjust. + * stack.c (frame_show_address): Use inferior_thread. + * target-debug.h (target_debug_print_thread_info_pp): New. + * target-delegates.c: Regenerate. + * target.c (default_thread_address_space): Delete. + (memory_xfer_partial_1): Use current_inferior. + (target_detach): Use current_inferior. + (target_thread_address_space): Delete. + (generic_mourn_inferior): Use current_inferior. + * target.h (struct target_ops) <thread_address_space>: Delete. + (target_thread_address_space): Delete. + * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread + pointers directly. + (delete_thread_1, delete_thread, delete_thread_silent): Take a + thread pointer instead of a ptid_t. Adjust all callers. + (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete. + (first_thread_of_process): Delete, replaced by ... + (first_thread_of_inferior): ... this new function. All callers + adjusted. + (any_thread_of_process): Rename to ... + (any_thread_of_inferior): ... this, and take an inferior pointer. + (any_live_thread_of_process): Rename to ... + (any_live_thread_of_inferior): ... this, and take an inferior + pointer. + (thread_stack_temporaries_enabled_p, push_thread_stack_temporary) + (value_in_thread_stack_temporaries) + (get_last_thread_stack_temporary): Take a thread pointer instead + of a ptid_t. Adjust all callers. + (thread_info::set_running): New. + (validate_registers_access): Use inferior_thread. + (can_access_registers_ptid): Rename to ... + (can_access_registers_thread): ... this, and take a thread + pointer. + (print_thread_info_1): Adjust to compare thread pointers instead + of ptids. + (switch_to_no_thread, switch_to_thread): Make extern. + (scoped_restore_current_thread::~scoped_restore_current_thread): + Use m_thread pointer directly. + (scoped_restore_current_thread::scoped_restore_current_thread): + Use inferior_thread. + (thread_command): Use thread pointer directly. + (thread_num_make_value_helper): Use inferior_thread. + * top.c (execute_command): Use inferior_thread. + * tui/tui-interp.c: Include "inferior.h". + * varobj.c (varobj_create): Use inferior_thread. + (value_of_root_1): Use find_thread_global_id instead of + global_thread_id_to_ptid. + +2018-06-21 Alan Hayward <alan.hayward@arm.com> + + * regcache.c (readable_regcache::read_part): Avoid memcpy when + possible. + (regcache::write_part): Likewise. + (readable_regcache::cooked_read_part): Update comment. + (readable_regcache::cooked_write_part): Likewise. + * regcache.h: (readable_regcache::read_part): Likewise. + (regcache::write_part): Likewise. + +2018-06-21 Richard Bunt <richard.bunt@arm.com> + Dirk Schubert <dirk.schubert@arm.com> + + * aarch64-linux-nat.c (post_attach): New. + (aarch64_linux_nat_target::post_attach): Override post_attach to + record the number of hardware debug registers. + +2018-06-20 Tom Tromey <tom@tromey.com> + + * python/py-param.c (add_setshow_generic): Make parameters const. + (parmpy_init): Update. + +2018-06-20 Simon Marchi <simon.marchi@polymtl.ca> + + * regcache.h (regcache_cooked_read_ftype): Rename to... + (register_read_ftype): ...this, change type to function_view. + (class reg_buffer) <save>: Remove src parameter. + (readonly_detached_regcache) <readonly_detached_regcache>: Make + parameter non-const in first overload. Remove src parameter in + second overload. + * regcache.c (do_cooked_read): Remove. + (readonly_detached_regcache::readonly_detached_regcache): Make + parameter non-const, adjust call to other constructor. + (reg_buffer::save): Remove src parameter. + * frame.c (do_frame_register_read): Remove. + (frame_save_as_regcache): Use lambda function. + * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src + parameter to ppu2spu_data *. + (ppu2spu_sniffer): Use lambda function. + +2018-06-20 Simon Marchi <simon.marchi@polymtl.ca> + + * record-full.c (record_full_target::insert_breakpoint): Remove + "struct" keyword, add const. + +2018-06-19 Simon Marchi <simon.marchi@ericsson.com> + + * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION, + PACKAGE_STRING, PACKAGE_TARNAME): Undefine. + * configure.ac: Remove AC_PREREQ, add missing quoting. + * gnulib/configure.ac: Modernize usage of + AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ. + * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69. + (AUTOMAKE_VERSION): Bump to 1.15.1. + * configure: Re-generate. + * config.in: Re-generate. + * aclocal.m4: Re-generate. + * gnulib/aclocal.m4: Re-generate. + * gnulib/config.in: Re-generate. + * gnulib/configure: Re-generate. + * gnulib/import/Makefile.in: Re-generate. + +2018-06-19 Pedro Alves <palves@redhat.com> + + * minsyms.c (msym_prefer_to_msym_type): New, factored out from ... + (lookup_minimal_symbol_by_pc_section): ... here with + gdb_assert_not_reached added. + +2018-06-19 Pedro Alves <palves@redhat.com> + + * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC + parameter with a block parameter. Compare location's block symbol + with the frame's block instead of addresses. + (skip_inline_frames): Pass the current block instead of the + frame's address. Break out as soon as we determine the frame + should not be skipped. + +2018-06-18 Tom Tromey <tom@tromey.com> + + * solib-aix.c (solib_aix_get_section_offsets): Return + unique_xmalloc_ptr. + (solib_aix_solib_create_inferior_hook): Update. + +2018-06-18 Tom Tromey <tom@tromey.com> + + * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr. + +2018-06-18 Tom Tromey <tom@tromey.com> + + * solib-frv.c (frv_relocate_main_executable): Use + unique_xmalloc_ptr. + * solib-dsbt.c (dsbt_relocate_main_executable): Use + unique_xmalloc_ptr. + +2018-06-18 Tom Tromey <tom@tromey.com> + + * objfiles.h (inhibit_section_map_updates): Update. + (resume_section_map_updates, resume_section_map_updates_cleanup): + Remove. + * solib-svr4.c (svr4_handle_solib_event): Update. + * objfiles.c (inhibit_section_map_updates): Return + scoped_restore_tmpl<int>. + (resume_section_map_updates, resume_section_map_updates_cleanup): + Remove. + +2018-06-18 Tom Tromey <tom@tromey.com> + + * valprint.h (read_string): Update. + * valprint.c (read_string): Change type of "buffer". + (val_print_string): Update. + * python/py-value.c (valpy_string): Update. + * language.h (struct language_defn) <la_get_string>: Change + type of "buffer". + (default_get_string, c_get_string): Update. + * language.c (default_get_string): Change type of "buffer". + * guile/scm-value.c (gdbscm_value_to_string): Update. + * c-lang.c (c_get_string): Change type of "buffer". + +2018-06-18 Tom Tromey <tom@tromey.com> + + * ser-mingw.c (struct pipe_state_destroyer): New. + (pipe_state_up): New typedef. + (cleanup_pipe_state): Remove. + (pipe_windows_open): Use pipe_state_up. Don't release argv. + +2018-06-18 Tom Tromey <tom@tromey.com> + + * rust-lang.h (rust_yyerror): Don't declare. + * rust-lang.c (rust_language_defn): Update. + * rust-exp.y (yyerror): Now static. + * parse.c (parse_exp_in_context_1): Update. + * p-lang.h (p_yyerror): Don't declare. + * p-lang.c (p_language_defn): Update. + * p-exp.y (yyerror): Now static. + * opencl-lang.c (opencl_language_defn): Update. + * objc-lang.c (objc_language_defn): Update. + * m2-lang.h (m2_yyerror): Don't declare. + * m2-lang.c (m2_language_defn): Update. + * m2-exp.y (yyerror): Now static. + * language.h (struct language_defn) <la_error>: Remove. + * language.c (unk_lang_error): Remove. + (unknown_language_defn, auto_language_defn): Remove. + * go-lang.h (go_yyerror): Don't declare. + * go-lang.c (go_language_defn): Update. + * go-exp.y (yyerror): Now static. + * f-lang.h (f_yyerror): Don't declare. + * f-lang.c (f_language_defn): Update. + * f-exp.y (yyerror): Now static. + * d-lang.h (d_yyerror): Don't declare. + * d-lang.c (d_language_defn): Update. + * d-exp.y (yyerror): Now static. + * c-lang.h (c_yyerror): Don't declare. + * c-lang.c (c_language_defn, cplus_language_defn) + (asm_language_defn, minimal_language_defn): Update. + * c-exp.y (yyerror): Now static. + * ada-lang.h (ada_yyerror): Don't declare. + * ada-lang.c (ada_language_defn): Update. + * ada-exp.y (yyerror): Now static. + +2018-06-18 Alan Hayward <alan.hayward@arm.com> + + * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function. + (store_sveregs_to_thread): Likewise. + (aarch64_linux_fetch_inferior_registers): Check for SVE. + (aarch64_linux_store_inferior_registers): Likewise. + * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New + function. + (aarch64_sve_regs_copy_to_regcache): Likewise. + (aarch64_sve_regs_copy_from_regcache): Likewise. + * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New + declaration. + (aarch64_sve_regs_copy_to_regcache): Likewise. + (aarch64_sve_regs_copy_from_regcache): Likewise. + (sve_context): Structure from Linux headers. + (SVE_SIG_ZREGS_SIZE): Define from Linux headers. + (SVE_SIG_ZREG_SIZE): Likewise. + (SVE_SIG_PREG_SIZE): Likewise. + (SVE_SIG_FFR_SIZE): Likewise. + (SVE_SIG_REGS_OFFSET): Likewise. + (SVE_SIG_ZREGS_OFFSET): Likewise. + (SVE_SIG_ZREG_OFFSET): Likewise. + (SVE_SIG_ZREGS_SIZE): Likewise. + (SVE_SIG_PREGS_OFFSET): Likewise. + (SVE_SIG_PREG_OFFSET): Likewise. + (SVE_SIG_PREGS_SIZE): Likewise. + (SVE_SIG_FFR_OFFSET): Likewise. + (SVE_SIG_REGS_SIZE): Likewise. + (SVE_SIG_CONTEXT_SIZE): Likewise. + (SVE_PT_REGS_MASK): Likewise. + (SVE_PT_REGS_FPSIMD): Likewise. + (SVE_PT_REGS_SVE): Likewise. + (SVE_PT_VL_INHERIT): Likewise. + (SVE_PT_VL_ONEXEC): Likewise. + (SVE_PT_REGS_OFFSET): Likewise. + (SVE_PT_FPSIMD_OFFSET): Likewise. + (SVE_PT_FPSIMD_SIZE): Likewise. + (SVE_PT_SVE_ZREG_SIZE): Likewise. + (SVE_PT_SVE_PREG_SIZE): Likewise. + (SVE_PT_SVE_FFR_SIZE): Likewise. + (SVE_PT_SVE_FPSR_SIZE): Likewise. + (SVE_PT_SVE_FPCR_SIZE): Likewise. + (__SVE_SIG_TO_PT): Likewise. + (SVE_PT_SVE_OFFSET): Likewise. + (SVE_PT_SVE_ZREGS_OFFSET): Likewise. + (SVE_PT_SVE_ZREG_OFFSET): Likewise. + (SVE_PT_SVE_ZREGS_SIZE): Likewise. + (SVE_PT_SVE_PREGS_OFFSET): Likewise. + (SVE_PT_SVE_PREG_OFFSET): Likewise. + (SVE_PT_SVE_PREGS_SIZE): Likewise. + (SVE_PT_SVE_FFR_OFFSET): Likewise. + (SVE_PT_SVE_FPSR_OFFSET): Likewise. + (SVE_PT_SVE_FPCR_OFFSET): Likewise. + (SVE_PT_SVE_SIZE): Likewise. + (SVE_PT_SIZE): Likewise. + (HAS_SVE_STATE): New define. + +2018-06-18 Alan Hayward <alan.hayward@arm.com> + + * nat/aarch64-sve-linux-sigcontext.h: New file. + * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to + new files. + (SVE_VQ_MIN): Likewise. + (SVE_VQ_MAX): Likewise. + (SVE_VL_MIN): Likewise. + (SVE_VL_MAX): Likewise. + (SVE_NUM_ZREGS): Likewise. + (SVE_NUM_PREGS): Likewise. + (sve_vl_valid): Likewise. + (struct user_sve_header): Likewise. + +2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com> + Richard Bunt <Richard.Bunt@arm.com> + + * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it + was requested by GDB. + +2018-06-15 Tom de Vries <tdevries@suse.de> + + * MAINTAINERS (Write After Approval): Add Tom de Vries. + +2018-06-14 Simon Marchi <simon.marchi@polymtl.ca> + + * gnulib/update-gnulib.sh: Print expected versions of + autoconf/aclocal. + +2018-06-14 Simon Marchi <simon.marchi@ericsson.com> + + * arch-utils.c (default_type_align): Use type_length_units. + * gdbtypes.c (type_align): Use type_length_units. + +2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * cli/cli-script.c (_initialize_cli_script): Fix online documentation + of 'define' command. + +2018-06-14 Tom de Vries <tdevries@suse.de> + + PR cli/22573 + * infcmd.c (print_return_value_1): Use get_user_print_options instead of + get_no_prettyformat_print_options. + +2018-06-13 Simon Marchi <simon.marchi@ericsson.com> + + * sparc-nat.h: Include target.h. + * sparc64-linux-nat.c (class sparc64_linux_nat_target) + <fetch_registers>: Remove this argument in function call. + <store_registers>: Remove this argument in function call, remove + extra semicolon. + <low_forget_process>: Call sparc64_forget_process instead of + sparc_forget_process. + +2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * procfs.c (_initialize_procfs): Use add_inf_child_target. + (procfs_target::make_corefile_notes): Adjust to new + target_read_alloc return type. + +2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> + Stephen Roberts <stephen.roberts@arm.com> + + PR gdb/22882 + * infrun.c (fetch_inferior_event): If GDB is not proceeding then + run INF_EXEC_COMPLETE handler, even when not calling normal_stop. + Move should_notify_stop local into more inner scope. + +2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> + Stephen Roberts <stephen.roberts@arm.com> + + PR gdb/22882 + * infrun.c (resume_1): Add call to mark_async_event_handler. + +2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com> + + * infrun.c (do_target_wait): Change old version of $pc printed. + +2018-06-11 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2read.c (read_index_from_section): Rename to... + (read_gdb_index_from_section): ... this, update all callers. + (dwarf2_read_index): Rename to... + (dwarf2_read_gdb_index): ... this, update all callers. + +2018-06-11 John David Anglin <danglin@gcc.gnu.org> + + * hppa-linux-nat.c + (hppa_linux_nat_target::fetch_inferior_registers): Rename to + hppa_linux_nat_target::fetch_registers. + +2018-06-11 Alan Hayward <alan.hayward@arm.com> + + * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings. + * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define. + (AARCH64_DWARF_SVE_FFR): Likewise. + (AARCH64_DWARF_SVE_P0): Likewise. + (AARCH64_DWARF_SVE_Z0): Likewise. + +2018-06-11 Alan Hayward <alan.hayward@arm.com> + + * common/common-regcache.h (raw_compare): New function. + * regcache.c (regcache::raw_compare): Likewise. + * regcache.h (regcache::raw_compare): New declaration. + +2018-06-11 Alan Hayward <alan.hayward@arm.com> + + * common/common-regcache.h (reg_buffer_common): New structure. + * regcache.c (reg_buffer::invalidate): Move from detached_regcache. + (reg_buffer::raw_supply): Likewise. + (reg_buffer::raw_supply_integer): Likewise. + (reg_buffer::raw_supply_zeroed): Likewise. + (reg_buffer::raw_collect): Likewise. + (reg_buffer::raw_collect_integer): Likewise. + * regcache.h (reg_buffer::invalidate): Move from detached_regcache. + (reg_buffer::raw_supply): Likewise. + (reg_buffer::raw_supply_integer): Likewise. + (reg_buffer::raw_supply_zeroed): Likewise. + (reg_buffer::raw_collect): Likewise. + (reg_buffer::raw_collect_integer): Likewise. + +2018-06-10 Tom Tromey <tom@tromey.com> + + * remote.c (stop_reply_p): Remove typedef. Don't declare queue. + (class remote_state) <stop_reply_queue>: Now std::vector. + (remote_state::~remote_state) + (remote_target::stop_reply_queue_length): Update. + (struct queue_iter_param, remove_child_of_pending_fork) + (struct check_pending_event_prevents_wildcard_vcont_callback_data) + (check_pending_event_prevents_wildcard_vcont_callback) + (remove_stop_reply_for_inferior) + (remove_stop_reply_of_remote_state) + (remote_notif_remove_once_on_match) + (stop_reply_match_ptid_and_ws) + (remote_kill_child_of_pending_fork): Remove. + (remote_target::remove_new_fork_children) + (remote_target::check_pending_events_prevent_wildcard_vcont) + (remote_target::discard_pending_stop_replies) + (remote_target::discard_pending_stop_replies_in_queue) + (remote_target::remote_notif_remove_queued_reply) + (remote_target::queued_stop_reply) + (remote_target::push_stop_reply, remote_target::peek_stop_reply) + (remote_target::wait, remote_target::kill_new_fork_children) + (remote_target::async): Update. + +2018-06-10 Tom Tromey <tom@tromey.com> + + * record-full.c (record_full_arch_list_cleanups): Remove. + (record_full_message): Use try/catch. + (record_full_wait_cleanups): Remove. + (record_full_wait_1): Use try/catch. + (record_full_restore): Likewise. + +2018-06-10 Tom Tromey <tom@tromey.com> + + * record-full.c (record_full_breakpoint_p): Remove typedef. Don't + declare VEC. Add constructor. + <in_target_beneath>: Now bool. + (record_full_breakpoints): Now a std::vector, static. + (record_full_sync_record_breakpoints) + (record_full_init_record_breakpoints) + (record_full_target::insert_breakpoint) + (record_full_target::remove_breakpoint): Update. Don't use XNEW. + +2018-06-10 Simon Marchi <simon.marchi@polymtl.ca> + + * dwarf2read.c (process_cu_includes): Remove struct keyword. + * serial.c (serial_interface_lookup): Remove struct keyword. + +2018-06-10 Tom Tromey <tom@tromey.com> + + * procfs.c (procfs_target::xfer_partial): Use "beneath" as a + method. + * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as + a method. + * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a + method. + * arm-linux-nat.c (arm_linux_nat_target::read_description): Use + "beneath" as a method. + * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description): + Use "beneath" as a method. + +2018-06-10 Tom Tromey <tom@tromey.com> + + * tracefile.c (struct trace_file_writer_deleter): New. + <operator()>: Rename from trace_file_writer_xfree. + (trace_file_writer_up): New typedef. + (tsave_command, trace_save_tfile, trace_save_ctf): Update. + +2018-06-09 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor. + <m_registers, m_register_status>: Change type to + std::unique_ptr. + * regcache.c (reg_buffer::reg_buffer): Use new instead of + XCNEWVEC. + +2018-06-09 Simon Marchi <simon.marchi@ericsson.com> + + * common/common-regcache.h (enum register_status): Add + underlying type "signed char". + * regcache.h (reg_buffer) <m_register_status>: Change type to + register_status *. + * regcache.c (reg_buffer::reg_buffer): Alocate arrays of + register_status instead of signed char. + (reg_buffer::save): Use REG_UNKNOWN instead of 0. + (reg_buffer::get_register_status): Remove cast. + (readable_regcache::raw_read): Remove cast. + (readable_regcache::cooked_read): Remove cast. + +2018-06-09 Tom Tromey <tom@tromey.com> + + * source.c (reverse_search_command, forward_search_command): Use + scoped_fd. + +2018-06-09 Tom Tromey <tom@tromey.com> + + * serial.c (serial_ops_p): Remove typedef. Don't declare VEC. + (serial_ops_list): Now static, std::vector. + (serial_interface_lookup, serial_add_interface): Update. + +2018-06-09 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (process_cu_includes): Update. + (process_full_comp_unit): Update. + * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a + std::vector. + +2018-06-08 Paul Koning <paul_koning@dell.com> + + PR gdb/23252 + + * python/python.c (do_start_initialization): + Avoid call to internal Python API. + (init__gdb_module): New function. + +2018-06-08 Gary Benson <gbenson@redhat.com> + + * linux-thread-db.c (valprint.h): New include. + (struct check_thread_db_info): New structure. + (check_thread_db_on_load, tdb_testinfo): New static globals. + (check_thread_db, check_thread_db_callback): New functions. + (try_thread_db_load_1): Run integrity checks if requested. + (maintenance_check_libthread_db): New function. + (_initialize_thread_db): Register "maint check libthread-db" + and "maint set/show check-libthread-db". + * NEWS: Mention the above new commands. + +2018-06-08 Tom Tromey <tom@tromey.com> + + * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is + now a method. + +2018-06-08 Tom Tromey <tom@tromey.com> + + * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr. + +2018-06-08 Tom Tromey <tom@tromey.com> + + * common/btrace-common.h (struct btrace_data): Add constructor, + destructor, move assignment operator. + <empty, clear, fini>: New methods. + <format>: Initialize. + (btrace_data_init, btrace_data_fini, btrace_data_clear) + (btrace_data_empty): Don't declare. + * common/btrace-common.c (btrace_data_init): Remove. + (btrace_data::fini): Rename from btrace_data_fini. + (btrace_data::empty): Rename from btrace_data_empty. + (btrace_data::clear): Rename from btrace_data_clear. Return + bool. + * btrace.h (make_cleanup_btrace_data): Don't declare. + * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear) + (parse_xml_btrace): Update. + (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove. + (maint_btrace_clear_packet_history_cmd): Update. + +2018-06-07 Pedro Alves <palves@redhat.com> + + * target.h (target_ops) <beneath>: Now a method. All references + updated. + (class target_stack): New. + * target.c (g_target_stack): New. + (g_current_top_target): Delete. + (current_top_target): Get the top target out of g_target_stack. + (target_stack::push, target_stack::unpush): New. + (push_target, unpush_target): Reimplement. + (target_is_pushed): Reimplement in terms of g_target_stack. + (target_ops::beneath, target_stack::find_beneath): New. + +2018-06-07 Pedro Alves <palves@redhat.com> + + * target.h (find_target_beneath): Delete declaration. + * target.c (find_target_beneath): Delete definition. + * aix-thread.c: All callers of find_target_beneath adjusted to + call target_ops::beneath instead. + * bsd-uthread.c: Likewise. + * linux-thread-db.c: Likewise. + * ravenscar-thread.c: Likewise. + * sol-thread.c: Likewise. + * spu-multiarch.c: Likewise. + +2018-06-07 Pedro Alves <palves@redhat.com> + + * target.h (target_ops) <beneath>: Now a method. All references + updated. + (target_ops) <m_beneath>: New. + * target.c (target_ops::beneath): New. + * corelow.c: Adjust all references to target_ops::beneath. + * linux-thread-db.c: Likewise. + * make-target-delegates: Likewise. + * record-btrace.c: Likewise. + * record-full.c: Likewise. + * remote.c: Likewise. + * target.c: Likewise. + * target-delegates.c: Regenerate. + +2018-06-07 Pedro Alves <palves@redhat.com> + + * target.h (target_stack): Delete. + (current_top_target): Declare function. + * target.c (target_stack): Delete. + (g_current_top_target): New. + (current_top_target): New function. + * auxv.c: Use current_top_target instead of target_stack + throughout. + * avr-tdep.c: Likewise. + * breakpoint.c: Likewise. + * corefile.c: Likewise. + * elfread.c: Likewise. + * eval.c: Likewise. + * exceptions.c: Likewise. + * frame.c: Likewise. + * gdbarch-selftests.c: Likewise. + * gnu-v3-abi.c: Likewise. + * ia64-tdep.c: Likewise. + * ia64-vms-tdep.c: Likewise. + * infcall.c: Likewise. + * infcmd.c: Likewise. + * infrun.c: Likewise. + * linespec.c: Likewise. + * linux-tdep.c: Likewise. + * minsyms.c: Likewise. + * ppc-linux-nat.c: Likewise. + * ppc-linux-tdep.c: Likewise. + * procfs.c: Likewise. + * regcache.c: Likewise. + * remote.c: Likewise. + * rs6000-tdep.c: Likewise. + * s390-linux-nat.c: Likewise. + * s390-tdep.c: Likewise. + * solib-aix.c: Likewise. + * solib-darwin.c: Likewise. + * solib-dsbt.c: Likewise. + * solib-spu.c: Likewise. + * solib-svr4.c: Likewise. + * solib-target.c: Likewise. + * sparc-tdep.c: Likewise. + * sparc64-tdep.c: Likewise. + * spu-tdep.c: Likewise. + * symfile.c: Likewise. + * symtab.c: Likewise. + * target-descriptions.c: Likewise. + * target-memory.c: Likewise. + * target.c: Likewise. + * target.h: Likewise. + * tracefile-tfile.c: Likewise. + * tracepoint.c: Likewise. + * valops.c: Likewise. + * valprint.c: Likewise. + * value.c: Likewise. + * windows-tdep.c: Likewise. + * mi/mi-main.c: Likewise. + +2018-06-07 Tom Tromey <tom@tromey.com> + + * valprint.h (build_address_symbolic): Declare. + * printcmd.c (print_address_symbolic): Update. + (build_address_symbolic): Change "name" and "filename" to + std::string. + * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): + Update. + * defs.h (build_address_symbolic): Remove declaration. + +2018-06-07 Alan Hayward <alan.hayward@arm.com> + + * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define. + (aarch64_vnv_type): Add function. + (aarch64_pseudo_register_name): Add V regs for SVE. + (aarch64_pseudo_register_type): Likewise. + (aarch64_pseudo_register_reggroup_p): Likewise. + (aarch64_pseudo_read_value_2): Use V0 offset for SVE + (aarch64_pseudo_read_value): Add V regs for SVE. + (aarch64_pseudo_write_2): Use V0 offset for SVE + (aarch64_pseudo_write): Add V regs for SVE. + * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type. + +2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com> + + * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef. + (sve_vl_from_vq): Likewise. + +2018-06-05 Tom Tromey <tom@tromey.com> + + * cli/cli-cmds.c (show_version): Update. + * top.c (print_gdb_version): Add "interactive" parameter. + Update. + * main.c (captured_main_1): Update. + * top.h (print_gdb_version): Add "interactive" parameter and a + comment. + +2018-06-05 David Malcolm <dmalcolm@redhat.com> + + * common/enum-flags.h: Add trailing semicolon to example in + comment. + +2018-06-05 Tom Tromey <tom@tromey.com> + + PR cli/12326: + * NEWS: Add entry about pager. + * utils.c (pagination_disabled_for_command): New global. + (prompt_for_continue): Allow "c" response to prompt. + (reinitialize_more_filter): Clear + pagination_disabled_for_command. + (fputs_maybe_filtered): Check pagination_disabled_for_command. + +2018-06-04 Tom Tromey <tom@tromey.com> + + * ada-lang.h (ada_lookup_symbol_list): Update. + * ada-lang.c (resolve_subexp): Update. + (symbols_are_identical_enums): Change type of syms. Remove nsyms + parameter. + (remove_extra_symbols, remove_irrelevant_renamings): Likewise. + (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change + results parameter to std::vector. + (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value): + Update. + * ada-exp.y (block_lookup): Update. + (select_possible_type_sym): Change type of syms. Remove nsyms + parameter. + (write_var_or_type, write_name_assoc): Update. + +2018-06-04 Joel Brobecker <brobecker@adacore.com> + + * windows-nat.c (windows_nat_target::xfer_partial): Return + TARGET_XFER_E_IO if we need to delegate to the target beneath + but BENEATH is NULL. + +2018-06-04 Simon Marchi <simon.marchi@ericsson.com> + + * Makefile.in (config.status): Add configure.nat as a + dependency. + +2018-06-04 Tom Tromey <tom@tromey.com> + + * cp-name-parser.y (cpname_state): Add method declarations. + (HANDLE_QUAL): Update. + (cpname_state::d_grab, cpname_state::fill_comp) + (cpname_state::make_operator, cpname_state::make_dtor) + (cpname_state::make_builtin_type, cpname_state::make_name) + (cpname_state::d_qualify, cpname_state::d_int_type) + (cpname_state::d_unary, cpname_state::d_binary): Now methods. + (%union): Move earlier. + +2018-06-04 Alan Hayward <alan.hayward@arm.com> + + * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT. + +2018-06-04 Alan Hayward <alan.hayward@arm.com> + + * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func. + (aarch64_pseudo_write_1): Likewise. + (aarch64_pseudo_read_value): Use helper. + (aarch64_pseudo_write): Likewise. + +2018-06-04 Pedro Alves <palves@redhat.com> + + * darwin-nat.c (darwin_ops): Delete. + (darwin_attach_pid): Use get_native_target. + +2018-06-04 Alan Hayward <alan.hayward@arm.com> + + * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ. + * aarch64-tdep.h (struct gdbarch_tdep): Likewise. + +2018-06-04 Alan Hayward <alan.hayward@arm.com> + + * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE. + * aarch64-tdep.c (aarch64_get_tdesc_vq): New function. + (aarch64_gdbarch_init): Check for SVE. + * aarch64-tdep.h (gdbarch_tdep::has_sve): New function. + +2018-06-04 Alan Hayward <alan.hayward@arm.com> + + * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ. + * aarch64-tdep.h (aarch64_read_description): Likewise. + * arch/aarch64.c (aarch64_create_target_description): Likewise. + * arch/aarch64.h (aarch64_create_target_description): Likewise. + * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise. + * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise. + * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise. + +2018-06-02 Simon Marchi <simon.marchi@ericsson.com> + + * value.c (value_fetch_lazy_bitfield): New. + (value_fetch_lazy_memory): New. + (value_fetch_lazy_register): New. + (value_fetch_lazy): Factor out to smaller functions. + +2018-06-01 Tom Tromey <tom@tromey.com> + + * cp-name-parser.y (backslashable, represented): Now const. + +2018-06-01 Tom Tromey <tom@tromey.com> + + * cp-name-parser.y: Include parser-defs.h. + (parser_fprintf): Remove declaration. + +2018-06-01 Tom Tromey <tom@tromey.com> + + * cp-name-parser.y: Use %pure-parser, %lex-param, and + %parse-param. + (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info) + (global_result): Remove globals. + (struct cpname_state): New. + (yyparse): Don't declare. + (yylex, yyerror): Move declarations after %union. + (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type) + (make_name): Add state parameter. + Update all callers. + (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state + parameter. + (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3): + Update. + (yylex): Add lvalp, state parameters. + (yyerror): Add state parameter. + (cp_demangled_name_to_comp): Update. + +2018-06-01 Tom Tromey <tom@tromey.com> + + * cp-name-parser.y (parser_fprintf): Declare. + (GDB_YY_REMAP_PREFIX): Define. + Include yy-remap.h. Don't redefine yy* identifiers. + +2018-06-01 Tom Tromey <tom@tromey.com> + + * python/py-type.c (typy_legacy_template_argument): Update. + * cp-support.h (cp_demangled_name_to_comp): Update. + * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg + parameter to be a "std::string *". + (main): Update. + +2018-06-01 H.J. Lu <hongjiu.lu@intel.com> + + * ada-lex.l: Include "diagnostics.h" instead of + "common/diagnostics.h". + * unittests/environ-selftests.c: Likewise. + * common/diagnostics.h: Moved to ../include. + +2018-06-01 Joel Brobecker <brobecker@adacore.com> + + * breakpoint.c (breakpoint_re_set): Temporarily force language_mode + to language_mode_manual while calling breakpoint_re_set_one. + +2018-06-01 Tom Tromey <tom@tromey.com> + + * valops.c (value_cast_structs, destructor_name_p): Update. + * symtab.c (gdb_mangle_name): Update. + * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses): + Update. + * p-valprint.c (pascal_object_is_vtbl_ptr_type) + (pascal_object_print_value_fields, pascal_object_print_value): + Update. + * p-typeprint.c (pascal_type_print_derivation_info): Update. + * linespec.c (find_methods): Update. + * gdbtypes.h (type_name_no_tag): Remove. + (type_name_or_error): Rename from type_name_no_tag_or_error. + * gdbtypes.c (type_name_no_tag): Remove. + (type_name_or_error): Rename from type_name_no_tag_or_error. + (lookup_struct_elt_type, check_typedef): Update. + * expprint.c (print_subexp_standard): Update. + * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update. + * d-namespace.c (d_lookup_nested_symbol): Update. + * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields) + (cp_print_class_member): Update. + * cp-namespace.c (cp_lookup_nested_symbol): Update. + * completer.c (add_struct_fields): Update. + * c-typeprint.c (cp_type_print_derivation_info) + (c_type_print_varspec_prefix, c_type_print_base_struct_union): + Update. + * ada-lang.c (parse_old_style_renaming, xget_renaming_scope) + (ada_prefer_type, ada_is_exception_sym): Update. + +2018-06-01 Tom Tromey <tom@tromey.com> + + * valops.c (enum_constant_from_type, value_namespace_elt) + (value_maybe_namespace_elt): Update. + * valarith.c (find_size_for_pointer_math): Update. + * target-descriptions.c (make_gdb_type): Update. + * symmisc.c (print_symbol): Update. + * stabsread.c (define_symbol, read_type) + (complain_about_struct_wipeout, add_undefined_type) + (cleanup_undefined_types_1): Update. + * rust-lang.c (rust_tuple_type_p, rust_slice_type_p) + (rust_range_type_p, val_print_struct, rust_print_struct_def) + (rust_internal_print_type, rust_composite_type) + (rust_evaluate_funcall, rust_evaluate_subexp) + (rust_inclusive_range_type_p): Update. + * python/py-type.c (typy_get_tag): Update. + * p-typeprint.c (pascal_type_print_base): Update. + * mdebugread.c (parse_symbol, parse_type): Update. + * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum): + Update. + * guile/scm-type.c (gdbscm_type_tag): Update. + * go-lang.c (sixg_string_p): Update. + * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type): + Update. + * gdbtypes.h (struct main_type) <tag_name>: Remove. + (TYPE_TAG_NAME): Remove. + * gdbtypes.c (type_name_no_tag): Simplify. + (check_typedef, check_types_equal, recursive_dump_type) + (copy_type_recursive, arch_composite_type): Update. + * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix + in summary mode when needed. + * eval.c (evaluate_funcall): Update. + * dwarf2read.c (fixup_go_packaging, read_structure_type) + (process_structure_scope, read_enumeration_type) + (read_namespace_type, read_module_type, determine_prefix): Update. + * cp-support.c (inspect_type): Update. + * coffread.c (process_coff_symbol, decode_base_type): Update. + * c-varobj.c (c_is_path_expr_parent): Update. + * c-typeprint.c (c_type_print_base_struct_union): Update. + (c_type_print_base_1): Update. Print struct/class/union/enum in + summary when using C language. + * ax-gdb.c (gen_struct_ref, gen_namespace_elt) + (gen_maybe_namespace_elt): Update. + * ada-lang.c (ada_type_name): Simplify. + (empty_record, ada_template_to_fixed_record_type_1) + (template_to_static_fixed_type) + (to_record_with_fixed_variant_part, ada_check_typedef): Update. + +2018-06-01 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (dwarf2_compute_name): Pass CU's language to + c_print_type. + * c-typeprint.c (c_print_type_1): Add "language" parameter. + (c_print_type): Update. + (c_print_type): New overload. + (c_type_print_varspec_prefix, c_type_print_args) + (c_type_print_varspec_suffix, c_print_type_no_offsets) + (c_type_print_base_struct_union, c_type_print_base_1) + (cp_type_print_method_args): Add "language" parameter. + (c_type_print_base): Update. + * c-lang.h (c_print_type): Add new overload. + +2018-06-01 Tom Tromey <tom@tromey.com> + + * typeprint.h (c_type_print_varspec_suffix): Don't declare. + * c-typeprint.c (c_type_print_varspec_suffix): Now static. + +2018-06-01 Alan Hayward <alan.hayward@arm.com> + + * aarch64-tdep.c (aarch64_sve_register_names): New const + var. + * arch/aarch64.h (enum aarch64_regnum): Add SVE entries. + (AARCH64_SVE_Z_REGS_NUM): New define. + (AARCH64_SVE_P_REGS_NUM): Likewise. + (AARCH64_SVE_NUM_REGS): Likewise. + +2018-05-31 Uros Bizjak <ubizjak@gmail.com> + + * nat/linux-ptrace.h [__alpha__] + (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove + definitions. + +2018-05-31 Maciej W. Rozycki <macro@mips.com> + + * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to + the endianness selected. + * NEWS: Document `set endian auto' mode operation update. + +2018-05-31 Alan Hayward <alan.hayward@arm.com> + + * Makefile.in: Add new header. + * gdb/arch/aarch64.h (sve_vg_from_vl): New macro. + (sve_vl_from_vg): Likewise. + (sve_vq_from_vl): Likewise. + (sve_vl_from_vq): Likewise. + (sve_vq_from_vg): Likewise. + (sve_vg_from_vq): Likewise. + * configure.nat: Add new c file. + * nat/aarch64-sve-linux-ptrace.c: New file. + * nat/aarch64-sve-linux-ptrace.h: New file. + +2018-05-31 Alan Hayward <alan.hayward@arm.com> + + * aarch64-linux-nat.c (aarch64_linux_read_description): + Add parmeter zero. + * aarch64-linux-tdep.c (aarch64_linux_core_read_description): + Likewise. + * aarch64-tdep.c (tdesc_aarch64_list): Add. + (aarch64_read_description): Use VQ to index tdesc_aarch64_list. + (aarch64_gdbarch_init): Add parmeter zero. + * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter. + * arch/aarch64.c (aarch64_create_target_description): Check VQ. + * arch/aarch64.h (aarch64_create_target_description): Add VQ. + parmeter. + * doc/gdb.texinfo: Describe SVE feature + * features/aarch64-sve.c: New file. + +2018-05-31 Omair Javaid <omair.javaid@linaro.org> + + PR gdb/23210 + * gdbarch.sh (significant_addr_bit): Default to zero when + not set by target architecture. + * gdbarch.c: Re-generated. + * utils.c (address_significant): Update. + +2018-05-30 Joel Brobecker <brobecker@adacore.com> + + * stack.c (func_command): Remove trailing newline in call to error. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (regcache_raw_collect): Remove, update callers to + use regcache::raw_collect. + * regcache.c (regcache_raw_collect): Remove. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (regcache_raw_supply): Remove, update callers to + use detached_regcache::raw_supply. + * regcache.c (regcache_raw_supply): Remove. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (regcache_cooked_write_part): Remove, update + callers to use regcache::cooked_write_part. + * regcache.c (regcache_cooked_write_part): Remove. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (regcache_cooked_read_part): Remove, update callers + to use readable_regcache::cooked_read_part. + * regcache.c (regcache_cooked_read_part): Remove. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (regcache_cooked_read_value): Remove, update + callers to use readable_regcache::cooked_read_value. + * regcache.c (regcache_cooked_read_value): Remove. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (regcache_cooked_write): Remove, update callers to + use regcache::cooked_write. + * regcache.c (regcache_cooked_write): Remove. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (regcache_invalidate): Remove, update callers to + use detached_regcache::invalidate instead. + * regcache.c (regcache_invalidate): Remove. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (regcache_raw_write_part): Remove, update callers + to use regcache::raw_write_part instead. + * regcache.c (regcache_raw_write_part): Remove. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (regcache_raw_read_part): Remove, update callers to + use readable_regcache::raw_read_part instead. + * regcache.c (regcache_raw_read_part): Remove. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (regcache_cooked_read): Remove, update callers to + use readable_regcache::cooked_read instead. + * regcache.c (regcache_cooked_read): Remove. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (regcache_raw_write): Remove, update callers to use + regcache::raw_write instead. + * regcache.c (regcache_raw_write): Remove. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (regcache_raw_read): Remove, update callers to use + readable_regcache::raw_read instead. + * regcache.c (regcache_raw_read): Remove. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (regcache_raw_update): Remove, update callers to + use readable_regcache::raw_update instead. + * regcache.c (regcache_raw_update): Remove. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (regcache_register_status): Remove, update callers + to use reg_buffer::get_register_status directly instead. + * regcache.c (regcache_register_status): Remove. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.h (regcache_get_ptid): Remove, update all callers to + call regcache::ptid instead. + * regcache.c (regcache_get_ptid): Remove. + +2018-05-30 Simon Marchi <simon.marchi@ericsson.com> + + * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o. + +2018-05-30 Pedro Alves <palves@redhat.com> + + * common/common-exceptions.h (exception_rethrow): Use + ATTRIBUTE_NORETURN. + +2018-05-29 Simon Marchi <simon.marchi@polymtl.ca> + + * breakpoint.c (print_solib_event, check_status_catch_solib): + Remove struct keyword in range-based for loops. + * dbxread.c (find_corresponding_bincl_psymtab): Likewise. + * dwarf2read.c (compute_delayed_physnames, rust_union_quirks); + Likewise. + * linespec.c (find_superclass_methods, search_minsyms_for_name): + Likewise. + * symfile.c (addr_info_make_relative): Likewise. + * thread.c (value_in_thread_stack_temporaries): Likewise. + +2018-06-12 Weimin Pan <weimin.pan@oracle.com> + + PR gdb/16841 + * valops.c (value_struct_elt_for_reference): Call check_typedef on + aggregate type to get its real type before accessing it. + +2018-05-29 Weimin Pan <weimin.pan@oracle.com> + + * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration. + * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition. + * coff-pe-read.c (add_pe_forwarded_sym): Replace + lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol. + * glibc-tdep.c (glibc_skip_solib_resolver): Likewise. + * jit.c (jit_breakpoint_re_set_internal): Likewise. + * printcmd.c (info_address_command): Likewise. + +2018-05-29 Tom Tromey <tom@tromey.com> + + * windows-nat.c (handle_exception): Update fall-through comment. + +2018-05-29 Tom Tromey <tom@tromey.com> + + * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC. + (struct program_space) <added_solibs>: Now a std::vector. + * breakpoint.c (print_solib_event): Update. + (check_status_catch_solib): Update. + * progspace.c (clear_program_space_solib_cache): Update. + * solib.c (update_solib_list): Update. + +2018-05-29 Tom Tromey <tom@tromey.com> + + * python/py-type.c (typy_richcompare): Update. + * guile/scm-type.c (tyscm_equal_p_type_smob): Update. + * gdbtypes.h (types_deeply_equal): Return bool. + (types_equal): Likewise. + * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't + declare VEC. + (check_types_equal): Change worklist to std::vector. Return + bool. + (struct type_equality_entry): Add constructor. + (compare_maybe_null_strings): Return bool. + (check_types_worklist): Return bool. Change worklist to + std::vector. + (types_deeply_equal): Use std::vector. + (types_equal): Return bool. + (compare_maybe_null_strings): Simplify. + +2018-05-29 Tom Tromey <tom@tromey.com> + + * record-btrace.c (tp_t): Remove typedef. Don't declare VEC. + +2018-05-29 Tom Tromey <tom@tromey.com> + + * objc-lang.h: Don't include cp-support.h. + * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't + declare VEC. + +2018-05-27 Tom Tromey <tom@tromey.com> + + * Makefile.in (DEPFILES): Don't reference REMOTE_OBS. + +2018-05-25 Tom Tromey <tom@tromey.com> + + * value.c (value::location): Initialize. + +2018-05-25 Tom Tromey <tom@tromey.com> + + * dbxread.c (init_bincl_list): Remove. + (bincl_list): Now a std::vector. + (bincls_allocated, next_bincl): Remove. + (free_bincl_list, do_free_bincl_list_cleanup) + (make_cleanup_free_bincl_list): Remove. + (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore, + unique_xmalloc_ptr. + (find_corresponding_bincl_psymtab, read_dbx_symtab): Update. + (struct header_file_location): Add constructor. + (add_bincl_to_list): Remove. + +2018-05-25 Tom Tromey <tom@tromey.com> + + * tui/tui.c (tui_enable): Update. + * mi/mi-interp.c (mi_interp::init): Update. + * interps.h (class interp) <name>: New method. + <m_name>: Rename from name. + (~scoped_restore_interp): Update. + * interps.c (interp::interp): Update. + (interp_add, interp_set, interp_lookup_existing) + (current_interp_named_p): Update. + +2018-05-25 Tom Tromey <tom@tromey.com> + + * interps.c (interp_name): Remove. + * mi/mi-interp.c (mi_interp::init): Update. + * interps.h (interp_name): Remove. + (~scoped_restore_interp): Update. + * tui/tui.c (tui_enable): Update. + +2018-05-25 Tom Tromey <tom@tromey.com> + + * utils.c (fputs_maybe_filtered): Update. + * linespec.c (decode_line_full): Update. + * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified) + (mi_print_breakpoint_for_event, mi_solib_loaded) + (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed) + (mi_user_selected_context_changed): Update. + * mi/mi-main.c (mi_execute_command): Update. + * cli/cli-script.c (execute_control_command): Update. + * python/python.c (execute_gdb_command): Update. + * solib.c (info_sharedlibrary_command): Update. + * interps.c (interp_ui_out): Remove. + * interps.h (interp_ui_out): Remove. + +2018-05-25 Tom Tromey <tom@tromey.com> + + * tui/tui-interp.c (as_tui_interp): Use dynamic_cast. + * mi/mi-interp.c (as_mi_interp): Use dynamic_cast. + * cli/cli-interp.c (as_cli_interp): Use dynamic_cast. + +2018-05-25 Tom Tromey <tom@tromey.com> + + * cli/cli-interp.c (safe_execute_command): Use scoped_restore. + * interps.c (interp_exec): Use scoped_restore. + +2018-05-25 Tom Tromey <tom@tromey.com> + + * remote.c (remote_target::remote_file_get): Use + gdb::byte_vector. + (remote_target::remote_file_put): Likewise. + +2018-05-25 Tom Tromey <tom@tromey.com> + + * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now + a std::string. + (get_pe_section_index, add_pe_exported_sym): Update. + (read_pe_exported_syms): Use gdb::def_vector. + +2018-05-25 Tom Tromey <tom@tromey.com> + + * frame.c (remove_prev_frame): Remove. + (get_prev_frame_if_no_cycle): Use TRY/CATCH. + +2018-05-25 Maciej W. Rozycki <macro@mips.com> + + * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset): + Remove prototypes. + * mips-linux-nat.c (supply_fpregset): Always call + `mips64_supply_fpregset' rather than `mips_supply_fpregset'. + (fill_fpregset): Always call `mips64_fill_fpregset' rather than + `mips_fill_fpregset'. + * mips-linux-tdep.c (mips_supply_fpregset) + (mips_supply_fpregset_wrapper, mips_fill_fpregset) + (mips_fill_fpregset_wrapper): Remove functions. + (mips64_supply_fpregset, mips64_fill_fpregset): Update comments. + (mips_linux_fpregset): Remove variable. + (mips_linux_iterate_over_regset_sections): Use + `mips64_linux_fpregset' in place of `mips_linux_fpregset'. + (mips_linux_o32_sigframe_init): Remove comment. + +2018-05-25 Pedro Alves <palves@redhat.com> + + * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS) + (struct readahead_cache, struct packet_reg, struct + remote_arch_state, class remote_state): Move higher up in the + file. + (remote_target::m_remote_state): Now an object instead of a pointer. + (remote_target::get_remote_state): Adjust. + +2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com> + + * stack.c (select_and_print_frame): Delete. + (struct function_bounds): Move struct within function. + (func_command): Most content moved into new function + find_frame_for_function, use new function, print result, add + function comment. + (find_frame_for_function): New function, now returns a result. + +2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * stack.c (iterate_over_block_arg_vars): Fix comment. + (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout. + +2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com> + + PR gdb/23203 + * frame.c + (scoped_restore_selected_frame::scoped_restore_selected_frame): + Define. + (scoped_restore_selected_frame::~scoped_restore_selected_frame): + Define. + * frame.h (class scoped_restore_selected_frame): New class. + * stack.c (print_frame_local_vars): Remove catching and rethrowing + of any exception, use scoped_restore_selected_frame to restore the + frame instead. + +2018-05-24 Pedro Alves <palves@redhat.com> + + * darwin-nat.h (darwin_nat_target::create_inferior): Mark with + override. + +2018-05-23 Tom Tromey <tom@tromey.com> + + * complaints.c (struct complaints): Remove. + (symfile_complaint_book): Remove. + (series): New global. + (complaint_internal): Update. + (clear_complaints): Update. + +2018-05-23 Tom Tromey <tom@tromey.com> + + * complaints.c (counters): New global. + (struct complain): Remove. + (struct complaints) <root>: Remove. + (complaint_sentinel): Remove. + (symfile_complaint_book): Update. + (find_complaint) Remove. + (complaint_internal, clear_complaints): Update. + +2018-05-23 Tom Tromey <tom@tromey.com> + + * complaints.c (struct complain) <file, line>: Remove. + (find_complaint): Remove file, line parameters. + (complaint_internal): Update. + +2018-05-23 Tom Tromey <tom@tromey.com> + + * complaints.c (vcomplaint): Remove. + (complaint_internal) Merge in contents of vcomplaint. + +2018-05-23 Tom Tromey <tom@tromey.com> + + * complaints.c (struct complaints) <explanation>: Remove. + (symfile_explanations): Remove. + (symfile_complaint_book): Update. + (vcomplaint): Update. + (struct explanation): Remove. + +2018-05-23 Tom Tromey <tom@tromey.com> + + * complaints.c (symfile_complaints): Remove. + (complaint_internal): Remove "complaints" parameter. + (clear_complaints, vcomplaint): Remove "c" parameter. + (get_complaints): Remove. + * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint) + (dwarf2_debug_line_missing_file_complaint) + (dwarf2_debug_line_missing_end_sequence_complaint) + (dwarf2_complex_location_expr_complaint) + (dwarf2_const_value_length_mismatch_complaint) + (dwarf2_section_buffer_overflow_complaint) + (dwarf2_macro_malformed_definition_complaint) + (dwarf2_invalid_attrib_class_complaint) + (create_addrmap_from_index, dw2_symtab_iter_next) + (dw2_expand_marked_cus) + (dw2_debug_names_iterator::find_vec_in_debug_names) + (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next) + (create_debug_type_hash_table, init_cutu_and_read_dies) + (partial_die_parent_scope, add_partial_enumeration) + (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die) + (dwarf2_compute_name, dwarf2_physname, read_namespace_alias) + (read_import_statement, read_file_scope, create_dwo_cu_reader) + (create_cus_hash_table, create_dwp_hash_table) + (inherit_abstract_dies, read_func_scope, read_call_site_scope) + (dwarf2_rnglists_process, dwarf2_ranges_process) + (dwarf2_add_type_defn, dwarf2_attach_fields_to_type) + (dwarf2_add_member_fn, get_alignment, maybe_set_alignment) + (handle_struct_member_die, process_structure_scope) + (read_array_type, read_common_block, read_module_type) + (read_tag_pointer_type, read_typedef, read_base_type) + (read_subrange_type, load_partial_dies, partial_die_info::read) + (partial_die_info::read, partial_die_info::read) + (partial_die_info::read, read_checked_initial_length_and_offset) + (dwarf2_string_attr, read_formatted_entries) + (dwarf_decode_line_header) + (lnp_state_machine::check_line_address, dwarf_decode_lines_1) + (new_symbol, dwarf2_const_value_attr, lookup_die_type) + (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset) + (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes) + (get_signatured_type, get_DW_AT_signature_type) + (decode_locdesc, file_file_name, consume_improper_spaces) + (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header) + (dwarf_decode_macro_bytes, dwarf_decode_macros) + (dwarf2_symbol_mark_computed, set_die_type) + (read_attribute_value): Update. + * stap-probe.c (handle_stap_probe, get_stap_base_address): + Update. + * dbxread.c (unknown_symtype_complaint) + (lbrac_mismatch_complaint, repeated_header_complaint) + (set_namestring, function_outside_compilation_unit_complaint) + (read_dbx_symtab, process_one_symbol): Update. + * gdbtypes.c (stub_noname_complaint): Update. + * windows-nat.c (handle_unload_dll): Update. + * coffread.c (coff_symtab_read, enter_linenos, decode_type) + (decode_base_type): Update. + * xcoffread.c (bf_notfound_complaint, ef_complaint) + (eb_complaint, record_include_begin, record_include_end) + (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab) + (process_xcoff_symbol, read_symbol) + (function_outside_compilation_unit_complaint) + (scan_xcoff_symtab): Update. + * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update. + * buildsym.c (finish_block_internal, make_blockvector) + (end_symtab_get_static_block, augment_type_symtab): Update. + * dtrace-probe.c (dtrace_process_dof) + (dtrace_static_probe_ops::get_probes): Update. + * complaints.h (struct complaint): Don't declare. + (symfile_complaints): Remove. + (complaint_internal): Remove "complaints" parameter. + (complaint): Likewise. + (clear_complaints): Likewise. + * symfile.c (syms_from_objfile_1, finish_new_objfile) + (reread_symbols): Update. + * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program) + (dwarf2_frame_cache, decode_frame_entry): Update. + * dwarf2loc.c (dwarf_reg_to_regnum): Update. + * objc-lang.c (lookup_objc_class, lookup_child_selector) + (info_selectors_command): Update. + * macrotab.c (macro_include, check_for_redefinition) + (macro_undef): Update. + * objfiles.c (filter_overlapping_sections): Update. + * stabsread.c (invalid_cpp_abbrev_complaint) + (reg_value_complaint, stabs_general_complaint, dbx_lookup_type) + (define_symbol, error_type, read_type, rs6000_builtin_type) + (stabs_method_name_from_physname, read_member_functions) + (read_cpp_abbrev, read_baseclasses, read_tilde_fields) + (attach_fields_to_type, complain_about_struct_wipeout) + (read_range_type, read_args, common_block_start) + (common_block_end, cleanup_undefined_types_1, scan_file_globals): + Update. + * mdebugread.c (index_complaint, unknown_ext_complaint) + (basic_type_complaint, bad_tag_guess_complaint) + (bad_rfd_entry_complaint, unexpected_type_code_complaint) + (reg_value_complaint, parse_symbol, parse_type, upgrade_type) + (parse_procedure, parse_lines) + (function_outside_compilation_unit_complaint) + (parse_partial_symbols, psymtab_to_symtab_1, cross_ref) + (bad_tag_guess_complaint, reg_value_complaint): Update. + * cp-support.c (demangled_name_complaint): Update. + * macroscope.c (sal_macro_scope): Update. + * dwarf-index-write.c (class debug_names): Update. + +2018-05-23 Tom Tromey <tom@tromey.com> + + * complaints.c (clear_complaints): Remove "noisy" parameter. + * complaints.h (clear_complaints): Update. + * symfile.c (syms_from_objfile_1, finish_new_objfile) + (reread_symbols): Update. + +2018-05-23 Tom Tromey <tom@tromey.com> + + * complaints.c (enum complaint_series): Remove FIRST_MESSAGE, + SUBSEQUENT_MESSAGE. + (vcomplaint, clear_complaints): Update. + (symfile_explanations): Remove some messages. + +2018-05-23 Tom Tromey <tom@tromey.com> + + * complaints.c (internal_complaint): Remove. + * complaints.h (internal_complaint): Remove. + +2018-05-22 Maciej W. Rozycki <macro@mips.com> + + * i387-tdep.c (i387_collect_xsave): Make `i' unsigned. + +2018-05-22 Pedro Alves <palves@redhat.com> + + * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror) + (remote_fileio_badfd, remote_fileio_return_errno) + (remote_fileio_return_success, remote_fileio_func_open) + (remote_fileio_func_open, remote_fileio_func_close) + (remote_fileio_func_read, remote_fileio_func_write) + (remote_fileio_func_lseek, remote_fileio_func_rename) + (remote_fileio_func_unlink, remote_fileio_func_stat) + (remote_fileio_func_fstat, remote_fileio_func_gettimeofday) + (remote_fileio_func_isatty, remote_fileio_func_system): Add + remote_target parameter. + (remote_fio_func_map) <func>: Add remote_target parameter. + (do_remote_fileio_request, remote_fileio_request): + * remote-fileio.h (remote_fileio_request): + * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add + remote_target parameter. + (remote_notif_process, handle_notification): Adjust to pass down + the remote. + (remote_notif_state_allocate): Add remote_target parameter. Save + it. + * remote-notif.h (struct remote_target): Forward declare. + (struct notif_client) <parse, ack, can_get_pending_events>: Add + remote_target parameter. + (struct remote_notif_state) <remote>: New field. + (remote_notif_ack, remote_notif_parse): Add remote_target + parameter. + (remote_notif_state_allocate, remote_notif_state_allocate): Add + remote_target parameter. + * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info) + (threads_listing_context, rmt_thread_action, protocol_feature) + (packet_reg, stop_reply, stop_reply_p, enum packet_support) + (packet_result, struct threads_listing_context, remote_state): + Move definitions and declarations higher up. + (remote_target) <~remote_target>: Declare. + (remote_download_command_source, remote_file_put, remote_file_get) + (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite) + (remote_hostio_pread_vFile, remote_hostio_send_command) + (remote_hostio_set_filesystem, remote_hostio_open) + (remote_hostio_close, remote_hostio_unlink, remote_state) + (get_remote_state, get_remote_packet_size, get_memory_packet_size) + (get_memory_write_packet_size, get_memory_read_packet_size) + (append_pending_thread_resumptions, remote_detach_1) + (append_resumption, remote_resume_with_vcont) + (add_current_inferior_and_thread, wait_ns, wait_as) + (process_stop_reply, remote_notice_new_inferior) + (process_initial_stop_replies, remote_add_thread) + (btrace_sync_conf, remote_btrace_maybe_reopen) + (remove_new_fork_children, kill_new_fork_children) + (discard_pending_stop_replies, stop_reply_queue_length) + (check_pending_events_prevent_wildcard_vcont) + (discard_pending_stop_replies_in_queue, stop_reply) + (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply) + (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns) + (remote_interrupt_as, remote_interrupt_ns) + (remote_get_noisy_reply, remote_query_attached) + (remote_add_inferior, remote_current_thread, get_current_thread) + (set_thread, set_general_thread, set_continue_thread) + (set_general_process, write_ptid) + (remote_unpack_thread_info_response, remote_get_threadinfo) + (parse_threadlist_response, remote_get_threadlist) + (remote_threadlist_iterator, remote_get_threads_with_ql) + (remote_get_threads_with_qxfer) + (remote_get_threads_with_qthreadinfo, extended_remote_restart) + (get_offsets, remote_check_symbols, remote_supported_packet) + (remote_query_supported, remote_packet_size) + (remote_serial_quit_handler, remote_detach_pid) + (remote_vcont_probe, remote_resume_with_hc) + (send_interrupt_sequence, interrupt_query) + (remote_notif_get_pending_events, fetch_register_using_p) + (send_g_packet, process_g_packet, fetch_registers_using_g) + (store_register_using_P, store_registers_using_G) + (set_remote_traceframe, check_binary_download) + (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1) + (remote_xfer_live_readonly_partial, remote_read_bytes) + (remote_send_printf, remote_flash_write, readchar) + (remote_serial_write, putpkt, putpkt_binary, skip_frame) + (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane) + (getpkt_or_notif_sane, remote_vkill, remote_kill_k) + (extended_remote_disable_randomization, extended_remote_run) + (send_environment_packet, extended_remote_environment_support) + (extended_remote_set_inferior_cwd, remote_write_qxfer) + (remote_read_qxfer, push_stop_reply, vcont_r_supported) + (packet_command): Now methods of ... + (remote_target): ... this class. + (m_remote_state) <remote_target>: New field. + (struct remote_state) <stop_reply_queue, + remote_async_inferior_event_token, wait_forever_enabled_p>: New + fields. + (remote_state::remote_state): Allocate stop_reply_queue. + (remote_state): Delete global. + (get_remote_state_raw): Delete. + (remote_target::get_remote_state): Allocate m_remote_state on + demand. + (get_current_remote_target): New. + (remote_ops, extended_remote_ops): Delete. + (wait_forever_enabled_p, remote_async_inferior_event_token): + Delete, moved to struct remote_state. + (remote_target::close): Delete self. Destruction bits split to + ... + (remote_target::~remote_target): ... this. + (show_memory_packet_size): Adjust to use + get_current_remote_target. + (struct protocol_feature) <func>: Add remote_target parameter. + All callers adjusted. + (curr_quit_handler_target): New. + (remote_serial_quit_handler): Reimplement. + (remote_target::open_1): Adjust to use get_current_remote_target. + Heap-allocate remote_target/extended_remote_target instances. + (vcont_builder::vcont_builder): Add remote_target parameter, and + save it in m_remote. All callers adjusted. + (vcont_builder::m_remote): New field. + (vcont_builder::restart, vcont_builder::flush) + (vcont_builder::push_action): Use it. + (remote_target::commit_resume): Use it. + (struct queue_iter_param) <remote>: New field. + (remote_target::remove_new_fork_children): Fill in 'remote' field. + (check_pending_event_prevents_wildcard_vcont_callback_data): New. + (check_pending_event_prevents_wildcard_vcont_callback) + (remote_target::check_pending_events_prevent_wildcard_vcont) + (remote_target::discard_pending_stop_replies) + (remote_target::discard_pending_stop_replies_in_queue) + (remote_target::remote_notif_remove_queued_reply): Fill in + 'remote' field. + (remote_notif_get_pending_events): New. + (remote_target::readchar, remote_target::remote_serial_write): + Save/restore curr_quit_handler_target. + (putpkt): New. + (kill_new_fork_children): Fill in 'remote' field. + (packet_command): Use get_current_remote_target, defer to + remote_target method of same name. + (scoped_remote_fd::scoped_remote_fd): Add 'remote_target' + parameter, and save it in m_remote. All callers adjusted. + (scoped_remote_fd::release): Use m_remote. + (scoped_remote_fd::m_remote): New field. + (remote_file_put, remote_file_get, remote_file_delete): Use + get_current_remote_target, defer to remote_target method of same + name. + (remote_btrace_reset): Add remote_state paremeter. Update all + callers. + (remote_async_inferior_event_handler). Pass down 'data'. + (remote_new_objfile): Use get_current_remote_target. + (remote_target::vcont_r_supported): New. + (set_range_stepping): Use get_current_remote_target and + remote_target::vcont_r_supported. + (_initialize_remote): Don't allocate 'remote_state' and + 'stop_reply_queue' globals. + * remote.h (struct remote_target): Forward declare. + (getpkt, putpkt, remote_notif_get_pending_events): Add + 'remote_target' parameter. + +2018-05-22 Pedro Alves <palves@redhat.com> + + * remote.c (vcont_builder): Now a class. Make all data members + private. + (vcont_builder) <vcont_builder, restart, flush, push_action>: + Declare methods. + (vcont_builder_restart): Rename to ... + (vcont_builder::restart): ... this. + (vcont_builder_flush): Rename to ... + (vcont_builder::flush): ... this. + (vcont_builder_push_action): Rename to ... + (vcont_builder::push_action): ... this. + (remote_target::commit_resume): Adjust. + +2018-05-22 Pedro Alves <palves@redhat.com> + + * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ... + (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this. + (get_fixed_memory_packet_size): New. + (get_memory_packet_size): Use it. + (set_memory_packet_size): Don't override the config size with + DEFAULT_MAX_MEMORY_PACKET_SIZE. + (show_memory_packet_size): Use get_fixed_memory_packet_size. + Don't refer to get_memory_packet_size if not connected to a remote + target. Show "(default)" if configured size is 0. + +2018-05-22 Pedro Alves <palves@redhat.com> + + * remote.c (remote_target::mourn_inferior): Move + discard_pending_stop_replies call here from ... + (_initialize_remote): ... here. + +2018-05-22 Pedro Alves <palves@redhat.com> + + * remote.c (compare_section_command): Remove set_general_process + call. + +2018-05-22 Pedro Alves <palves@redhat.com> + + * remote.c (struct packet_reg, struct remote_arch_state): + Move higher up in the file. + (remote_state) <m_arch_states>: Store remote_arch_state values + instead of remote_arch_state pointers. + (remote_state::get_remote_arch_state): Adjust. + +2018-05-22 Pedro Alves <palves@redhat.com> + + * remote.c: Include <unordered_map>. + (remote_state): Now a class. + (remote_state) <get_remote_arch_state>: Declare method. + <get_remote_arch_state>: New field. + (remote_arch_state) <remote_arch_state>: Declare ctor. + <regs>: Now a unique_ptr. + (remote_gdbarch_data_handle): Delete. + (get_remote_arch_state): Delete. + (remote_state::get_remote_arch_state): New. + (get_remote_state): Adjust to call remote_state's + get_remote_arch_state method. + (init_remote_state): Delete, bits factored out to ... + (remote_arch_state::remote_arch_state): ... this new method. + (get_remote_packet_size, get_memory_packet_size) + (process_g_packet, remote_target::fetch_registers) + (remote_target::prepare_to_store, store_registers_using_G) + (remote_target::store_registers, remote_target::get_trace_status): + Adjust to call remote_state's method. + (_initialize_remote): Remove reference to + remote_gdbarch_data_handle. + +2018-05-22 Pedro Alves <palves@redhat.com> + + * remote.c (struct readahead_cache) <invalidate, invalidate_fd, + pread>: New method declarations. + (remote_target::open_1): Adjust. + (readahead_cache_invalidate): Rename to ... + (readahead_cache::invalidate): ... this, and adjust to be a class + method. + (readahead_cache_invalidate_fd): Rename to ... + (readahead_cache::invalidate_fd): ... this, and adjust to be a + class method. + (remote_hostio_pwrite): Adjust. + (remote_hostio_pread_from_cache): Rename to ... + (readahead_cache::pread): ... this, and adjust to be a class + method. + (remote_hostio_close): Adjust. + +2018-05-22 Pedro Alves <palves@redhat.com> + + * remote.c (remote_hostio_close_cleanup): Delete. + (class scoped_remote_fd): New. + (remote_file_put, remote_file_get): Use it. + +2018-05-22 Pedro Alves <palves@redhat.com> + + (struct vCont_action_support): Use bool and initialize all fields. + (struct readahead_cache): Initialize all fields. + (remote_state): Use bool and initialize all fields. + (remote_state::remote_state, remote_state::~remote_state): New. + (new_remote_state): Delete. + (_initialize_remote): Use new to allocate remote_state. + +2018-05-22 Pedro Alves <palves@redhat.com> + 張俊芝 <zjz@zjz.name> + + PR gdb/22973 + * c-exp.y: Include "c-support.h". + (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead + of tolower. Use c_ident_is_alpha to scan names. + * c-lang.c: Include "c-support.h". + (convert_ucn, convert_octal, convert_hex, convert_escape): Use + ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit. + * c-support.h: New file, with bits factored out from ... + * cp-name-parser.y: ... this file. + Include "c-support.h". + (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to + c-support.h and renamed. + (symbol_end, yylex): Adjust. + +2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> + + * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the + parameter type to CORE_ADDR. + * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the + parameter type in declaration to CORE_ADDR. + * ppc-linux-tdep.c (ppc_linux_core_read_description): Call + target_auxv_search to get AT_HWCAP and use the result to get the + target description. + * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type + to CORE_ADDR. Remove the cast of the return value to unsigned + long. Fix error predicate of target_auxv_search. + (ppc_linux_nat_target::read_description): Change the type of the + hwcap variable to CORE_ADDR. + +2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> + + * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only + if the size of fpscr is larger than 32 bits. + +2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> + + * ppc-linux-tdep.c (ppc_linux_vsxregset): New function. + (ppc32_linux_vsxregmap): New global. + (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap, + regcache_supply_regset, and regcache_collect_regset. + * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare. + * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove. + (fetch_vsx_register, store_vsx_register): Remove. + (fetch_vsx_registers): Add regno parameter. Get regset using + ppc_linux_vsxregset. Use regset to supply registers. + (store_vsx_registers): Add regno parameter. Get regset using + ppc_linux_vsxregset. Use regset to collect registers. + (fetch_register): Call fetch_vsx_registers instead of + fetch_vsx_register. + (store_register): Call store_vsx_registers instead of + store_vsx_register. + (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the + new regno parameter. + (store_ppc_registers): Call store_vsx_registers with -1 for the + new regno parameter. + * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget) + (ppc_collect_vsxregset): Remove. + +2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> + + * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register + offset fields. + * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers + for vector register offset fields. + (ppc64_fbsd_reg_offsets): Likewise. + * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment + to vector register offset fields. + * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment + to vector register offset fields. + * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to + vector register offset fields. + * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove + initializers for vector register offset fields. + (rs6000_aix64_reg_offsets): Likewise. + * rs6000-tdep.c (ppc_vrreg_offset): Remove. + (ppc_supply_vrregset): Remove. + (ppc_collect_vrregset): Remove. + * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function. + (ppc_linux_vrregset) : New function. + (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap) + (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals. + (ppc32_linux_vrregset): Remove. + (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset + and use result instead of ppc32_linux_vrregset. + (ppc32_linux_reg_offsets): Remove initializers for vector register + offset fields. + (ppc64_linux_reg_offsets): Likewise. + * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration. + * ppc-linux-nat.c: Include regset.h. + (gdb_vrregset_t): Adjust comment to account for little-endian + mode. + (supply_vrregset, fill_vrregset): Remove. + (fetch_altivec_register, store_altivec_register): Remove. + (fetch_altivec_registers): Add regno parameter. Get regset using + ppc_linux_vrregset. Use regset to supply registers. + (store_altivec_registers): Add regno parameter. Get regset using + ppc_linux_vrregset. Use regset to collect registers. + (fetch_register): Call fetch_altivec_registers instead of + fetch_altivec_register. + (store_register): Call store_altivec_registers instead of + store_altivec_register. + (fetch_ppc_registers): Call fetch_altivec_registers with -1 for + the new regno parameter. + (store_ppc_registers): Call store_altivec_registers with -1 for + the new regno parameter. + +2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> + + * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET) + (PPC_LINUX_SIZEOF_VSXREGSET): Define. + * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove. + (gdb_vrregset_t): Change array type size to + PPC_LINUX_SIZEOF_VRREGSET. + (gdb_vsxregset_t): Change array type size to + PPC_LINUX_SIZEOF_VSXREGSET. + * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): + Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and + PPC_LINUX_SIZEOF_VSXREGSET. + +2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> + + * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES. + * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to + nat/ppc-linux.c. + (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call + ppc_linux_target_wordsize with tid. + (ppc_linux_nat_target::read_description): Call ppc_linux_target + wordsize with tid. + * nat/ppc-linux.c: Include nat/gdb_ptrace.h. + (ppc64_64bit_inferior_p): Add static and inline specifiers. + (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add + tid parameter. Remove static specifier. + * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration. + (ppc_linux_target_wordsize): New declaration. + +2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> + + * arch/ppc-linux-common.c: New file. + * arch/ppc-linux-common.h: New file. + * arch/ppc-linux-tdesc.h: New file. + * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o. + * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o. + (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and + arch/ppc-linux-tdesc.h. + * ppc-linux-nat.c: Include arch/ppc-linux-common.h and + arch/ppc-linux-tdesc.h. + (ppc_linux_nat_target::read_description): Remove target + description matching code. Fill a ppc_linux_features struct and + call ppc_linux_match_description with it. Move comment about ISA + 2.05 to ppc-linux-common.c. + * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and + arch/ppc-linux-tdesc.h. + (ppc_linux_core_read_description): Remove target description + matching code. Fill a ppc_linux_features struct and call + ppc_linux_match_description with it. + * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l) + (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l) + (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l) + (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l) + (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l) + (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l) + (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l) + (tdesc_powerpc_e500l): Remove. + +2018-05-22 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (catch_assert_command): Pass empty string instead + of NULL for excep_string argument. + +2018-05-22 Maciej W. Rozycki <macro@mips.com> + + * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if + the width of the requested register exceeds the width of the + `ptrace' data type. + +2018-05-21 Tom Tromey <tom@tromey.com> + + * printcmd.c (output_command): Remove. + (output_command_const): Rename to output_command. + * valprint.h (output_command): Rename from output_command_const. + * tracepoint.c (trace_dump_actions): Call output_command. + +2018-05-21 Tom Tromey <tom@tromey.com> + + * mi/mi-cmd-catch.c (mi_cmd_catch_assert) + (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update. + * ada-lang.h (create_ada_exception_catchpoint): Update. + * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a + std::string. + (create_excep_cond_exprs, ~ada_catchpoint) + (should_stop_exception, print_one_exception) + (print_mention_exception, print_recreate_exception): Update. + (ada_get_next_arg): Remove. + (catch_ada_exception_command_split): Use std::string. Change type + of "excep_string", "cond_string". + (catch_ada_exception_command): Update. + (create_ada_exception_catchpoint): Change type of excep_string. + (ada_exception_sal): Remove excep_string parameter. + (~ada_catchpoint): Remove. + +2018-05-21 Tom Tromey <tom@tromey.com> + + * ada-lang.c (ada_collect_symbol_completion_matches): Remove + cleanup. + +2018-05-21 Tom Tromey <tom@tromey.com> + + * ada-lang.c (ada_exception_message_1, ada_exception_message): + Return unique_xmalloc_ptr. + (print_it_exception): Update. + +2018-05-21 Tom Tromey <tom@tromey.com> + + * tracepoint.c (trace_dump_actions): Use std::string. + +2018-05-21 Tom Tromey <tom@tromey.com> + + * symfile.c (reread_symbols): Use std::string for original_name. + +2018-05-21 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr. + (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default + constructor. + +2018-05-20 Simon Marchi <simon.marchi@polymtl.ca> + + * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong + instance to... + (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this. + * objfiles.c (get_objfile_bfd_data): Allocate + objfile_per_bfd_storage with obstack_new when allocating on + obstack. + +2018-05-20 Simon Marchi <simon.marchi@ericsson.com> + + * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or + OBSTACK_ZALLOC. + * dwarf2-frame.c (dwarf2_build_frame_info): Likewise. + * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise. + * mdebugread.c (mdebug_build_psymtabs): Likewise. + (add_pending): Likewise. + (parse_symbol): Likewise. + (parse_partial_symbols): Likewise. + (psymtab_to_symtab_1): Likewise. + (new_psymtab): Likewise. + (elfmdebug_build_psymtabs): Likewise. + * minsyms.c (terminate_minimal_symbol_table): Likewise. + * objfiles.c (get_objfile_bfd_data): Likewise. + (objfile_register_static_link): Likewise. + * psymtab.c (allocate_psymtab): Likewise. + * stabsread.c (read_member_functions): Likewise. + * xcoffread.c (xcoff_end_psymtab): Likewise. + +2018-05-20 Simon Marchi <simon.marchi@ericsson.com> + + * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if + compiler supports std::is_trivially_constructible. + * common/poison.h: Include obstack.h. + (IsMallocable): Define to is_trivially_constructible if the + compiler supports it, define to true_type otherwise. + (xobnew): New. + (XOBNEW): Redefine. + (xobnewvec): New. + (XOBNEWVEC): Redefine. + * gdb_obstack.h (obstack_zalloc): New. + (OBSTACK_ZALLOC): Redefine. + (obstack_calloc): New. + (OBSTACK_CALLOC): Redefine. + (obstack_new): New. + * gdbarch.sh: Include gdb_obstack in gdbarch.h. + (gdbarch_obstack): New declaration in gdbarch.h, definition in + gdbarch.c. + (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use + obstack_calloc/obstack_zalloc. + (gdbarch_obstack_zalloc): Remove. + * target-descriptions.c (tdesc_data_init): Use obstack_new. + +2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * stack.c (backtrace_command_1): Remove useless variable int i. + +2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * stack.c (print_frame_info): Fix comment. + +2018-05-18 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (struct dwz_file): Add constructor, initializers. + <dwz_bfd>: Now a gdb_bfd_ref_ptr. + (~dwarf2_per_objfile): Update + (dwarf2_get_dwz_file): Use new. + * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a + unique_ptr. + +2018-05-18 Tom Tromey <tom@tromey.com> + + * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a + unique_ptr. + * dwarf2read.c (struct dwp_file): Add constructor and + initializers. + (open_and_init_dwp_file): Return a unique_ptr. + (dwarf2_per_objfile, create_dwp_hash_table) + (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2) + (lookup_dwo_unit_in_dwp): Update. + (open_and_init_dwp_file, get_dwp_file): Update. + +2018-05-18 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (dwarf2_per_objfile): Update. + (struct mapped_index): Add initializers. + (dwarf2_read_index): Use new. + (dw2_symtab_iter_init): Update. + * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a + unique_ptr. + +2018-05-18 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2read.c (mapped_index) <total_size>: Remove. + +2018-05-18 Simon Marchi <simon.marchi@ericsson.com> + + * unittests/format_pieces-selftests.c (test_format_specifier): + Add ARI comments. + +2018-05-18 Tom Tromey <tom@tromey.com> + + * c-typeprint.c (maybe_print_hole): New function. + (c_print_type_struct_field_offset): Update. + (c_type_print_base_struct_union): Call maybe_print_hole. + +2018-05-17 Keith Seitz <keiths@redhat.com> + + * breakpoint.c (build_bpstat_chain): New function, moved from + bpstat_stop_status. + (bpstat_stop_status): Add optional parameter, `stop_chain'. + If no stop chain is passed, call build_bpstat_chain to build it. + * breakpoint.h (build_bpstat_chain): Declare. + (bpstat_stop_status): Move documentation here from breakpoint.c. + * infrun.c (handle_signal_stop): Before eliding inlined frames, + build the stop chain and pass it to skip_inline_frames. + Pass this stop chain to bpstat_stop_status. + * inline-frame.c: Include breakpoint.h. + (stopped_by_user_bp_inline_frame): New function. + (skip_inline_frames): Add parameter `stop_chain'. + Move documention to inline-frame.h. + If non-NULL, use stopped_by_user_bp_inline_frame to determine + whether the frame should be elided. + * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'. + Add moved documentation and update for new parameter. + +2018-05-17 Simon Marchi <simon.marchi@ericsson.com> + + PR cli/14975 + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + unittests/format_pieces-selftests.c. + * common/format.h (format_piece) <operator==>: New. + (format_pieces) <operator[]>: Remove. + * common/format.c (format_pieces::format_pieces): Handle \e. + * unittests/format_pieces-selftests.c: New. + +2018-05-17 Tom Tromey <tom@tromey.com> + + PR symtab/23010: + * dwarf2read.c (load_cu, dw2_do_instantiate_symtab) + (dw2_instantiate_symtab): Add skip_partial parameter. + (dw2_find_last_source_symtab, dw2_map_expand_apply) + (dw2_lookup_symbol, dw2_expand_symtabs_for_function) + (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname) + (dw2_expand_symtabs_matching_one) + (dw2_find_pc_sect_compunit_symtab) + (dw2_debug_names_lookup_symbol) + (dw2_debug_names_expand_symtabs_for_function): Update. + (init_cutu_and_read_dies): Add skip_partial parameter. + (process_psymtab_comp_unit, build_type_psymtabs_1) + (process_skeletonless_type_unit, load_partial_comp_unit) + (psymtab_to_symtab_1): Update. + (load_full_comp_unit): Add skip_partial parameter. + (process_imported_unit_die, dwarf2_read_addr_index) + (follow_die_offset, dwarf2_fetch_die_loc_sect_off) + (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off) + (read_signatured_type): Update. + +2018-05-17 Simon Marchi <simon.marchi@ericsson.com> + + * value.c (release_value): Remove unused variable. + (record_latest_value): Likewise. + (access_value_history): Likewise. + (preserve_values): Likewise. + +2018-05-17 Tom Tromey <tom@tromey.com> + + * extension.h (struct ext_lang_type_printers) <py_type_printers>: + Initialize. + +2018-05-16 Maciej W. Rozycki <macro@mips.com> + + PR gdb/22286 + * linux-nat-trad.c (linux_nat_trad_target::fetch_register): + Also handle registers whose width is not a multiple of + PTRACE_TYPE_RET. + (linux_nat_trad_target::store_register): Likewise. + +2018-05-16 Tom Tromey <tom@tromey.com> + + * gdbcore.h (core_bfd): Redefine. + * corelow.c (core_target::close): Update. + (core_target_open): Update. + * progspace.h (struct program_space) <cbfd>: Now a + gdb_bfd_ref_ptr. + +2018-05-16 Tom Tromey <tom@tromey.com> + + PR cli/19551: + * symfile-add-flags.h (enum symfile_add_flags) + <SYMFILE_NOT_FILENAME>: New constant. + * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get + objfile name from BFD. + (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME. + * minidebug.c (find_separate_debug_file_in_section): Put + ".gnu_debugdata" into BFD's file name. + +2018-05-16 Simon Marchi <simon.marchi@ericsson.com> + + * regcache.c (regcache_read_ftype, regcache_write_ftype): + Remove. + +2018-05-15 Tamar Christina <tamar.christina@arm.com> + + PR binutils/21446 + * aarch64-tdep.c (aarch64_analyze_prologue, + aarch64_software_single_step, aarch64_displaced_step_copy_insn): + Indicate not interested in errors. + +2018-05-15 Maciej W. Rozycki <macro@mips.com> + + * mips-linux-nat.c (mips_linux_nat_target::fetch_registers): + Supply the MIPS_ZERO_REGNUM register. + +2018-05-15 Maciej W. Rozycki <macro@mips.com> + + * mips-tdep.c (mask_address_var): Make variable static. + +2018-05-14 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (rust_union_quirks): Clear rust_unions. + +2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com> + + * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not + FXSAVE_ADDR for the mxcsr register. + +2018-05-11 Max Filippov <jcmvbkbc@gmail.com> + + * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition. + +2018-05-11 Pedro Alves <palves@redhat.com> + + * corelow.c (core_target) <core_target>: No longer inline. + Initialize m_core_gdbarch, m_core_vec and build the section table + here. + <~core_target>: New. + <core_gdbarch, get_core_register_section>: New methods. + <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields, + factored out from ... + <core_data, core_vec, core_gdbarch>: ... these deleted globals. + (core_ops): Delete. + (sniff_core_bfd): Add gdbarch parameter. + (core_close): Delete, merged into ... + (core_target::close): ... here. Delete self. + (core_close_cleanup): Delete. + (core_target_open): Allocate a core_target on the heap. Use a + unique_ptr instead of a cleanup. Bits moved into the core_target + ctor. Adjust to use core_target methods instead of globals. + (get_core_register_section): Rename to ... + (core_target::get_core_register_section): ... this and adjust. + (struct get_core_registers_cb_data): New. + (get_core_registers_cb): Use it. Use bool. + (core_target::fetch_registers, core_target::files_info) + (core_target::xfer_partial, core_target::read_description) + (core_target::pid_to, core_target::thread_name): Adjust to + reference class fields instead of globals. + * target.h (struct target_ops_deleter, target_ops_up): New. + +2018-05-11 Pedro Alves <palves@redhat.com> + + * corefile.c (core_file_command): Move to corelow.c. + * corelow.c (the_core_target): Delete. + (core_file_command): Moved from corefile.c. Check exec_bfd + instead of the_core_target. Use target_detach instead of calling + into the_core_target directly. + (maybe_say_no_core_file_now): New. + (core_target::detach): Use it. + (_initialize_corelow): Remove references to the_core_target. + * gdbcore.h (the_core_target): Delete. + +2018-05-11 Tom Tromey <tromey@redhat.com> + Pedro Alves <palves@redhat.com> + + * corefile.c (core_bfd): Remove. + * gdbcore.h (core_bfd): Now a macro. + * progspace.h (struct program_space) <cbfd>: New field. + +2018-05-11 Tom Tromey <tom@tromey.com> + + * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use + gdb::def_vector. + +2018-05-10 Tom Tromey <tom@tromey.com> + + * configure: Rebuild. + * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3. + +2018-05-10 Joel Brobecker <brobecker@adacore.com> + + PR server/23158: + * regformats/regdat.sh: Adjust script, following the addition + of the new expedite_regs parameter to init_target_desc. + +2018-05-10 Omair Javaid <omair.javaid@linaro.org> + + PR gdb/23127 + * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to + set_gdbarch_significant_addr_bit. + * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to + set_gdbarch_significant_addr_bit. + * utils.c (address_significant): Update to sign extend addr. + +2018-05-09 Max Filippov <jcmvbkbc@gmail.com> + + * xtensa-linux-tdep.c (xtensa-tdep.h): New include. + (xtensa_linux_init_abi): Limit tdep->num_regs by + tdep->num_nopriv_regs. + * xtensa-tdep.c (xtensa_derive_tdep): Calculate + tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's + not initialized. + +2018-05-08 Simon Marchi <simon.marchi@ericsson.com> + + * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE. + +2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com> + + * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant. + (I387_MXCSR_INIT_VAL): New constant. + * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave + buffer if it was supplied by the inferior. + * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL. + (i387_xsave_get_clear_bv): New function. + (i387_supply_xsave): Only read x87 control registers from the + xsave buffer if the feature is enabled, and the state will have + been written, otherwise, provide a suitable default. + (i387_collect_xsave): Pre-clear all registers in xsave buffer, + including x87 control registers. Update control registers if they + have changed from the default value, and mark features as enabled + as required. + * i387-tdep.h (i387_xsave_get_clear_bv): Declare. + +2018-05-08 Ulrich Weigand <uweigand@de.ibm.com> + + * spu-tdep.c (info_spu_event_command): Fix output formatting. + +2018-05-07 Tom Tromey <tom@tromey.com> + + * configure: Rebuild. + * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond. + +2018-05-07 Tom Tromey <tom@tromey.com> + + PR tdep/20362: + * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D + bit. Use correct value for VDIV. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * configure: Rebuild. + * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * linux-record.c (record_linux_system_call) <case + RECORD_SYS_RECVFROM>: Add "break". + +2018-05-04 Tom Tromey <tom@tromey.com> + + * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>: + Add missing "break". + * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>: + Add missing "break". + +2018-05-04 Tom Tromey <tom@tromey.com> + + * rs6000-tdep.c (ppc_process_record_op4) + (ppc_process_record_op63): Add fall-through comment. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * i386-tdep.c (i386_process_record): Add fall-through comment. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * stabsread.c (define_symbol) <case 'p'>: Add fall-through + comment. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment. + * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment. + * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through + comment. + * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through + comment. + * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through + comment. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * s390-tdep.c (s390_process_record): Fix fall-through comments. + * xcoffread.c (scan_xcoff_symtab): Move comment later. + * symfile.c (section_is_mapped): Fix fall-through comment. + * stabsread.c (define_symbol, read_member_functions): Fix + fall-through comment. + * s390-linux-tdep.c (s390_process_record): Fix fall-through + comment. + * remote.c (remote_wait_as): Fix fall-through comment. + * p-exp.y (yylex): Fix fall-through comment. + * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through + comment. + * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment. + * mdebugread.c (parse_partial_symbols): Fix fall-through comment. + * jv-exp.y (yylex): Fix fall-through comment. + * go-exp.y (lex_one_token): Fix fall-through comment. + * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix + fall-through comment. + * f-exp.y (yylex): Fix fall-through comment. + * dwarf2read.c (process_die): Fix fall-through comments. + * dbxread.c (process_one_symbol): Fix fall-through comment. + * d-exp.y (lex_one_token): Fix fall-through comment. + * cp-name-parser.y (yylex): Fix fall-through comment. + * coffread.c (coff_symtab_read): Fix fall-through comment. + * c-exp.y (lex_one_token): Fix fall-through comment. + * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through + comment. + * arch/arm.c (arm_instruction_changes_pc): Fix fall-through + comment. + +2018-05-04 Tom Tromey <tom@tromey.com> + + PR python/22730: + * NEWS: Mention gdb.execute change. + * gdbcmd.h (execute_control_command): Don't declare. + * python/python.c (execute_gdb_command): Use read_command_lines_1, + execute_control_commands, execute_control_commands_to_string. + * cli/cli-script.h (execute_control_commands) + (execute_control_commands_to_string): Declare. + (execute_control_command): Add from_tty parameter. + * cli/cli-script.c (execute_control_commands) + (execute_control_commands_to_string): New functions. + (execute_user_command): Use execute_control_commands. + (execute_control_command_1): Add "from_tty" parameter. Update. + (execute_control_command): Likewise. + +2018-05-04 Tom Tromey <tom@tromey.com> + + PR python/22731: + * NEWS: Mention that breakpoint commands are writable. + * python/py-breakpoint.c (bppy_set_commands): New function. + (breakpoint_object_getset) <"commands">: Use it. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * tracepoint.c (actions_command): Update. + * mi/mi-cmd-break.c (mi_command_line_array) + (mi_command_line_array_cnt, mi_command_line_array_ptr) + (mi_read_next_line): Remove. + (mi_cmd_break_commands): Update. + * cli/cli-script.h (read_command_lines, read_command_lines_1): Use + function_view. + * cli/cli-script.c (get_command_line): Update. + (process_next_line): Use function_view. Constify. + (recurse_read_control_structure, read_command_lines) + (read_command_lines_1): Change argument types to function_view. + (do_define_command, document_command): Update. + * breakpoint.h (check_tracepoint_command): Don't declare. + * breakpoint.c (check_tracepoint_command): Remove. + (commands_command_1, create_tracepoint_from_upload): Update. + +2018-05-04 Tom Tromey <tom@tromey.com> + + PR gdb/11750: + * cli/cli-script.h (enum command_control_type) <define_control>: + New constant. + * cli/cli-script.c (multi_line_command_p): Handle define_control. + (build_command_line, execute_control_command_1) + (process_next_line): Likewise. + (do_define_command): New function, extracted from define_command. + (define_command): Use it. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * tracepoint.c (actions_command): Update. + * cli/cli-script.h (read_command_lines): Update. + * cli/cli-script.c (read_command_lines): Constify prompt_arg. + (MAX_TMPBUF): Remove define. + (define_command): Use string_printf. + (document_command): Likewise. + * breakpoint.c (commands_command_1): Update. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * top.c (execute_command): Update. + * cli/cli-script.h (print_command_lines): Now varargs. + * cli/cli-script.c (print_command_lines): Now varargs. + (execute_control_command_1) <case while_control, case if_control>: + Update. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * tracepoint.c (all_tracepoint_actions): Rename from + all_tracepoint_actions_and_cleanup. Change return type. + (actions_command, encode_actions_1, encode_actions) + (trace_dump_actions, tdump_command): Update. + * remote.c (remote_download_command_source): Update. + * python/python.c (gdbpy_eval_from_control_command) + (python_command, python_interactive_command): Update. + * mi/mi-cmd-break.c (mi_cmd_break_commands): Update. + * guile/guile.c (guile_command) + (gdbscm_eval_from_control_command, guile_command): Update. + * compile/compile.c (compile_code_command) + (compile_print_command, compile_to_object): Update. + * cli/cli-script.h (struct command_lines_deleter): New. + (counted_command_line): New typedef. + (struct command_line): Add constructor, destructor. + <body_list>: Remove. + <body_list_0, body_list_1>: New members. + (command_line_up): Remove typedef. + (read_command_lines, read_command_lines_1, get_command_line): + Update. + (copy_command_lines): Don't declare. + * cli/cli-script.c (build_command_line): Use "new". + (get_command_line): Return counted_command_line. + (print_command_lines, execute_user_command) + (execute_control_command_1, while_command, if_command): Update. + (realloc_body_list): Remove. + (process_next_line, recurse_read_control_structure): Update. + (read_command_lines, read_command_lines_1): Return counted_command_line. + (free_command_lines): Use "delete". + (copy_command_lines): Remove. + (define_command, document_command, show_user_1): Update. + * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now + a counted_command_line. + * breakpoint.h (counted_command_line): Remove typedef. + (breakpoint_set_commands): Update. + * breakpoint.c (check_no_tracepoint_commands) + (validate_commands_for_breakpoint): Update. + (breakpoint_set_commands): Change commands to be a + counted_command_line. + (commands_command_1, update_dprintf_command_list) + (create_tracepoint_from_upload): Update. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * cli/cli-decode.h (cmd_list_element): New constructor. + (~cmd_list_element): New destructor. + (struct cmd_list_element): Add initializers. + * cli/cli-decode.c (do_add_cmd): Use "new". + (delete_cmd): Use "delete". + +2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com> + Pedro Alves <palves@redhat.com> + + PR breakpoints/19806 and support for PR external/20207. + * NEWS: Mention Aarch64 watchpoint improvements. + * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed + watchpoints and PR external/20207 watchpoints. + * nat/aarch64-linux-hw-point.c + (kernel_supports_any_contiguous_range): New. + (aarch64_watchpoint_offset): New. + (aarch64_watchpoint_length): Support PR external/20207 watchpoints. + (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts. + (aarch64_point_is_aligned): Support PR external/20207 watchpoints. + (aarch64_align_watchpoint): New parameters aligned_offset_p and + next_addr_orig_p. Support PR external/20207 watchpoints. + (aarch64_downgrade_regs): New. + (aarch64_dr_state_insert_one_point): New parameters offset and + addr_orig. + (aarch64_dr_state_remove_one_point): Likewise. + (aarch64_handle_breakpoint): Update caller. + (aarch64_handle_aligned_watchpoint): Likewise. + (aarch64_handle_unaligned_watchpoint): Support addr_orig and + aligned_offset. + (aarch64_linux_set_debug_regs): Remove const from state. Call + aarch64_downgrade_regs. + (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp. + * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ... + (DR_CONTROL_MASK): ... this. + (struct aarch64_debug_reg_state): New field dr_addr_orig_wp. + (unsigned int aarch64_watchpoint_offset): New prototype. + (aarch64_linux_set_debug_regs): Remove const from state. + * utils.c (align_up, align_down): Move to ... + * common/common-utils.c (align_up, align_down): ... here. + * utils.h (align_up, align_down): Move to ... + * common/common-utils.h (align_up, align_down): ... here. + +2018-05-04 Joel Brobecker <brobecker@adacore.com> + + * sparc-tdep.c (sparc_structure_return_p): Re-implement to + match the ABI as summarized in GCC's gcc/config/sparc/sparc.c. + (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p. + Re-implement to match the ABI as summarized in GCC's + gcc/config/sparc/sparc.c. All callers updated. + (sparc32_store_arguments): Remove assertion. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * printcmd.c: Don't include tui.h. + (decode_format): Use skip_spaces. + +2018-05-04 Tom Tromey <tom@tromey.com> + + PR gdb/22619: + * printcmd.c (last_count): New global. + (x_command): Use saved count when repeating. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * nto-procfs.c (do_closedir_cleanup): Remove. + (procfs_pidlist): Use gdb_dir_up. + * procfs.c (do_closedir_cleanup): Remove. + (proc_update_threads): Use gdb_dir_up. + * common/filestuff.h (struct gdb_dir_deleter): New. + (gdb_dir_up): New typedef. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * ada-lang.c (print_mention_exception): Use std::string. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * ada-lang.c (create_excep_cond_exprs): Update. + (ada_exception_catchpoint_cond_string): Use std::string. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * ada-lang.c (xget_renaming_scope): Return std::string. + (old_renaming_is_invisible): Update. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr. + (target_bfd::target_bfd, target_bfd::~target_bfd): Update. + +2018-05-04 Ulrich Weigand <uweigand@de.ibm.com> + + * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error. + +2018-05-04 Tom Tromey <tom@tromey.com> + + * remote.c (remote_query_supported_append): Change type. + (remote_check_symbols): Update. + +2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com> + + PR gdb/11420 + * configure.ac: Prepend libpython. + * python/python-config.py: Likewise. + * configure: Regenerate. + +2018-05-03 Simon Marchi <simon.marchi@ericsson.com> + + * Makefile.in (%.c: %.l): Use -t instead of --stdout. + +2018-05-03 Pedro Alves <palves@redhat.com> + + * s390-linux-nat.c + (s390_linux_nat_target::have_continuable_watchpoint): Mark with + override. Write 'true' instead of '1'. + (s390_linux_nat_target::watchpoint_addr_within_range): Remove + declaration. + +2018-05-02 Pedro Alves <palves@redhat.com> + + * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use + add_inf_child_target. + * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use + add_inf_child_target. + * aix-thread.c (aix_thread_target_info): New. + (aix_thread_target) <shortname, longname, doc>: Delete. + <info>: New. + * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use + add_inf_child_target. + * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use + add_inf_child_target. + * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use + add_inf_child_target. + * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use + add_inf_child_target. + * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use + add_inf_child_target. + * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use + add_inf_child_target. + * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use + add_inf_child_target. + * arm-linux-nat.c (_initialize_arm_linux_nat): Use + add_inf_child_target. + * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use + add_inf_child_target. + * bfd-target.c (target_bfd_target_info): New. + (target_bfd) <shortname, longname, doc>: Delete. + <info>: New. + * bsd-kvm.c (bsd_kvm_target_info): New. + (bsd_kvm_target) <shortname, longname, doc>: Delete. + <info>: New. + (bsd_kvm_target::open): Rename to ... + (bsd_kvm_target_open): ... this. Adjust. + * bsd-uthread.c (bsd_uthread_target_info): New. + (bsd_uthread_target) <shortname, longname, doc>: Delete. + <info>: New. + * corefile.c (core_file_command): Adjust. + * corelow.c (core_target_info): New. + (core_target) <shortname, longname, doc>: Delete. + <info>: New. + (core_target::open): Rename to ... + (core_target_open): ... this. Adjust. + * ctf.c (ctf_target_info): New. + (ctf_target) <shortname, longname, doc>: Delete. + <info>: New. + (ctf_target::open): Rename to ... + (ctf_target_open): ... this. + (_initialize_ctf): Adjust. + * exec.c (exec_target_info): New. + (exec_target) <shortname, longname, doc>: Delete. + <info>: New. + (exec_target::open): Rename to ... + (exec_target_open): ... this. + * gdbcore.h (core_target_open): Declare. + * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target. + * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use + add_inf_child_target. + * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use + add_inf_child_target. + * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use + add_inf_child_target. + * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use + add_inf_child_target. + * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use + add_inf_child_target. + * i386-gnu-nat.c (_initialize_i386gnu_nat): Use + add_inf_child_target. + * i386-linux-nat.c (_initialize_i386_linux_nat): Use + add_inf_child_target. + * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use + add_inf_child_target. + * i386-obsd-nat.c (_initialize_i386obsd_nat): Use + add_inf_child_target. + * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use + add_inf_child_target. + * inf-child.c (inf_child_target_info): New. + (inf_child_target::info): New. + (inf_child_open_target): Remove 'target' parameter. Use + get_native_target instead. + (inf_child_target::open): Delete. + (add_inf_child_target): New. + * inf-child.h (inf_child_target) <shortname, longname, doc, open>: + Delete. + <info>: New. + (add_inf_child_target): Declare. + (inf_child_open_target): Declare. + * linux-thread-db.c (thread_db_target_info): New. + (thread_db_target) <shortname, longname, doc>: Delete. + <info>: New. + * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use + add_inf_child_target. + * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use + add_inf_child_target. + * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use + add_inf_child_target. + * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use + add_inf_child_target. + * make-target-delegates (print_class): Adjust. + * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use + add_inf_child_target. + * mips-linux-nat.c (_initialize_mips_linux_nat): Use + add_inf_child_target. + * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use + add_inf_child_target. + * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use + add_inf_child_target. + * nto-procfs.c (nto_native_target_info): New. + (nto_procfs_target_native) <shortname, longname, doc>: + Delete. + <info>: New. + (nto_procfs_target_info): New. + (nto_procfs_target_procfs) <shortname, longname, doc>: + Delete. + <info>: New. + (init_procfs_targets): Adjust. + * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use + add_inf_child_target. + * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use + add_inf_child_target. + * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use + add_inf_child_target. + * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use + add_inf_child_target. + * ravenscar-thread.c (ravenscar_target_info): New. + (ravenscar_thread_target) <shortname, longname, doc>: + Delete. + <info>: New. + * record-btrace.c (record_btrace_target_info): + (record_btrace_target) <shortname, longname, doc>: Delete. + <info>: New. + (record_btrace_target::open): Rename to ... + (record_btrace_target_open): ... this. Adjust. + * record-full.c (record_longname, record_doc): New. + (record_full_base_target) <shortname, longname, doc>: Delete. + <info>: New. + (record_full_target_info): New. + (record_full_target): <shortname>: Delete. + <info>: New. + (record_full_core_open_1, record_full_open_1): Update comments. + (record_full_base_target::open): Rename to ... + (record_full_open): ... this. + (cmd_record_full_restore): Update. + (_initialize_record_full): Update. + * remote-sim.c (remote_sim_target_info): New. + (gdbsim_target) <shortname, longname, doc>: Delete. + <info>: New. + (gdbsim_target::open): Rename to ... + (gdbsim_target_open): ... this. + (_initialize_remote_sim): Adjust. + * remote.c (remote_doc): New. + (remote_target_info): New. + (remote_target) <shortname, longname, doc>: Delete. + <info>: New. + (extended_remote_target_info): New. + (extended_remote_target) <shortname, longname, doc>: Delete. + <info>: New. + (remote_target::open_1): Make static. Adjust. + * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target. + * s390-linux-nat.c (_initialize_s390_nat): Use + add_inf_child_target. + * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use + add_inf_child_target. + * sol-thread.c (thread_db_target_info): New. + (sol_thread_target) <shortname, longname, doc>: Delete. + <info>: New. + * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use + add_inf_child_target. + * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use + add_inf_child_target. + * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use + add_inf_child_target. + * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use + add_inf_child_target. + * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use + add_inf_child_target. + * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use + add_inf_child_target. + * spu-linux-nat.c (_initialize_spu_nat): Use + add_inf_child_target. + * spu-multiarch.c (spu_multiarch_target_info): New. + (spu_multiarch_target) <shortname, longname, doc>: Delete. + <info>: New. + * target-delegates.c: Regenerate. + * target.c: Include <unordered_map>. + (target_ops_p): Delete. + (DEF_VEC_P(target_ops_p)): Delete. + (target_factories): New. + (test_target_info): New. + (test_target_ops::info): New. + (open_target): Adjust to use target_factories. + (add_target_with_completer): Rename to ... + (add_target): ... this. Change prototype. Register target_info + and open callback in target_factories. Register target_info in + command context instead of target_ops. + (add_target): Delete old implementation. + (add_deprecated_target_alias): Change prototype. Adjust. + (the_native_target): New. + (set_native_target, get_native_target): New. + (find_default_run_target): Use the_native_target. + (find_attach_target, find_run_target): Simplify. + (target_ops::open): Delete. + (dummy_target_info): New. + (dummy_target::shortname, dummy_target::longname) + (dummy_target::doc): Delete. + (dummy_target::info): New. + (debug_target::shortname, debug_target::longname) + (debug_target::doc): Delete. + (debug_target::info): New. + * target.h (struct target_info): New. + (target_ops::~target_ops): Add comment. + (target_ops::info): New. + (target_ops::shortname, target_ops::longname, target_ops::doc): No + longer virtual. Implement in terms of target_info. + (set_native_target, get_native_target): Declare. + (target_open_ftype): New. + (add_target, add_target_with_completer) + (add_deprecated_target_alias): Change prototype. + (test_target) <shortname, longname, doc>: Delete. + <info>: New. + * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use + add_inf_child_target. + * tracefile-tfile.c (tfile_target_info): New. + (tfile_target) <shortname, longname, doc>: Delete. + <info>: New. + (tfile_target::open): Rename to ... + (tfile_target_open): ... this. + (_initialize_tracefile_tfile): Adjust. + * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use + add_inf_child_target. + * windows-nat.c (_initialize_windows_nat): Use + add_inf_child_target. + * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use + add_inf_child_target. + +2018-05-02 Pedro Alves <palves@redhat.com> + + * linux-nat.h (linux_nat_target) <low_new_thread, + low_delete_thread, low_new_fork, low_forget_process, + low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>: + New virtual methods. + (linux_nat_set_new_thread, linux_nat_set_delete_thread) + (linux_nat_new_fork_ftype, linux_nat_set_new_fork) + (linux_nat_forget_process_ftype, linux_nat_set_forget_process) + (linux_nat_forget_process, linux_nat_set_siginfo_fixup) + (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event): + Delete. + * linux-fork.c (delete_fork): Adjust to call low method. + * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread) + (linux_nat_new_fork, linux_nat_forget_process_hook) + (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup) + (linux_nat_status_is_event): + (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp) + (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust + to call low method. + (sigtrap_is_event): Rename to ... + (linux_nat_target::low_status_is_event): ... this. + (linux_nat_set_status_is_event): Delete. + (save_stop_reason, linux_nat_wait_1) + (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call + low methods. + (linux_nat_set_new_thread, linux_nat_set_delete_thread) + (linux_nat_set_new_fork, linux_nat_set_forget_process) + (linux_nat_forget_process, linux_nat_set_siginfo_fixup) + (linux_nat_set_prepare_to_resume): Delete. + * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to + low virtual methods. + * amd64-linux-nat.c: Likewise. + * arm-linux-nat.c: Likewise. + * i386-linux-nat.c: Likewise. + * ia64-linux-nat.c: Likewise. + * mips-linux-nat.c: Likewise. + * ppc-linux-nat.c: Likewise. + * s390-linux-nat.c: Likewise. + * sparc64-linux-nat.c: Likewise. + * x86-linux-nat.c: Likewise. + * x86-linux-nat.h: Include "nat/x86-linux.h". + (x86_linux_nat_target) <low_new_fork, low_forget_process, + low_prepare_to_resume, low_new_thread, low_delete_thread>: + Override methods. + +2018-05-02 Pedro Alves <palves@redhat.com> + + * target.h (target_ops) + <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint, + stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint, + stopped_by_watchpoint, have_continuable_watchpoint, + stopped_data_address, watchpoint_addr_within_range, + can_accel_watchpoint_condition, can_run, thread_alive, + has_all_memory, has_memory, has_stack, has_registers, + has_execution, can_async_p, is_async_p, supports_non_stop, + always_non_stop_p, can_execute_reverse, supports_multi_process, + supports_enable_disable_tracepoint, + supports_disable_randomization, supports_string_tracing, + supports_evaluation_of_breakpoint_conditions, + can_run_breakpoint_commands, filesystem_is_local, + can_download_tracepoint, get_trace_state_variable_value, + set_trace_notes, get_tib_address, use_agent, can_use_agent, + record_is_replaying, record_will_replay, + augmented_libraries_svr4_read>: Adjust to return bool. + * aarch64-linux-nat.c: All implementations adjusted. + * aix-thread.c: All implementations adjusted. + * arm-linux-nat.c: All implementations adjusted. + * breakpoint.c: All implementations adjusted. + * bsd-kvm.c: All implementations adjusted. + * bsd-uthread.c: All implementations adjusted. + * corelow.c: All implementations adjusted. + * ctf.c: All implementations adjusted. + * darwin-nat.c: All implementations adjusted. + * darwin-nat.h: All implementations adjusted. + * exec.c: All implementations adjusted. + * fbsd-nat.c: All implementations adjusted. + * fbsd-nat.h: All implementations adjusted. + * gnu-nat.c: All implementations adjusted. + * gnu-nat.h: All implementations adjusted. + * go32-nat.c: All implementations adjusted. + * ia64-linux-nat.c: All implementations adjusted. + * inf-child.c: All implementations adjusted. + * inf-child.h: All implementations adjusted. + * inf-ptrace.c: All implementations adjusted. + * inf-ptrace.h: All implementations adjusted. + * linux-nat.c: All implementations adjusted. + * linux-nat.h: All implementations adjusted. + * mips-linux-nat.c: All implementations adjusted. + * nto-procfs.c: All implementations adjusted. + * ppc-linux-nat.c: All implementations adjusted. + * procfs.c: All implementations adjusted. + * ravenscar-thread.c: All implementations adjusted. + * record-btrace.c: All implementations adjusted. + * record-full.c: All implementations adjusted. + * remote-sim.c: All implementations adjusted. + * remote.c: All implementations adjusted. + * s390-linux-nat.c: All implementations adjusted. + * sol-thread.c: All implementations adjusted. + * spu-multiarch.c: All implementations adjusted. + * target-delegates.c: All implementations adjusted. + * target.c: All implementations adjusted. + * target.h: All implementations adjusted. + * tracefile-tfile.c: All implementations adjusted. + * tracefile.c: All implementations adjusted. + * tracefile.h: All implementations adjusted. + * windows-nat.c: All implementations adjusted. + * x86-linux-nat.h: All implementations adjusted. + * x86-nat.h: All implementations adjusted. + +2018-05-02 Pedro Alves <palves@redhat.com> + + * make-target-delegates (scan_target_h): Don't trim lines here. + Replace sequences of tabs and/or whitespace with a single + whitespace. + (top level, parsing methods): Trim each line before processing it + here. + +2018-05-02 Pedro Alves <palves@redhat.com> + John Baldwin <jhb@freebsd.org> + + * target.h (enum strata) <debug_stratum>: New. + (struct target_ops) <all delegation methods>: Replace by C++ + virtual methods, and drop "to_" prefix. All references updated + throughout. + <to_shortname, to_longname, to_doc, to_data, + to_have_steppable_watchpoint, to_have_continuable_watchpoint, + to_has_thread_control, to_attach_no_wait>: Delete, replaced by + virtual methods. All references updated throughout. + <can_attach, supports_terminal_ours, can_create_inferior, + get_thread_control_capabilities, attach_no_wait>: New + virtual methods. + <insert_breakpoint, remove_breakpoint>: Now + TARGET_DEFAULT_NORETURN methods. + <info_proc>: Now returns bool. + <to_magic>: Delete. + (OPS_MAGIC): Delete. + (current_target): Delete. All references replaced by references + to ... + (target_stack): ... this. New. + (target_shortname, target_longname): Adjust. + (target_can_run): Now a function declaration. + (default_child_has_all_memory, default_child_has_memory) + (default_child_has_stack, default_child_has_registers) + (default_child_has_execution): Remove target_ops parameter. + (complete_target_initialization): Delete. + (memory_breakpoint_target): New template class. + (test_target_ops): Refactor as a C++ class with virtual methods. + * make-target-delegates (NAME_PART): Tighten. + (POINTER_PART, CP_SYMBOL): New. + (SIMPLE_RETURN_PART): Reimplement. + (VEC_RETURN_PART): Expect less. + (RETURN_PART, VIRTUAL_PART): New. + (METHOD): Adjust to C++ virtual methods. + (scan_target_h): Remove reference to C99. + (dname): Output "target_ops::" prefix. + (write_function_header): Adjust to output a C++ class method. + (write_declaration): New. + (write_delegator): Adjust to output a C++ class method. + (tdname): Output "dummy_target::" prefix. + (write_tdefault, write_debugmethod): Adjust to output a C++ class + method. + (tdefault_names, debug_names): Delete. + (return_types, tdefaults, styles, argtypes_array): New. + (top level): All methods are delegators. + (print_class): New. + (top level): Print dummy_target and debug_target classes. + * target-delegates.c: Regenerate. + * target-debug.h (target_debug_print_enum_info_proc_what) + (target_debug_print_thread_control_capabilities) + (target_debug_print_thread_info_p): New. + * target.c (dummy_target): Delete. + (the_dummy_target, the_debug_target): New. + (target_stack): Now extern. + (set_targetdebug): Push/unpush debug target. + (default_child_has_all_memory, default_child_has_memory) + (default_child_has_stack, default_child_has_registers) + (default_child_has_execution): Remove target_ops parameter. + (complete_target_initialization): Delete. + (add_target_with_completer): No longer call + complete_target_initialization. + (target_supports_terminal_ours): Use regular delegation. + (update_current_target): Delete. + (push_target): No longer check magic number. Don't call + update_current_target. + (unpush_target): Don't call update_current_target. + (target_is_pushed): No longer check magic number. + (target_require_runnable): Skip for all stratums over + process_stratum. + (target_ops::info_proc): New. + (target_info_proc): Use find_target_at and + find_default_run_target. + (target_supports_disable_randomization): Use regular delegation. + (target_get_osdata): Use find_target_at. + (target_ops::open, target_ops::close, target_ops::can_attach) + (target_ops::attach, target_ops::can_create_inferior) + (target_ops::create_inferior, target_ops::can_run) + (target_can_run): New. + (default_fileio_target): Use regular delegation. + (target_ops::fileio_open, target_ops::fileio_pwrite) + (target_ops::fileio_pread, target_ops::fileio_fstat) + (target_ops::fileio_close, target_ops::fileio_unlink) + (target_ops::fileio_readlink): New. + (target_fileio_open_1, target_fileio_unlink) + (target_fileio_readlink): Always call the target method. Handle + FILEIO_ENOSYS. + (return_zero, return_zero_has_execution): Delete. + (init_dummy_target): Delete. + (dummy_target::dummy_target, dummy_target::shortname) + (dummy_target::longname, dummy_target::doc) + (debug_target::debug_target, debug_target::shortname) + (debug_target::longname, debug_target::doc): New. + (target_supports_delete_record): Use regular delegation. + (setup_target_debug): Delete. + (maintenance_print_target_stack): Skip debug_stratum. + (initialize_targets): Instantiate the_dummy_target and + the_debug_target. + * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to + use target_stack. + (target_auxv_search, fprint_target_auxv): Adjust. + (info_auxv_command): Adjust to use target_stack. + * auxv.h (target_auxv_parse): Remove 'ops' parameter. + * exceptions.c (print_flush): Handle a NULL target_stack. + * regcache.c (target_ops_no_register): Refactor as class with + virtual methods. + + * exec.c (exec_target): New class. + (exec_ops): Now an exec_target. + (exec_open, exec_close_1, exec_get_section_table) + (exec_xfer_partial, exec_files_info, exec_has_memory) + (exec_make_note_section): Refactor as exec_target methods. + (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops): + Delete. + (exec_target::find_memory_regions): New. + (_initialize_exec): Don't call init_exec_ops. + * gdbcore.h (exec_file_clear): Delete. + + * corefile.c (core_target): Delete. + (core_file_command): Adjust. + * corelow.c (core_target): New class. + (the_core_target): New. + (core_close): Remove target_ops parameter. + (core_close_cleanup): Adjust. + (core_target::close): New. + (core_open, core_detach, get_core_registers, core_files_info) + (core_xfer_partial, core_thread_alive, core_read_description) + (core_pid_to_str, core_thread_name, core_has_memory) + (core_has_stack, core_has_registers, core_info_proc): Rework as + core_target methods. + (ignore, core_remove_breakpoint, init_core_ops): Delete. + (_initialize_corelow): Initialize the_core_target. + * gdbcore.h (core_target): Delete. + (the_core_target): New. + + * ctf.c: (ctf_target): New class. + (ctf_ops): Now a ctf_target. + (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers) + (ctf_xfer_partial, ctf_get_trace_state_variable_value) + (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target + methods. + (init_ctf_ops): Delete. + (_initialize_ctf): Don't call it. + * tracefile-tfile.c (tfile_target): New class. + (tfile_ops): Now a tfile_target. + (tfile_open, tfile_close, tfile_files_info) + (tfile_get_tracepoint_status, tfile_trace_find) + (tfile_fetch_registers, tfile_xfer_partial) + (tfile_get_trace_state_variable_value, tfile_traceframe_info): + Refactor as tfile_target methods. + (tfile_xfer_partial_features): Remove target_ops parameter. + (init_tfile_ops): Delete. + (_initialize_tracefile_tfile): Don't call it. + * tracefile.c (tracefile_has_all_memory, tracefile_has_memory) + (tracefile_has_stack, tracefile_has_registers) + (tracefile_thread_alive, tracefile_get_trace_status): Refactor as + tracefile_target methods. + (init_tracefile_ops): Delete. + (tracefile_target::tracefile_target): New. + * tracefile.h: Include "target.h". + (tracefile_target): New class. + (init_tracefile_ops): Delete. + + * spu-multiarch.c (spu_multiarch_target): New class. + (spu_ops): Now a spu_multiarch_target. + (spu_thread_architecture, spu_region_ok_for_hw_watchpoint) + (spu_fetch_registers, spu_store_registers, spu_xfer_partial) + (spu_search_memory, spu_mourn_inferior): Refactor as + spu_multiarch_target methods. + (init_spu_ops): Delete. + (_initialize_spu_multiarch): Remove references to init_spu_ops, + complete_target_initialization. + + * ravenscar-thread.c (ravenscar_thread_target): New class. + (ravenscar_ops): Now a ravenscar_thread_target. + (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list) + (ravenscar_thread_alive, ravenscar_pid_to_str) + (ravenscar_fetch_registers, ravenscar_store_registers) + (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint) + (ravenscar_stopped_by_hw_breakpoint) + (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address) + (ravenscar_mourn_inferior, ravenscar_core_of_thread) + (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target + methods. + (init_ravenscar_thread_ops): Delete. + (_initialize_ravenscar): Remove references to + init_ravenscar_thread_ops and complete_target_initialization. + + * bsd-uthread.c (bsd_uthread_ops_hack): Delete. + (bsd_uthread_target): New class. + (bsd_uthread_ops): Now a bsd_uthread_target. + (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops. + (bsd_uthread_close, bsd_uthread_mourn_inferior) + (bsd_uthread_fetch_registers, bsd_uthread_store_registers) + (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive) + (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info) + (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods. + (bsd_uthread_target): Delete function. + (_initialize_bsd_uthread): Remove reference to + complete_target_initialization. + + * bfd-target.c (target_bfd_data): Delete. Fields folded into ... + (target_bfd): ... this new class. + (target_bfd_xfer_partial, target_bfd_get_section_table) + (target_bfd_close): Refactor as target_bfd methods. + (target_bfd::~target_bfd): New. + (target_bfd_reopen): Adjust. + (target_bfd::close): New. + + * record-btrace.c (record_btrace_target): New class. + (record_btrace_ops): Now a record_btrace_target. + (record_btrace_open, record_btrace_stop_recording) + (record_btrace_disconnect, record_btrace_close) + (record_btrace_async, record_btrace_info) + (record_btrace_insn_history, record_btrace_insn_history_range) + (record_btrace_insn_history_from, record_btrace_call_history) + (record_btrace_call_history_range) + (record_btrace_call_history_from, record_btrace_record_method) + (record_btrace_is_replaying, record_btrace_will_replay) + (record_btrace_xfer_partial, record_btrace_insert_breakpoint) + (record_btrace_remove_breakpoint, record_btrace_fetch_registers) + (record_btrace_store_registers, record_btrace_prepare_to_store) + (record_btrace_to_get_unwinder) + (record_btrace_to_get_tailcall_unwinder, record_btrace_resume) + (record_btrace_commit_resume, record_btrace_wait) + (record_btrace_stop, record_btrace_can_execute_reverse) + (record_btrace_stopped_by_sw_breakpoint) + (record_btrace_supports_stopped_by_sw_breakpoint) + (record_btrace_stopped_by_hw_breakpoint) + (record_btrace_supports_stopped_by_hw_breakpoint) + (record_btrace_update_thread_list, record_btrace_thread_alive) + (record_btrace_goto_begin, record_btrace_goto_end) + (record_btrace_goto, record_btrace_stop_replaying_all) + (record_btrace_execution_direction) + (record_btrace_prepare_to_generate_core) + (record_btrace_done_generating_core): Refactor as + record_btrace_target methods. + (init_record_btrace_ops): Delete. + (_initialize_record_btrace): Remove reference to + init_record_btrace_ops. + * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to + the execution_direction global. + (record_full_base_target, record_full_target) + (record_full_core_target): New classes. + (record_full_ops): Now a record_full_target. + (record_full_core_ops): Now a record_full_core_target. + (record_full_target::detach, record_full_target::disconnect) + (record_full_core_target::disconnect) + (record_full_target::mourn_inferior, record_full_target::kill): + New. + (record_full_open, record_full_close, record_full_async): Refactor + as methods of the record_full_base_target class. + (record_full_resume, record_full_commit_resume): Refactor + as methods of the record_full_target class. + (record_full_wait, record_full_stopped_by_watchpoint) + (record_full_stopped_data_address) + (record_full_stopped_by_sw_breakpoint) + (record_full_supports_stopped_by_sw_breakpoint) + (record_full_stopped_by_hw_breakpoint) + (record_full_supports_stopped_by_hw_breakpoint): Refactor as + methods of the record_full_base_target class. + (record_full_store_registers, record_full_xfer_partial) + (record_full_insert_breakpoint, record_full_remove_breakpoint): + Refactor as methods of the record_full_target class. + (record_full_can_execute_reverse, record_full_get_bookmark) + (record_full_goto_bookmark, record_full_execution_direction) + (record_full_record_method, record_full_info, record_full_delete) + (record_full_is_replaying, record_full_will_replay) + (record_full_goto_begin, record_full_goto_end, record_full_goto) + (record_full_stop_replaying): Refactor as methods of the + record_full_base_target class. + (record_full_core_resume, record_full_core_kill) + (record_full_core_fetch_registers) + (record_full_core_prepare_to_store) + (record_full_core_store_registers, record_full_core_xfer_partial) + (record_full_core_insert_breakpoint) + (record_full_core_remove_breakpoint) + (record_full_core_has_execution): Refactor + as methods of the record_full_core_target class. + (record_full_base_target::supports_delete_record): New. + (init_record_full_ops): Delete. + (init_record_full_core_ops): Delete. + (record_full_save): Refactor as method of the + record_full_base_target class. + (_initialize_record_full): Remove references to + init_record_full_ops and init_record_full_core_ops. + + * remote.c (remote_target, extended_remote_target): New classes. + (remote_ops): Now a remote_target. + (extended_remote_ops): Now an extended_remote_target. + (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint) + (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint) + (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint) + (remote_pass_signals, remote_set_syscall_catchpoint) + (remote_program_signals, ) + (remote_thread_always_alive): Remove target_ops parameter. + (remote_thread_alive, remote_thread_name) + (remote_update_thread_list, remote_threads_extra_info) + (remote_static_tracepoint_marker_at) + (remote_static_tracepoint_markers_by_strid) + (remote_get_ada_task_ptid, remote_close, remote_start_remote) + (remote_open): Refactor as methods of remote_target. + (extended_remote_open, extended_remote_detach) + (extended_remote_attach, extended_remote_post_attach): + (extended_remote_supports_disable_randomization) + (extended_remote_create_inferior): : Refactor as method of + extended_remote_target. + (remote_set_permissions, remote_open_1, remote_detach) + (remote_follow_fork, remote_follow_exec, remote_disconnect) + (remote_resume, remote_commit_resume, remote_stop) + (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior) + (remote_terminal_ours, remote_wait, remote_fetch_registers) + (remote_prepare_to_store, remote_store_registers) + (remote_flash_erase, remote_flash_done, remote_files_info) + (remote_kill, remote_mourn, remote_insert_breakpoint) + (remote_remove_breakpoint, remote_insert_watchpoint) + (remote_watchpoint_addr_within_range) + (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint) + (remote_check_watch_resources, remote_stopped_by_sw_breakpoint) + (remote_supports_stopped_by_sw_breakpoint) + (remote_stopped_by_hw_breakpoint) + (remote_supports_stopped_by_hw_breakpoint) + (remote_stopped_by_watchpoint, remote_stopped_data_address) + (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint) + (remote_verify_memory): Refactor as methods of remote_target. + (remote_write_qxfer, remote_read_qxfer): Remove target_ops + parameter. + (remote_xfer_partial, remote_get_memory_xfer_limit) + (remote_search_memory, remote_rcmd, remote_memory_map) + (remote_pid_to_str, remote_get_thread_local_address) + (remote_get_tib_address, remote_read_description): Refactor as + methods of remote_target. + (remote_target::fileio_open, remote_target::fileio_pwrite) + (remote_target::fileio_pread, remote_target::fileio_close): New. + (remote_hostio_readlink, remote_hostio_fstat) + (remote_filesystem_is_local, remote_can_execute_reverse) + (remote_supports_non_stop, remote_supports_disable_randomization) + (remote_supports_multi_process, remote_supports_cond_breakpoints) + (remote_supports_enable_disable_tracepoint) + (remote_supports_string_tracing) + (remote_can_run_breakpoint_commands, remote_trace_init) + (remote_download_tracepoint, remote_can_download_tracepoint) + (remote_download_trace_state_variable, remote_enable_tracepoint) + (remote_disable_tracepoint, remote_trace_set_readonly_regions) + (remote_trace_start, remote_get_trace_status) + (remote_get_tracepoint_status, remote_trace_stop) + (remote_trace_find, remote_get_trace_state_variable_value) + (remote_save_trace_data, remote_get_raw_trace_data) + (remote_set_disconnected_tracing, remote_core_of_thread) + (remote_set_circular_trace_buffer, remote_traceframe_info) + (remote_get_min_fast_tracepoint_insn_len) + (remote_set_trace_buffer_size, remote_set_trace_notes) + (remote_use_agent, remote_can_use_agent, remote_enable_btrace) + (remote_disable_btrace, remote_teardown_btrace) + (remote_read_btrace, remote_btrace_conf) + (remote_augmented_libraries_svr4_read, remote_load) + (remote_pid_to_exec_file, remote_can_do_single_step) + (remote_execution_direction, remote_thread_handle_to_thread_info): + Refactor as methods of remote_target. + (init_remote_ops, init_extended_remote_ops): Delete. + (remote_can_async_p, remote_is_async_p, remote_async) + (remote_thread_events, remote_upload_tracepoints) + (remote_upload_trace_state_variables): Refactor as methods of + remote_target. + (_initialize_remote): Remove references to init_remote_ops and + init_extended_remote_ops. + + * remote-sim.c (gdbsim_target): New class. + (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill) + (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close) + (gdbsim_detach, gdbsim_resume, gdbsim_interrupt) + (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial) + (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive) + (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory): + Refactor as methods of gdbsim_target. + (gdbsim_ops): Now a gdbsim_target. + (init_gdbsim_ops): Delete. + (gdbsim_cntrl_c): Adjust. + (_initialize_remote_sim): Remove reference to init_gdbsim_ops. + + * amd64-linux-nat.c (amd64_linux_nat_target): New class. + (the_amd64_linux_nat_target): New. + (amd64_linux_fetch_inferior_registers) + (amd64_linux_store_inferior_registers): Refactor as methods of + amd64_linux_nat_target. + (_initialize_amd64_linux_nat): Adjust. Set linux_target. + * i386-linux-nat.c: Don't include "linux-nat.h". + (i386_linux_nat_target): New class. + (the_i386_linux_nat_target): New. + (i386_linux_fetch_inferior_registers) + (i386_linux_store_inferior_registers, i386_linux_resume): Refactor + as methods of i386_linux_nat_target. + (_initialize_i386_linux_nat): Adjust. Set linux_target. + * inf-child.c (inf_child_ops): Delete. + (inf_child_fetch_inferior_registers) + (inf_child_store_inferior_registers): Delete. + (inf_child_post_attach, inf_child_prepare_to_store): Refactor as + methods of inf_child_target. + (inf_child_target::supports_terminal_ours) + (inf_child_target::terminal_init) + (inf_child_target::terminal_inferior) + (inf_child_target::terminal_ours_for_output) + (inf_child_target::terminal_ours, inf_child_target::interrupt) + (inf_child_target::pass_ctrlc, inf_child_target::terminal_info): + New. + (inf_child_open, inf_child_disconnect, inf_child_close) + (inf_child_mourn_inferior, inf_child_maybe_unpush_target) + (inf_child_post_startup_inferior, inf_child_can_run) + (inf_child_pid_to_exec_file): Refactor as methods of + inf_child_target. + (inf_child_follow_fork): Delete. + (inf_child_target::can_create_inferior) + (inf_child_target::can_attach): New. + (inf_child_target::has_all_memory, inf_child_target::has_memory) + (inf_child_target::has_stack, inf_child_target::has_registers) + (inf_child_target::has_execution): New. + (inf_child_fileio_open, inf_child_fileio_pwrite) + (inf_child_fileio_pread, inf_child_fileio_fstat) + (inf_child_fileio_close, inf_child_fileio_unlink) + (inf_child_fileio_readlink, inf_child_use_agent) + (inf_child_can_use_agent): Refactor as methods of + inf_child_target. + (return_zero, inf_child_target): Delete. + (inf_child_target::inf_child_target): New. + * inf-child.h: Include "target.h". + (inf_child_target): Delete function prototype. + (inf_child_target): New class. + (inf_child_open_target, inf_child_mourn_inferior) + (inf_child_maybe_unpush_target): Delete. + * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New. + (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint) + (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior) + (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior) + (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach) + (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume) + (inf_ptrace_wait, inf_ptrace_xfer_partial) + (inf_ptrace_thread_alive, inf_ptrace_files_info) + (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as + methods of inf_ptrace_target. + (inf_ptrace_target): Delete function. + * inf-ptrace.h: Include "inf-child.h". + (inf_ptrace_target): Delete function declaration. + (inf_ptrace_target): New class. + (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete. + * linux-nat.c (linux_target): New. + (linux_ops, linux_ops_saved, super_xfer_partial): Delete. + (linux_nat_target::~linux_nat_target): New. + (linux_child_post_attach, linux_child_post_startup_inferior) + (linux_child_follow_fork, linux_child_insert_fork_catchpoint) + (linux_child_remove_fork_catchpoint) + (linux_child_insert_vfork_catchpoint) + (linux_child_remove_vfork_catchpoint) + (linux_child_insert_exec_catchpoint) + (linux_child_remove_exec_catchpoint) + (linux_child_set_syscall_catchpoint, linux_nat_pass_signals) + (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach) + (linux_nat_resume, linux_nat_stopped_by_watchpoint) + (linux_nat_stopped_data_address) + (linux_nat_stopped_by_sw_breakpoint) + (linux_nat_supports_stopped_by_sw_breakpoint) + (linux_nat_stopped_by_hw_breakpoint) + (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait) + (linux_nat_kill, linux_nat_mourn_inferior) + (linux_nat_xfer_partial, linux_nat_thread_alive) + (linux_nat_update_thread_list, linux_nat_pid_to_str) + (linux_nat_thread_name, linux_child_pid_to_exec_file) + (linux_child_static_tracepoint_markers_by_strid) + (linux_nat_is_async_p, linux_nat_can_async_p) + (linux_nat_supports_non_stop, linux_nat_always_non_stop_p) + (linux_nat_supports_multi_process) + (linux_nat_supports_disable_randomization, linux_nat_async) + (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space) + (linux_nat_core_of_thread, linux_nat_filesystem_is_local) + (linux_nat_fileio_open, linux_nat_fileio_readlink) + (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as + methods of linux_nat_target. + (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial) + (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops + parameter. + (check_stopped_by_watchpoint): Adjust. + (linux_xfer_partial): Delete. + (linux_target_install_ops, linux_target, linux_nat_add_target): + Delete. + (linux_nat_target::linux_nat_target): New. + * linux-nat.h: Include "inf-ptrace.h". + (linux_nat_target): New. + (linux_target, linux_target_install_ops, linux_nat_add_target): + Delete function declarations. + (linux_target): Declare global. + * linux-thread-db.c (thread_db_target): New. + (thread_db_target::thread_db_target): New. + (thread_db_ops): Delete. + (the_thread_db_target): New. + (thread_db_detach, thread_db_wait, thread_db_mourn_inferior) + (thread_db_update_thread_list, thread_db_pid_to_str) + (thread_db_extra_thread_info) + (thread_db_thread_handle_to_thread_info) + (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid) + (thread_db_resume): Refactor as methods of thread_db_target. + (init_thread_db_ops): Delete. + (_initialize_thread_db): Remove reference to init_thread_db_ops. + * x86-linux-nat.c: Don't include "linux-nat.h". + (super_post_startup_inferior): Delete. + (x86_linux_nat_target::~x86_linux_nat_target): New. + (x86_linux_child_post_startup_inferior) + (x86_linux_read_description, x86_linux_enable_btrace) + (x86_linux_disable_btrace, x86_linux_teardown_btrace) + (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as + methods of x86_linux_nat_target. + (x86_linux_create_target): Delete. Bits folded ... + (x86_linux_add_target): ... here. Now takes a linux_nat_target + pointer. + * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h". + (x86_linux_nat_target): New class. + (x86_linux_create_target): Delete. + (x86_linux_add_target): Now takes a linux_nat_target pointer. + * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint) + (x86_region_ok_for_watchpoint, x86_stopped_data_address) + (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint) + (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint) + (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and + make extern. + (x86_use_watchpoints): Delete. + * x86-nat.h: Include "breakpoint.h" and "target.h". + (x86_use_watchpoints): Delete. + (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint) + (x86_stopped_by_watchpoint, x86_stopped_data_address) + (x86_insert_watchpoint, x86_remove_watchpoint) + (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint) + (x86_stopped_by_hw_breakpoint): New declarations. + (x86_nat_target): New template class. + + * ppc-linux-nat.c (ppc_linux_nat_target): New class. + (the_ppc_linux_nat_target): New. + (ppc_linux_fetch_inferior_registers) + (ppc_linux_can_use_hw_breakpoint) + (ppc_linux_region_ok_for_hw_watchpoint) + (ppc_linux_ranged_break_num_registers) + (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint) + (ppc_linux_insert_mask_watchpoint) + (ppc_linux_remove_mask_watchpoint) + (ppc_linux_can_accel_watchpoint_condition) + (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint) + (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint) + (ppc_linux_watchpoint_addr_within_range) + (ppc_linux_masked_watch_num_registers) + (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse) + (ppc_linux_read_description): Refactor as methods of + ppc_linux_nat_target. + (_initialize_ppc_linux_nat): Adjust. Set linux_target. + + * procfs.c (procfs_xfer_partial): Delete forward declaration. + (procfs_target): New class. + (the_procfs_target): New. + (procfs_target): Delete function. + (procfs_auxv_parse, procfs_attach, procfs_detach) + (procfs_fetch_registers, procfs_store_registers, procfs_wait) + (procfs_xfer_partial, procfs_resume, procfs_pass_signals) + (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior) + (procfs_create_inferior, procfs_update_thread_list) + (procfs_thread_alive, procfs_pid_to_str) + (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint) + (procfs_stopped_data_address, procfs_insert_watchpoint) + (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint) + (proc_find_memory_regions, procfs_info_proc) + (procfs_make_note_section): Refactor as methods of procfs_target. + (_initialize_procfs): Adjust. + * sol-thread.c (sol_thread_target): New class. + (sol_thread_ops): Now a sol_thread_target. + (sol_thread_detach, sol_thread_resume, sol_thread_wait) + (sol_thread_fetch_registers, sol_thread_store_registers) + (sol_thread_xfer_partial, sol_thread_mourn_inferior) + (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list) + (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target. + (init_sol_thread_ops): Delete. + (_initialize_sol_thread): Adjust. Remove references to + init_sol_thread_ops and complete_target_initialization. + + * windows-nat.c (windows_nat_target): New class. + (windows_fetch_inferior_registers) + (windows_store_inferior_registers, windows_resume, windows_wait) + (windows_attach, windows_detach, windows_pid_to_exec_file) + (windows_files_info, windows_create_inferior) + (windows_mourn_inferior, windows_interrupt, windows_kill_inferior) + (windows_close, windows_pid_to_str, windows_xfer_partial) + (windows_get_tib_address, windows_get_ada_task_ptid) + (windows_thread_name, windows_thread_alive): Refactor as + windows_nat_target methods. + (do_initial_windows_stuff): Adjust. + (windows_target): Delete function. + (_initialize_windows_nat): Adjust. + + * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt) + (darwin_mourn_inferior, darwin_kill_inferior) + (darwin_create_inferior, darwin_attach, darwin_detach) + (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial) + (darwin_pid_to_exec_file, darwin_get_ada_task_ptid) + (darwin_supports_multi_process): Refactor as darwin_nat_target + methods. + (darwin_resume_to, darwin_files_info): Delete. + (_initialize_darwin_inferior): Rename to ... + (_initialize_darwin_nat): ... this. Adjust to C++ification. + * darwin-nat.h: Include "inf-child.h". + (darwin_nat_target): New class. + (darwin_complete_target): Delete. + * i386-darwin-nat.c (i386_darwin_nat_target): New class. + (darwin_target): New. + (i386_darwin_fetch_inferior_registers) + (i386_darwin_store_inferior_registers): Refactor as methods of + darwin_nat_target. + (darwin_complete_target): Delete, with ... + (_initialize_i386_darwin_nat): ... bits factored out here. + + * alpha-linux-nat.c (alpha_linux_nat_target): New class. + (the_alpha_linux_nat_target): New. + (alpha_linux_register_u_offset): Refactor as + alpha_linux_nat_target method. + (_initialize_alpha_linux_nat): Adjust. + * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete. + (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) + (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as + methods of linux_nat_trad_target. + (linux_trad_target): Delete. + * linux-nat-trad.h (linux_trad_target): Delete function. + (linux_nat_trad_target): New class. + * mips-linux-nat.c (mips_linux_nat_target): New class. + (super_fetch_registers, super_store_registers, super_close): + Delete. + (the_mips_linux_nat_target): New. + (mips64_linux_regsets_fetch_registers) + (mips64_linux_regsets_store_registers) + (mips64_linux_fetch_registers, mips64_linux_store_registers) + (mips_linux_register_u_offset, mips_linux_read_description) + (mips_linux_can_use_hw_breakpoint) + (mips_linux_stopped_by_watchpoint) + (mips_linux_stopped_data_address) + (mips_linux_region_ok_for_hw_watchpoint) + (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint) + (mips_linux_close): Refactor as methods of mips_linux_nat. + (_initialize_mips_linux_nat): Adjust to C++ification. + + * aix-thread.c (aix_thread_target): New class. + (aix_thread_ops): Now an aix_thread_target. + (aix_thread_detach, aix_thread_resume, aix_thread_wait) + (aix_thread_fetch_registers, aix_thread_store_registers) + (aix_thread_xfer_partial, aix_thread_mourn_inferior) + (aix_thread_thread_alive, aix_thread_pid_to_str) + (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid): + Refactor as methods of aix_thread_target. + (init_aix_thread_ops): Delete. + (_initialize_aix_thread): Remove references to init_aix_thread_ops + and complete_target_initialization. + * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete. + (rs6000_nat_target): New class. + (the_rs6000_nat_target): New. + (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers) + (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior) + (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods. + (super_create_inferior): Delete. + (_initialize_rs6000_nat): Adjust to C++ification. + + * arm-linux-nat.c (arm_linux_nat_target): New class. + (the_arm_linux_nat_target): New. + (arm_linux_fetch_inferior_registers) + (arm_linux_store_inferior_registers, arm_linux_read_description) + (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint) + (arm_linux_remove_hw_breakpoint) + (arm_linux_region_ok_for_hw_watchpoint) + (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint) + (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint) + (arm_linux_watchpoint_addr_within_range): Refactor as methods of + arm_linux_nat_target. + (_initialize_arm_linux_nat): Adjust to C++ification. + + * aarch64-linux-nat.c (aarch64_linux_nat_target): New class. + (the_aarch64_linux_nat_target): New. + (aarch64_linux_fetch_inferior_registers) + (aarch64_linux_store_inferior_registers) + (aarch64_linux_child_post_startup_inferior) + (aarch64_linux_read_description) + (aarch64_linux_can_use_hw_breakpoint) + (aarch64_linux_insert_hw_breakpoint) + (aarch64_linux_remove_hw_breakpoint) + (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint) + (aarch64_linux_region_ok_for_hw_watchpoint) + (aarch64_linux_stopped_data_address) + (aarch64_linux_stopped_by_watchpoint) + (aarch64_linux_watchpoint_addr_within_range) + (aarch64_linux_can_do_single_step): Refactor as methods of + aarch64_linux_nat_target. + (super_post_startup_inferior): Delete. + (_initialize_aarch64_linux_nat): Adjust to C++ification. + + * hppa-linux-nat.c (hppa_linux_nat_target): New class. + (the_hppa_linux_nat_target): New. + (hppa_linux_fetch_inferior_registers) + (hppa_linux_store_inferior_registers): Refactor as methods of + hppa_linux_nat_target. + (_initialize_hppa_linux_nat): Adjust to C++ification. + + * ia64-linux-nat.c (ia64_linux_nat_target): New class. + (the_ia64_linux_nat_target): New. + (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint) + (ia64_linux_stopped_data_address) + (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers) + (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as + ia64_linux_nat_target methods. + (super_xfer_partial): Delete. + (_initialize_ia64_linux_nat): Adjust to C++ification. + + * m32r-linux-nat.c (m32r_linux_nat_target): New class. + (the_m32r_linux_nat_target): New. + (m32r_linux_fetch_inferior_registers) + (m32r_linux_store_inferior_registers): Refactor as + m32r_linux_nat_target methods. + (_initialize_m32r_linux_nat): Adjust to C++ification. + + * m68k-linux-nat.c (m68k_linux_nat_target): New class. + (the_m68k_linux_nat_target): New. + (m68k_linux_fetch_inferior_registers) + (m68k_linux_store_inferior_registers): Refactor as + m68k_linux_nat_target methods. + (_initialize_m68k_linux_nat): Adjust to C++ification. + + * s390-linux-nat.c (s390_linux_nat_target): New class. + (the_s390_linux_nat_target): New. + (s390_linux_fetch_inferior_registers) + (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint) + (s390_insert_watchpoint, s390_remove_watchpoint) + (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint) + (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint) + (s390_auxv_parse, s390_read_description): Refactor as methods of + s390_linux_nat_target. + (_initialize_s390_nat): Adjust to C++ification. + + * sparc-linux-nat.c (sparc_linux_nat_target): New class. + (the_sparc_linux_nat_target): New. + (_initialize_sparc_linux_nat): Adjust to C++ification. + * sparc-nat.c (sparc_fetch_inferior_registers) + (sparc_store_inferior_registers): Remove target_ops parameter. + * sparc-nat.h (sparc_fetch_inferior_registers) + (sparc_store_inferior_registers): Remove target_ops parameter. + * sparc64-linux-nat.c (sparc64_linux_nat_target): New class. + (the_sparc64_linux_nat_target): New. + (_initialize_sparc64_linux_nat): Adjust to C++ification. + + * spu-linux-nat.c (spu_linux_nat_target): New class. + (the_spu_linux_nat_target): New. + (spu_child_post_startup_inferior, spu_child_post_attach) + (spu_child_wait, spu_fetch_inferior_registers) + (spu_store_inferior_registers, spu_xfer_partial) + (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target + methods. + (_initialize_spu_nat): Adjust to C++ification. + + * tilegx-linux-nat.c (tilegx_linux_nat_target): New class. + (the_tilegx_linux_nat_target): New. + (fetch_inferior_registers, store_inferior_registers): + Refactor as methods. + (_initialize_tile_linux_nat): Adjust to C++ification. + + * xtensa-linux-nat.c (xtensa_linux_nat_target): New class. + (the_xtensa_linux_nat_target): New. + (xtensa_linux_fetch_inferior_registers) + (xtensa_linux_store_inferior_registers): Refactor as + xtensa_linux_nat_target methods. + (_initialize_xtensa_linux_nat): Adjust to C++ification. + + * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete. + (fbsd_pid_to_exec_file, fbsd_find_memory_regions) + (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial) + (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name) + (fbsd_update_thread_list, fbsd_resume, fbsd_wait) + (fbsd_stopped_by_sw_breakpoint) + (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork) + (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint) + (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint) + (fbsd_post_startup_inferior, fbsd_post_attach) + (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint) + (fbsd_set_syscall_catchpoint) + (super_xfer_partial, super_resume, super_wait) + (fbsd_supports_stopped_by_hw_breakpoint): Delete. + (fbsd_handle_debug_trap): Remove target_ops parameter. + (fbsd_nat_add_target): Delete. + * fbsd-nat.h: Include "inf-ptrace.h". + (fbsd_nat_add_target): Delete. + (USE_SIGTRAP_SIGINFO): Define. + (fbsd_nat_target): New class. + + * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers) + (amd64bsd_store_inferior_registers): Remove target_ops parameter. + (amd64bsd_target): Delete. + * amd64-bsd-nat.h: New file. + * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of + "x86-bsd-nat.h". + (amd64_fbsd_nat_target): New class. + (the_amd64_fbsd_nat_target): New. + (amd64fbsd_read_description): Refactor as method of + amd64_fbsd_nat_target. + (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. + (_initialize_amd64fbsd_nat): Adjust to C++ification. + * amd64-nat.h (amd64bsd_target): Delete function declaration. + * i386-bsd-nat.c (i386bsd_fetch_inferior_registers) + (i386bsd_store_inferior_registers): Remove target_ops parameter. + (i386bsd_target): Delete. + * i386-bsd-nat.h (i386bsd_target): Delete function declaration. + (i386bsd_fetch_inferior_registers) + (i386bsd_store_inferior_registers): Declare. + (i386_bsd_nat_target): New class. + * i386-fbsd-nat.c (i386_fbsd_nat_target): New class. + (the_i386_fbsd_nat_target): New. + (i386fbsd_resume, i386fbsd_read_description): Refactor as + i386_fbsd_nat_target methods. + (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New. + (_initialize_i386fbsd_nat): Adjust to C++ification. + * x86-bsd-nat.c (super_mourn_inferior): Delete. + (x86bsd_mourn_inferior, x86bsd_target): Delete. + (_initialize_x86_bsd_nat): Adjust to C++ification. + * x86-bsd-nat.h: Include "x86-nat.h". + (x86bsd_target): Delete declaration. + (x86bsd_nat_target): New class. + + * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class. + (the_aarch64_fbsd_nat_target): New. + (aarch64_fbsd_fetch_inferior_registers) + (aarch64_fbsd_store_inferior_registers): Refactor as methods of + aarch64_fbsd_nat_target. + (_initialize_aarch64_fbsd_nat): Adjust to C++ification. + * alpha-bsd-nat.c (alpha_bsd_nat_target): New class. + (the_alpha_bsd_nat_target): New. + (alphabsd_fetch_inferior_registers) + (alphabsd_store_inferior_registers): Refactor as + alpha_bsd_nat_target methods. + (_initialize_alphabsd_nat): Refactor as methods of + alpha_bsd_nat_target. + * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h". + (the_amd64_nbsd_nat_target): New. + (_initialize_amd64nbsd_nat): Adjust to C++ification. + * amd64-obsd-nat.c: Include "amd64-bsd-nat.h". + (the_amd64_obsd_nat_target): New. + (_initialize_amd64obsd_nat): Adjust to C++ification. + * arm-fbsd-nat.c (arm_fbsd_nat_target): New. + (the_arm_fbsd_nat_target): New. + (arm_fbsd_fetch_inferior_registers) + (arm_fbsd_store_inferior_registers, arm_fbsd_read_description): + (_initialize_arm_fbsd_nat): Refactor as methods of + arm_fbsd_nat_target. + (_initialize_arm_fbsd_nat): Adjust to C++ification. + * arm-nbsd-nat.c (arm_netbsd_nat_target): New class. + (the_arm_netbsd_nat_target): New. + (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as + arm_netbsd_nat_target. + (_initialize_arm_netbsd_nat): Adjust to C++ification. + * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class. + (the_hppa_nbsd_nat_target): New. + (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as + hppa_nbsd_nat_target methods. + (_initialize_hppanbsd_nat): Adjust to C++ification. + * hppa-obsd-nat.c (hppa_obsd_nat_target): New class. + (the_hppa_obsd_nat_target): New. + (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as + methods of hppa_obsd_nat_target. + (_initialize_hppaobsd_nat): Adjust to C++ification. Use + add_target. + * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New. + (_initialize_i386nbsd_nat): Adjust to C++ification. Use + add_target. + * i386-obsd-nat.c (the_i386_obsd_nat_target): New. + (_initialize_i386obsd_nat): Use add_target. + * m68k-bsd-nat.c (m68k_bsd_nat_target): New class. + (the_m68k_bsd_nat_target): New. + (m68kbsd_fetch_inferior_registers) + (m68kbsd_store_inferior_registers): Refactor as methods of + m68k_bsd_nat_target. + (_initialize_m68kbsd_nat): Adjust to C++ification. + * mips-fbsd-nat.c (mips_fbsd_nat_target): New class. + (the_mips_fbsd_nat_target): New. + (mips_fbsd_fetch_inferior_registers) + (mips_fbsd_store_inferior_registers): Refactor as methods of + mips_fbsd_nat_target. + (_initialize_mips_fbsd_nat): Adjust to C++ification. Use + add_target. + * mips-nbsd-nat.c (mips_nbsd_nat_target): New class. + (the_mips_nbsd_nat_target): New. + (mipsnbsd_fetch_inferior_registers) + (mipsnbsd_store_inferior_registers): Refactor as methods of + mips_nbsd_nat_target. + (_initialize_mipsnbsd_nat): Adjust to C++ification. + * mips64-obsd-nat.c (mips64_obsd_nat_target): New class. + (the_mips64_obsd_nat_target): New. + (mips64obsd_fetch_inferior_registers) + (mips64obsd_store_inferior_registers): Refactor as methods of + mips64_obsd_nat_target. + (_initialize_mips64obsd_nat): Adjust to C++ification. Use + add_target. + * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of + nbsd_nat_target. + * nbsd-nat.h: Include "inf-ptrace.h". + (nbsd_nat_target): New class. + * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list) + (obsd_wait): Refactor as methods of obsd_nat_target. + (obsd_add_target): Delete. + * obsd-nat.h: Include "inf-ptrace.h". + (obsd_nat_target): New class. + * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class. + (the_ppc_fbsd_nat_target): New. + (ppcfbsd_fetch_inferior_registers) + (ppcfbsd_store_inferior_registers): Refactor as methods of + ppc_fbsd_nat_target. + (_initialize_ppcfbsd_nat): Adjust to C++ification. Use + add_target. + * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class. + (the_ppc_nbsd_nat_target): New. + (ppcnbsd_fetch_inferior_registers) + (ppcnbsd_store_inferior_registers): Refactor as methods of + ppc_nbsd_nat_target. + (_initialize_ppcnbsd_nat): Adjust to C++ification. + * ppc-obsd-nat.c (ppc_obsd_nat_target): New class. + (the_ppc_obsd_nat_target): New. + (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as + methods of ppc_obsd_nat_target. + (_initialize_ppcobsd_nat): Adjust to C++ification. Use + add_target. + * sh-nbsd-nat.c (sh_nbsd_nat_target): New class. + (the_sh_nbsd_nat_target): New. + (shnbsd_fetch_inferior_registers) + (shnbsd_store_inferior_registers): Refactor as methods of + sh_nbsd_nat_target. + (_initialize_shnbsd_nat): Adjust to C++ification. + * sparc-nat.c (sparc_xfer_wcookie): Make extern. + (inf_ptrace_xfer_partial): Delete. + (sparc_xfer_partial, sparc_target): Delete. + * sparc-nat.h (sparc_fetch_inferior_registers) + (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare. + (sparc_target): Delete function declaration. + (sparc_target): New template class. + * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New. + (_initialize_sparcnbsd_nat): Adjust to C++ification. + * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New. + (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use + add_target. + * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New. + (_initialize_sparc64nbsd_nat): Adjust to C++ification. + * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New. + (_initialize_sparc64obsd_nat): Adjust to C++ification. Use + add_target. + * vax-bsd-nat.c (vax_bsd_nat_target): New class. + (the_vax_bsd_nat_target): New. + (vaxbsd_fetch_inferior_registers) + (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target + methods. + (_initialize_vaxbsd_nat): Adjust to C++ification. + + * bsd-kvm.c (bsd_kvm_target): New class. + (bsd_kvm_ops): Now a bsd_kvm_target. + (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial) + (bsd_kvm_files_info, bsd_kvm_fetch_registers) + (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of + bsd_kvm_target. + (bsd_kvm_return_one): Delete. + (bsd_kvm_add_target): Adjust to C++ification. + + * nto-procfs.c (nto_procfs_target, nto_procfs_target_native) + (nto_procfs_target_procfs): New classes. + (procfs_open_1, procfs_thread_alive, procfs_update_thread_list) + (procfs_files_info, procfs_pid_to_exec_file, procfs_attach) + (procfs_post_attach, procfs_wait, procfs_fetch_registers) + (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint) + (procfs_remove_breakpoint, procfs_insert_hw_breakpoint) + (procfs_remove_hw_breakpoint, procfs_resume) + (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt) + (procfs_kill_inferior, procfs_store_registers) + (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor + as methods of nto_procfs_target. + (nto_procfs_ops): Now an nto_procfs_target_procfs. + (nto_native_ops): Delete. + (procfs_open, procfs_native_open): Delete. + (nto_native_ops): Now an nto_procfs_target_native. + (init_procfs_targets): Adjust to C++ification. + (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint) + (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint): + Refactor as methods of nto_procfs_target. + + * go32-nat.c (go32_nat_target): New class. + (the_go32_nat_target): New. + (go32_attach, go32_resume, go32_wait, go32_fetch_registers) + (go32_store_registers, go32_xfer_partial, go32_files_info) + (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior) + (go32_terminal_init, go32_terminal_info, go32_terminal_inferior) + (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive) + (go32_pid_to_str): Refactor as methods of go32_nat_target. + (go32_target): Delete. + (_initialize_go32_nat): Adjust to C++ification. + + * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior) + (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach) + (gnu_stop, gnu_thread_alive, gnu_xfer_partial) + (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of + gnu_nat_target. + (gnu_target): Delete. + * gnu-nat.h (gnu_target): Delete. + (gnu_nat_target): New class. + * i386-gnu-nat.c (gnu_base_target): New. + (i386_gnu_nat_target): New class. + (the_i386_gnu_nat_target): New. + (_initialize_i386gnu_nat): Adjust to C++ification. + +2018-05-02 Pedro Alves <palves@redhat.com> + + * bfd-target.c (target_bfd_xclose): Rename to ... + (target_bfd_close): ... this. + (target_bfd_reopen): Adjust. + * target.c (target_close): Remove references to to_xclose. + * target.h (target_ops::to_xclose): Delete. + (target_ops::to_close): Update comments. + +2018-05-02 Pedro Alves <palves@redhat.com> + + * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of + "linux-nat.h". + * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o. + * inf-ptrace.c (inf_ptrace_register_u_offset) + (inf_ptrace_fetch_register, inf_ptrace_fetch_registers) + (inf_ptrace_store_register, inf_ptrace_store_registers) + (inf_ptrace_trad_target): Move to ... + * linux-nat-trad.c: ... this new file. + * linux-nat-trad.h: New file. + * linux-nat.c (linux_target_install_ops): Make extern. + (linux_trad_target): Delete. + * linux-nat.h (linux_trad_target): Delete declaration. + (linux_target_install_ops): Declare. + * mips-linux-nat.c: Include "linux-nat-trad.h" instead of + "linux-nat.h". + +2018-05-02 Pedro Alves <palves@redhat.com> + + * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call + procfs_target/add_target here. + * procfs.c (procfs_target): Make static. + (_initialize_procfs): Call add_target here. + * procfs.h (struct target_ops): Remove forward declaration. + (procfs_target): Remove declaration. + * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete. + +2018-05-02 Pedro Alves <palves@redhat.com> + + * procfs.c (procfs_stopped_by_watchpoint) + (procfs_insert_watchpoint, procfs_remove_watchpoint) + (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address): + Forward declare. + (procfs_use_watchpoints): Delete, move contents... + (procfs_target): ... here. + * procfs.h (procfs_use_watchpoints): Delete declaration. + * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call + procfs_use_watchpoints. + * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call + procfs_use_watchpoints. + +2018-05-02 Tom Tromey <tom@tromey.com> + + PR python/20084: + * python/python.c (gdbpy_parameter_value): Handle var_zuinteger + and var_zuinteger_unlimited. + * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER + and PARAM_ZUINTEGER_UNLIMITED. + (set_parameter_value): Handle var_zuinteger and + var_zuinteger_unlimited. + (add_setshow_generic): Likewise. + (parmpy_init): Likewise. + +2018-04-28 Dan Robertson <danlrobertson89@gmail.com> + + PR rust/23124 + * gdb/rust-exp.y (convert_params_to_types): Ensure that the params + pointer is not null before dereferencing it. + +2018-04-30 Tom Tromey <tom@tromey.com> + + * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of + is_mi_like_p. + +2018-04-30 Tom Tromey <tom@tromey.com> + + * breakpoint.c (mention): Remove use of is_mi_like_p. + (print_mention_ranged_breakpoint): Likewise. + * break-catch-throw.c (print_it_exception_catchpoint): Remove use + of is_mi_like_p. + +2018-04-30 Tom Tromey <tom@tromey.com> + + * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p. + +2018-04-30 Tom Tromey <tom@tromey.com> + + * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist) + (info_spu_event_command): Remove some uses of is_mi_like_p. + +2018-04-30 Tom Tromey <tom@tromey.com> + + * python/py-framefilter.c (py_print_single_arg) + (enumerate_locals, py_print_args, py_print_frame): Remove some + uses of is_mi_like_p. + +2018-04-30 Tom Tromey <tom@tromey.com> + + * ui-out.c: Update. + * cli-out.h (cli_ui_out::do_is_mi_like_p): Update. + * ui-out.h (ui_out::is_mi_like_p): Now const. + (ui_out::do_is_mi_like_p): Now const. + * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update. + +2018-04-30 Tom Tromey <tom@tromey.com> + + * varobj.c (varobj_set_visualizer): Use new_reference. + * python/python.c (gdbpy_decode_line): Use new_reference. + * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use + new_reference. + +2018-04-30 Tom Tromey <tom@tromey.com> + + * varobj.c (install_new_value): Use new_reference. + * value.h (value_incref): Return void. Swap intro comment with + value_decref. + * value.c (set_value_parent): Use new_reference. + (value_incref): Return void. Update intro comment. + (release_value): Use new_reference. + * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference. + +2018-04-30 Tom Tromey <tom@tromey.com> + + * symfile-mem.c (symbol_file_add_from_memory): Use new_reference. + * gdb_bfd.h (new_bfd_ref): Remove. + (gdb_bfd_open): Update comment. + * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr) + (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion) + (gdb_bfd_fdopenr): Use new_reference. + * exec.c (exec_file_attach): Use new_reference. + +2018-04-30 Tom Tromey <tom@tromey.com> + + * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static + method. + +2018-04-30 Tom Tromey <tom@tromey.com> + + * jit.c (jit_read_code_entry): Use type_align. + * i386-tdep.c (i386_gdbarch_init): Don't call + set_gdbarch_long_long_align_bit. + * gdbarch.sh: Remove long_long_align_bit. + * gdbarch.c, gdbarch.h: Rebuild. + * arc-tdep.c (arc_type_align): New function. + (arc_gdbarch_init): Use arc_type_align. Don't call + set_gdbarch_long_long_align_bit. + +2018-04-30 Tom Tromey <tom@tromey.com> + + * rust-lang.c (rust_type_alignment): Remove. + (rust_composite_type): Use type_align. + +2018-04-30 Tom Tromey <tom@tromey.com> + + * NEWS: Mention Type.align. + * python/py-type.c (typy_get_alignof): New function. + (type_object_getset): Add "alignof". + +2018-04-30 Tom Tromey <tom@tromey.com> + + PR exp/17095: + * NEWS: Update. + * std-operator.def (UNOP_ALIGNOF): New operator. + * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>: + New. + * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New. + * c-lang.c (c_op_print_tab): Add alignof. + * c-exp.y (ALIGNOF): New token. + (exp): Add "ALIGNOF" production. + (ident_tokens): Add _Alignof and alignof. + +2018-04-30 Tom Tromey <tom@tromey.com> + + * i386-tdep.c (i386_type_align): New function. + (i386_gdbarch_init): Update. + * gdbarch.sh (type_align): New method. + * gdbarch.c, gdbarch.h: Rebuild. + * arch-utils.h (default_type_align): Declare. + * arch-utils.c (default_type_align): New function. + * gdbtypes.h (TYPE_ALIGN_BITS): New define. + (struct type) <align_log2>: New field. + <instance_flags>: Now a bitfield. + (TYPE_RAW_ALIGN): New macro. + (type_align, type_raw_align, set_type_align): Declare. + * gdbtypes.c (type_align, type_raw_align, set_type_align): New + functions. + * dwarf2read.c (quirk_rust_enum): Set type alignment. + (get_alignment, maybe_set_alignment): New functions. + (read_structure_type, read_enumeration_type, read_array_type) + (read_set_type, read_tag_pointer_type, read_tag_reference_type) + (read_subrange_type, read_base_type): Set type alignment. + +2018-04-30 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2read.c (read_index_from_section): Use bool. + +2018-04-29 Fabian Groffen <grobian@gentoo.org> + + PR gdb/22950 + * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys + with #ifdef. + +2018-04-29 John Reiser <jreiser@BitWagon.com> + + PR build/22873 + * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the + last step, and do it atomically. + +2018-04-27 Alexandre Oliva <aoliva@redhat.com> + + * compile/compile-c-types.c (convert_int, convert_float): + Update for C FE v1. + +2018-04-27 Tom Tromey <tom@tromey.com> + + PR rust/22545: + * rust-lang.c (rust_inclusive_range_type_p): New function. + (rust_range): Handle inclusive ranges. + (rust_compute_range): Likewise. + * rust-exp.y (struct rust_op) <inclusive>: New field. + (DOTDOTEQ): New constant. + (range_expr): Add "..=" productions. + (operator_tokens): Add "..=" token. + (ast_range): Add "inclusive" parameter. + (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive + ranges. + * parse.c (operator_length_standard) <case OP_RANGE>: Handle new + bounds values. + * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE, + LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants. + Update comments. + * expprint.c (print_subexp_standard): Handle new bounds values. + (dump_subexp_body_standard): Likewise. + +2018-04-27 Tom Tromey <tom@tromey.com> + + * configure: Rebuild. + * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override. + * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not + "OVERRIDE". + (class symbol_needs_eval_context): Likewise. + * dwarf2read.c (mock_mapped_index::symbol_name_count) + (mock_mapped_index::symbol_name_at): Use "override". Remove + "virtual". + * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use + "override". + (class dwarf_expr_executor): Use "override", not "OVERRIDE". + * aarch64-tdep.c (instruction_reader::read): Use "override". + (instruction_reader_test::read): Likewise. + * arm-tdep.c (instruction_reader::read): Use "override". + (instruction_reader_thumb::read): Likewise. + +2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl> + + PR remote/9665 + * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result + instead of remote_send. + (remote_send): Remove. + +2018-04-26 Pedro Alves <palves@redhat.com> + + * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use + find_function_start_sal instead of find_pc_line. + +2018-04-26 Pedro Alves <palves@redhat.com> + + * breakpoint.c (set_breakpoint_location_function): Handle + mst_data_gnu_ifunc. + * c-exp.y (variable production): Handle mst_data_gnu_ifunc. + * elfread.c (elf_symtab_read): Give data symbols with + BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type. + (elf_rel_plt_read): Update comment. + * linespec.c (convert_linespec_to_sals): Handle + mst_data_gnu_ifunc. + (minsym_found): Handle mst_data_gnu_ifunc. + * minsyms.c (msymbol_is_function, minimal_symbol_reader::record) + (find_solib_trampoline_target): Handle mst_data_gnu_ifunc. + * parse.c (find_minsym_type_and_address): Handle + mst_data_gnu_ifunc. + * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc. + * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc. + * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update + comment. + <mst_data_gnu_ifunc>: New enumerator. + +2018-04-26 Pedro Alves <palves@redhat.com> + + * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ... + (lookup_minimal_symbol_by_pc_section): ... this. Replace + 'want_trampoline' parameter by a lookup_msym_prefer parameter. + Handle it. + (lookup_minimal_symbol_by_pc_section): Delete old implementation. + (lookup_minimal_symbol_by_pc): Adjust. + (in_gnu_ifunc_stub): Prefer GNU ifunc symbols. + (lookup_solib_trampoline_symbol_by_pc): Adjust. + * minsyms.h (lookup_msym_prefer): New enum. + (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' + parameter by a lookup_msym_prefer parameter. + +2018-04-26 Pedro Alves <palves@redhat.com> + + * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name + ends in "@plt" instead of looking at the symbol's section. + +2018-04-26 Pedro Alves <palves@redhat.com> + + * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove + all references. + (find_pc_partial_function_gnu_ifunc): Rename to ... + (find_pc_partial_function): ... this, and remove references to + 'is_gnu_ifunc_p'. + (find_pc_partial_function): Delete old implementation. + * symtab.h (find_pc_partial_function_gnu_ifunc): Delete. + +2018-04-26 Pedro Alves <palves@redhat.com> + + * linespec.c (struct bound_minimal_symbol_search_key): New. + (convert_linespec_to_sals): Sort minimal symbols earlier. Don't + skip first line if we found a GNU ifunc minimal symbol by name. + (compare_msymbols): Change parameters to work with a destructured + lhs minsym. + (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New + functions. + +2018-04-26 Pedro Alves <palves@redhat.com> + + * breakpoint.c (set_breakpoint_location_function): Don't resolve + ifunc targets here. Instead, if we have an ifunc minsym, use its + address/name. + (add_location_to_breakpoint): Store the minsym and the objfile in + the breakpoint location. + * breakpoint.h (bp_location) <msymbol, objfile>: New fields. + * linespec.c (minsym_found): Resolve GNU ifunc targets here. + Record the minsym in the sal. + * symtab.h (symtab_and_line) <msymbol>: New field. + +2018-04-26 Pedro Alves <palves@redhat.com> + + * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P + unless we actually resolved the ifunc. + +2018-04-26 Pedro Alves <palves@redhat.com> + + * c-exp.y (variable production): Prefer ifunc minsyms over + regular function symbols. + * symtab.c (find_gnu_ifunc): New function. + * minsyms.h (lookup_msym_prefer): New enum. + (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' + parameter by a lookup_msym_prefer parameter. + * symtab.h (find_gnu_ifunc): New declaration. + +2018-04-26 Pedro Alves <palves@redhat.com> + + * blockframe.c (find_gnu_ifunc_target_type): New function. + (find_function_type): New. + * eval.c (evaluate_var_msym_value): For GNU ifunc types, always + return a value with a memory address. + (eval_call): For calls to GNU ifunc functions, try to find the + type of the target function from the type that the resolver + returns. + * gdbtypes.c (objfile_type): Don't install a return type for ifunc + symbols. + * infcall.c (find_function_return_type): Delete. + (find_function_addr): Add 'function_type' parameter. For calls to + GNU ifunc functions, try to find the type of the target function + from the type that the resolver returns, and return it via + FUNCTION_TYPE. + (call_function_by_hand_dummy): Adjust to use the function type + returned by find_function_addr. + (find_function_addr): Add 'function_type' parameter and move + description here. + * symtab.h (find_function_type, find_gnu_ifunc_target_type): New + declarations. + +2018-04-26 Pedro Alves <palves@redhat.com> + + * c-exp.y (variable production): Skip finding an alias for ifunc + symbols. + +2018-04-26 Pedro Alves <palves@redhat.com> + + * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too. + +2018-04-25 Pedro Alves <palves@redhat.com> + + * infcmd.c (kill_command): Print the pid as string, not the whole + thread's ptid. Add comment. s/has been killed/killed/ in output + message. + * remote.c (remote_detach_1): Print the pid as string, not the + whole thread's ptid. + +2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com> + Sergio Durigan Junior <sergiodj@redhat.com> + Pedro Alves <palves@redhat.com> + + * infcmd.c (kill_command): Print message when inferior has + been killed. + * inferior.c (print_inferior_events): Remove 'static'. Set as + '1'. + (add_inferior): Improve message printed when + 'print_inferior_events' is on. + (exit_inferior): Remove message printed when + 'print_inferior_events' is on. + (detach_inferior): Improve message printed when + 'print_inferior_events' is on. + (initialize_inferiors): Use 'add_inferior_silent' to set + 'current_inferior_'. + * inferior.h (print_inferior_events): Declare here as + 'extern'. + * infrun.c (follow_fork_inferior): Print '[Attaching...]' or + '[Detaching...]' messages when 'print_inferior_events' is on. + Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']' + as prefix/suffix for messages. Remove periods. Fix erroneous + 'Detaching after fork from child...', replace it by '... from + parent...'. + (handle_vfork_child_exec_or_exit): Add '[' and ']' as + prefix/suffix when printing 'Detaching...' messages. Print + them when 'print_inferior_events' is on. + * remote.c (remote_detach_1): Print message when detaching + from inferior and '!is_fork_parent'. + +2018-04-24 Tom Tromey <tom@tromey.com> + + * cli-out.h: Reindent. + +2018-04-24 Tom Tromey <tom@tromey.com> + + * cli-out.c (cli_ui_out::out_field_fmt): Remove. + (cli_ui_out::do_field_string): Use fputs_filtered. + * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove. + +2018-04-23 Tom Tromey <tom@tromey.com> + + * guile/scm-frame.c (gdbscm_frame_read_var): Use + gdb::unique_xmalloc_ptr. + +2018-04-23 Tom Tromey <tom@tromey.com> + + * configure: Rebuild. + +2018-04-22 Rajendra SY <rajendra.sy@gmail.com> + + PR gdb/23095 + * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to + prepare_for_testing. Set normal_bp to r_debug_state if target + is bsd. + +2018-04-21 Pedro Alves <palves@redhat.com> + Rajendra SY <rajendra.sy@gmail.com> + + * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing. + * remote.c (extended_remote_attach): In all-stop mode, mark the + thread as executing. + +2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be> + + * thread.c (thread_apply_all_command): Fix comment. + (thread_command): Fix comment. + +2018-04-10 Alan Hayward <alan.hayward@arm.com> + + * common/tdesc.h (tdesc_create_feature): Remove xml filename + parameter. + * features/aarch64-core.c (create_feature_aarch64_core): + Regenerate. + * features/aarch64-fpu.c (create_feature_aarch64_fpu): + Likewise. + * features/i386/32bit-avx.c (create_feature_i386_32bit_avx): + Likewise. + * features/i386/32bit-avx512.c + (create_feature_i386_32bit_avx512): Likewise. + * features/i386/32bit-core.c (create_feature_i386_32bit_core): + Likewise. + * features/i386/32bit-linux.c (create_feature_i386_32bit_linux): + Likewise. + * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx): + Likewise. + * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys): + Likewise. + * features/i386/32bit-sse.c (create_feature_i386_32bit_sse): + Likewise. + * features/i386/64bit-avx.c (create_feature_i386_64bit_avx): + Likewise. + * features/i386/64bit-avx512.c + (create_feature_i386_64bit_avx512): Likewise. + * features/i386/64bit-core.c (create_feature_i386_64bit_core): + Likewise. + * features/i386/64bit-linux.c (create_feature_i386_64bit_linux): + Likewise. + * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx): + Likewise. + * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys): + Likewise. + * features/i386/64bit-segments.c + (create_feature_i386_64bit_segments): Likewise. + * features/i386/64bit-sse.c (create_feature_i386_64bit_sse): + Likewise. + * features/i386/x32-core.c + (create_feature_i386_x32_core): Likewise. + * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise. + * features/tic6x-core.c (create_feature_tic6x_core): Likewise. + * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise. + * target-descriptions.c: In generated code, don't pass xml + filename. + +2018-04-18 Alan Hayward <alan.hayward@arm.com> + + * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing. + (print_xml_feature::visit_post): Likewise. + (print_xml_feature::visit): Likewise. + * common/tdesc.h (tdesc_get_features_xml): Use const tdesc. + (print_xml_feature): Add new class. + * regformats/regdat.sh: Null xmltarget on feature targets. + * target-descriptions.c (struct target_desc): Add xmltarget. + (maintenance_check_tdesc_xml_convert): Add unittest function. + (tdesc_get_features_xml): Add function to get xml. + (maintenance_check_xml_descriptions): Test xml generation. + * xml-tdesc.c (string_read_description_xml): Add function. + * xml-tdesc.h (string_read_description_xml): Add declaration. + +2018-04-18 Alan Hayward <alan.hayward@arm.com> + + * features/Makefile: Add feature marker to targets with new style + target descriptions. + * regformats/aarch64.dat: Regenerate. + * regformats/i386/amd64-avx-avx512-linux.dat: Likewise. + * regformats/i386/amd64-avx-linux.dat: Likewise. + * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise. + * regformats/i386/amd64-avx-mpx-linux.dat: Likewise. + * regformats/i386/amd64-linux.dat: Likewise. + * regformats/i386/amd64-mpx-linux.dat: Likewise. + * regformats/i386/amd64.dat: Likewise. + * regformats/i386/i386-avx-avx512-linux.dat: Likewise. + * regformats/i386/i386-avx-linux.dat: Likewise. + * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise. + * regformats/i386/i386-avx-mpx-linux.dat: Likewise. + * regformats/i386/i386-linux.dat: Likewise. + * regformats/i386/i386-mmx-linux.dat: Likewise. + * regformats/i386/i386-mpx-linux.dat: Likewise. + * regformats/i386/i386.dat: Likewise. + * regformats/i386/x32-avx-avx512-linux.dat: Likewise. + * regformats/i386/x32-avx-linux.dat: Likewise. + * regformats/i386/x32-linux.dat: Likewise. + * regformats/tic6x-c62x-linux.dat: Likewise. + * regformats/tic6x-c64x-linux.dat: Likewise. + * regformats/tic6x-c64xp-linux.dat: Likewise. + * regformats/regdat.sh: Parse feature marker. + +2018-04-18 Alan Hayward <alan.hayward@arm.com> + + * common/tdesc.h (tdesc_architecture_name): Add new declaration. + (tdesc_osabi_name): Likewise. + * target-descriptions.c (tdesc_architecture_name): Add new + function. + (tdesc_osabi_name): Likewise. + +2018-04-18 Alan Hayward <alan.hayward@arm.com> + + * common/tdesc.c (tdesc_predefined_type): Move to here. + (tdesc_named_type): Likewise. + (tdesc_create_vector): Likewise. + (tdesc_create_struct): Likewise. + (tdesc_set_struct_size): Likewise. + (tdesc_create_union): Likewise. + (tdesc_create_flags): Likewise. + (tdesc_create_enum): Likewise. + (tdesc_add_field): Likewise. + (tdesc_add_typed_bitfield): Likewise. + (tdesc_add_bitfield): Likewise. + (tdesc_add_flag): Likewise. + (tdesc_add_enum_value): Likewise. + * common/tdesc.h (struct tdesc_type_builtin): Likewise. + (struct tdesc_type_vector): Likewise. + (struct tdesc_type_field): Likewise. + (struct tdesc_type_with_fields): Likewise. + (tdesc_create_enum): Add declaration. + (tdesc_add_typed_bitfield): Likewise. + (tdesc_add_enum_value): Likewise. + * target-descriptions.c (tdesc_type_field): Move from here. + (tdesc_type_builtin): Likewise. + (tdesc_type_vector): Likewise. + (tdesc_type_with_fields): Likewise. + (tdesc_predefined_types): Likewise. + (tdesc_named_type): Likewise. + (tdesc_create_vector): Likewise. + (tdesc_create_struct): Likewise. + (tdesc_set_struct_size): Likewise. + (tdesc_create_union): Likewise. + (tdesc_create_flags): Likewise. + (tdesc_create_enum): Likewise. + (tdesc_add_field): Likewise. + (tdesc_add_typed_bitfield): Likewise. + (tdesc_add_bitfield): Likewise. + (tdesc_add_flag): Likewise. + (tdesc_add_enum_value): Likewise. + * gdb/target-descriptions.h (tdesc_create_enum): Likewise. + (tdesc_add_typed_bitfield): Likewise. + (tdesc_add_enum_value): Likewise. + +2018-04-18 Alan Hayward <alan.hayward@arm.com> + + * common/tdesc.c (tdesc_feature::accept): Move to here. + (tdesc_feature::operator==): Likewise. + (tdesc_create_reg): Likewise. + * common/tdesc.h (tdesc_type_kind): Likewise. + (struct tdesc_type): Likewise. + (struct tdesc_feature): Likewise. + * regformats/regdat.sh: Create a feature. + * target-descriptions.c (tdesc_type_kind): Move from here. + (tdesc_type): Likewise. + (tdesc_type_up): Likewise. + (tdesc_feature): Likewise. + (tdesc_create_reg): Likewise. + +2018-04-18 Alan Hayward <alan.hayward@arm.com> + + * Makefile.in: Add arch/tdesc.c + * common/tdesc.c: New file. + * common/tdesc.h (tdesc_element_visitor): Move to here. + (tdesc_element): Likewise. + (tdesc_reg): Likewise. + (tdesc_reg_up): Likewise. + * regformats/regdef.h (reg): Add offset to constructors. + * target-descriptions.c (tdesc_element_visitor): Move from here. + (tdesc_element): Likewise. + (tdesc_reg): Likewise. + (tdesc_reg_up): Likewise. + +2018-04-17 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (quirk_rust_enum): Conditionally drop the + discriminant field. + +2018-04-17 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (quirk_rust_enum): Handle unions correctly. + +2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com> + + * symtab.c (print_symbol_info): Skip printing filename and line + number when `last' is NULL. + (symtab_symbol_info): Use empty string instead of NULL for first + invocation of print_symbol_info. + (rbreak_command): Pass NULL to `last' parameter of + print_symbol_info. + +2018-04-16 Simon Marchi <simon.marchi@ericsson.com> + + * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data + instead of nullptr. + +2018-04-16 Pedro Alves <palves@redhat.com> + + * MAINTAINERS (sh): Remove. + * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o. + (HFILES_NO_SRCDIR): Remove sh64-tdep.h. + (ALLDEPFILES): Remove sh64-tdep.c. + * NEWS: Mentions that support for SH-5/SH64 is removed. + * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o. + (sh*-*-openbsd*): Ditto. + (sh64-*-elf*): Remove. + (sh*): Remove. + * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case. + * sh-linux-tdep.c: Remove reference to bfd_mach_sh5. + * sh-tdep.c: No longer include "sh64-tdep.h". + (sh_gdbarch_init): Remove reference to bfd_mach_sh5. + * sh64-tdep.c, sh64-tdep.h: Remove files. + +2018-04-16 Pedro Alves <palves@redhat.com> + + * MAINTAINERS: Remove m88k. + * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o. + (HFILES_NO_SRCDIR): Remove m88k-tdep.h. + (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c. + * NEWS: Mention that support for m88k was removed. + * configure.host (m88*-*-*): Remove support. + * configure.nat (m88k-*-*): Remove support. + * configure.tgt (m88*-*-openbsd*): Remove. + * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete. + +2018-04-15 Simon Marchi <simon.marchi@polymtl.ca> + + * configure.tgt (x86_tobjs): New variable. + (amd64_tobjs, i386_tobjs): Use it. + +2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com> + + * symtab.c (print_symbol_info): Precede the symbol definition by + the line number when available. + * NEWS: Advertise this enhancement. + +2018-04-13 Markus Metzger <markus.t.metzger@intel.com> + + * NEWS (New options): announce set/show record btrace cpu. + * btrace.c: Include record-btrace.h. + (btrace_compute_ftrace_pt): Skip enabling errata workarounds if + the vendor is unknown. + (btrace_compute_ftrace_1): Add cpu parameter. Update callers. + Maybe overwrite the btrace configuration's cpu. + (btrace_compute_ftrace): Add cpu parameter. Update callers. + (btrace_fetch): Add cpu parameter. Update callers. + (btrace_maint_update_pt_packets): Call record_btrace_get_cpu. + Maybe overwrite the btrace configuration's cpu. Skip enabling + errata workarounds if the vendor is unknown. + * python/py-record-btrace.c: Include record-btrace.h. + (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history) + (recpy_bt_function_call_history): Call record_btrace_get_cpu. + * record-btrace.c (record_btrace_cpu_state_kind): New. + (record_btrace_cpu): New. + (set_record_btrace_cpu_cmdlist): New. + (record_btrace_get_cpu): New. + (require_btrace_thread, record_btrace_info) + (record_btrace_resume_thread): Call record_btrace_get_cpu. + (cmd_set_record_btrace_cpu_none): New. + (cmd_set_record_btrace_cpu_auto): New. + (cmd_set_record_btrace_cpu): New. + (cmd_show_record_btrace_cpu): New. + (_initialize_record_btrace): Initialize set/show record btrace cpu + commands. + * record-btrace.h (record_btrace_get_cpu): New. + +2018-04-13 Markus Metzger <markus.t.metzger@intel.com> + + * record.c (set_record_command): Fix typo in message. + +2018-04-13 Markus Metzger <markus.t.metzger@intel.com> + + * record-btrace.c (cmd_set_record_btrace): Print sub-commands. + +2018-04-13 Markus Metzger <markus.t.metzger@intel.com> + + * infrun.c (process_event_stop_test): Call + gdbarch_in_indirect_branch_thunk. + * gdbarch.sh (in_indirect_branch_thunk): New. + * gdbarch.c: Regenerated. + * gdbarch.h: Regenerated. + * x86-tdep.h: New. + * x86-tdep.c: New. + * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o. + (HFILES_NO_SRCDIR): Add x86-tdep.h. + (ALLDEPFILES): Add x86-tdep.c. + * arch-utils.h (default_in_indirect_branch_thunk): New. + * arch-utils.c (default_in_indirect_branch_thunk): New. + * i386-tdep: Include x86-tdep.h. + (i386_in_indirect_branch_thunk): New. + (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch + function. + * amd64-tdep: Include x86-tdep.h. + (amd64_in_indirect_branch_thunk): New. + (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function. + +2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com> + + PR gdb/23053 + * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type) + (recursively_write_psymbols) (debug_names::recursively_write_psymbols) + (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG + regression. + +2018-04-12 Tom Tromey <tom@tromey.com> + + * rust-lang.c (rust_print_struct_def): Remove univariant code. + (rust_evaluate_subexp): Likewise. + +2018-04-12 Pedro Alves <palves@redhat.com> + + * procfs.c (procfs_detach): Make forward declaration's prototype + match definition's protototype. + (proc_get_LDT_entry): Remove stale do_cleanups call. + +2018-04-12 Pedro Alves <palves@redhat.com> + + * target.h (target_ops::to_has_exited): Delete. + (target_has_exited): Delete. + * target-delegates.c: Regenerate. + +2018-04-11 Pedro Alves <palves@redhat.com> + + * target.c (fileio_fh_t::t): Add comment. + (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) + (target_fileio_close): Handle a NULL target. + (invalidate_fileio_fh): New. + (target_close): Call it. + * remote.c (remote_hostio_send_command): No longer check whether + remote_desc is open. + +2018-04-11 Pedro Alves <palves@redhat.com> + + * target.c (fileio_fh_t): Make it a named struct instead of a + typedef. + (fileio_fh_t::is_closed): New method. + (DEF_VEC_O (fileio_fh_t)): Remove. + (fileio_fhandles): Now a std::vector. + (is_closed_fileio_fh): Delete. + (acquire_fileio_fd): Adjust. Rename parameters. + (release_fileio_fd): Adjust. + (fileio_fd_to_fh): Reimplement as a function instead of a macro. + (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) + (target_fileio_close): Adjust. + +2018-04-10 Simon Marchi <simon.marchi@ericsson.com> + + * auto-load.c (auto_load_safe_path_vec_update): Iterate by + index. + +2018-04-10 Pedro Alves <palves@redhat.com> + + * gdbthread.h (finish_thread_state_cleanup): Delete declaration. + (scoped_finish_thread_state): New class. + * infcmd.c (run_command_1): Use it instead of finish_thread_state + cleanup. + * infrun.c (proceed, prepare_for_detach, wait_for_inferior) + (fetch_inferior_event, normal_stop): Likewise. + * thread.c (finish_thread_state_cleanup): Delete. + +2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> + Pedro Alves <palves@redhat.com> + + * value.c: Include "selftest.h" and "common/array-view.h". + (struct range) <operator ==>: New. + (test_ranges_contain): New. + (check_ranges_vector): New. + (test_insert_into_bit_range_vector): New. + (_initialize_values): Register selftests. + * common/array-view.h (operator==, operator!=): New. + +2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> + + * common/gdb_vecs.h (unordered_remove): Add overload that takes + an iterator. + * inline-frame.c: Include <algorithm>. + (struct inline_state): Add constructor. + (inline_state_s): Remove. + (DEF_VEC_O(inline_state_s)): Remove. + (inline_states): Change type to std::vector. + (find_inline_frame_state): Adjust to std::vector. + (allocate_inline_frame_state): Remove. + (clear_inline_frame_state): Adjust to std::vector. + (skip_inline_frames): Adjust to std::vector. + +2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> + + * tracepoint.h (struct trace_state_variable): Add constructor. + <name>: Change type to std::string. + * tracepoint.c (tsv_s): Remove. + (DEF_VEC_O(tsv_s)): Remove. + (tvariables): Change to std::vector. + (create_trace_state_variable): Adjust to std::vector. + (find_trace_state_variable): Likewise. + (find_trace_state_variable_by_number): Likewise. + (delete_trace_state_variable): Likewise. + (trace_variable_command): Adjust to std::string. + (delete_trace_variable_command): Likewise. + (tvariables_info_1): Adjust to std::vector. + (save_trace_state_variables): Likewise. + (start_tracing): Likewise. + (merge_uploaded_trace_state_variables): Adjust to std::vector + and std::string. + * target.h (struct target_ops) + <to_download_trace_state_variable>: Pass reference to + trace_state_variable. + * target-debug.h (target_debug_print_const_trace_state_variable_r): New. + * target-delegates.c: Re-generate. + * mi/mi-interp.c (mi_tsv_created): Adjust to std::string. + (mi_tsv_deleted): Likewise. + * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise. + * remote.c (remote_download_trace_state_variable): Change + pointer to reference and adjust. + * make-target-delegates (parse_argtypes): Handle references. + (write_function_header): Likewise. + (munge_type): Likewise. + +2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> + + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + string_view-selftests.c. + * unittests/basic_string_view/capacity/1.cc: Adapt to GDB + testsuite. + * unittests/basic_string_view/cons/char/1.cc: Likewise. + * unittests/basic_string_view/cons/char/2.cc: Likewise. + * unittests/basic_string_view/cons/char/3.cc: Likewise. + * unittests/basic_string_view/element_access/char/1.cc: + Likewise. + * unittests/basic_string_view/element_access/char/empty.cc: + Likewise. + * unittests/basic_string_view/element_access/char/front_back.cc: + Likewise. + * unittests/basic_string_view/inserters/char/2.cc: Likewise. + * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: + Likewise. + * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: + Likewise. + * unittests/basic_string_view/modifiers/swap/char/1.cc: + Likewise. + * unittests/basic_string_view/operations/compare/char/1.cc: + Likewise. + * unittests/basic_string_view/operations/compare/char/13650.cc: + Likewise. + * unittests/basic_string_view/operations/copy/char/1.cc: + Likewise. + * unittests/basic_string_view/operations/data/char/1.cc: + Likewise. + * unittests/basic_string_view/operations/find/char/1.cc: + Likewise. + * unittests/basic_string_view/operations/find/char/2.cc: + Likewise. + * unittests/basic_string_view/operations/find/char/3.cc: + Likewise. + * unittests/basic_string_view/operations/find/char/4.cc: + Likewise. + * unittests/basic_string_view/operations/rfind/char/1.cc: + Likewise. + * unittests/basic_string_view/operations/rfind/char/2.cc: + Likewise. + * unittests/basic_string_view/operations/rfind/char/3.cc: + Likewise. + * unittests/basic_string_view/operations/substr/char/1.cc: + Likewise. + * unittests/basic_string_view/operators/char/2.cc: Likewise. + * unittests/string_view-selftests.c: New file. + +2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> + + * unittests/basic_string_view/capacity/1.cc: New file. + * unittests/basic_string_view/capacity/empty_neg.cc: New file. + * unittests/basic_string_view/cons/char/1.cc: New file. + * unittests/basic_string_view/cons/char/2.cc: New file. + * unittests/basic_string_view/cons/char/3.cc: New file. + * unittests/basic_string_view/cons/wchar_t/1.cc: New file. + * unittests/basic_string_view/cons/wchar_t/2.cc: New file. + * unittests/basic_string_view/cons/wchar_t/3.cc: New file. + * unittests/basic_string_view/element_access/char/1.cc: New file. + * unittests/basic_string_view/element_access/char/2.cc: New file. + * unittests/basic_string_view/element_access/char/empty.cc: New file. + * unittests/basic_string_view/element_access/char/front_back.cc: New file. + * unittests/basic_string_view/element_access/wchar_t/1.cc: New file. + * unittests/basic_string_view/element_access/wchar_t/2.cc: New file. + * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file. + * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file. + * unittests/basic_string_view/include.cc: New file. + * unittests/basic_string_view/inserters/char/1.cc: New file. + * unittests/basic_string_view/inserters/char/2.cc: New file. + * unittests/basic_string_view/inserters/char/3.cc: New file. + * unittests/basic_string_view/inserters/pod/10081-out.cc: New file. + * unittests/basic_string_view/inserters/wchar_t/1.cc: New file. + * unittests/basic_string_view/inserters/wchar_t/2.cc: New file. + * unittests/basic_string_view/inserters/wchar_t/3.cc: New file. + * unittests/basic_string_view/literals/types.cc: New file. + * unittests/basic_string_view/literals/values.cc: New file. + * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file. + * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file. + * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file. + * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file. + * unittests/basic_string_view/modifiers/swap/char/1.cc: New file. + * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file. + * unittests/basic_string_view/operations/compare/char/1.cc: New file. + * unittests/basic_string_view/operations/compare/char/13650.cc: New file. + * unittests/basic_string_view/operations/compare/char/2.cc: New file. + * unittests/basic_string_view/operations/compare/char/70483.cc: New file. + * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file. + * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file. + * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file. + * unittests/basic_string_view/operations/copy/char/1.cc: New file. + * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file. + * unittests/basic_string_view/operations/data/char/1.cc: New file. + * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file. + * unittests/basic_string_view/operations/find/char/1.cc: New file. + * unittests/basic_string_view/operations/find/char/2.cc: New file. + * unittests/basic_string_view/operations/find/char/3.cc: New file. + * unittests/basic_string_view/operations/find/char/4.cc: New file. + * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file. + * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file. + * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file. + * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file. + * unittests/basic_string_view/operations/rfind/char/1.cc: New file. + * unittests/basic_string_view/operations/rfind/char/2.cc: New file. + * unittests/basic_string_view/operations/rfind/char/3.cc: New file. + * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file. + * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file. + * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file. + * unittests/basic_string_view/operations/string_conversion/1.cc: New file. + * unittests/basic_string_view/operations/substr/char/1.cc: New file. + * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file. + * unittests/basic_string_view/operators/char/2.cc: New file. + * unittests/basic_string_view/operators/wchar_t/2.cc: New file. + * unittests/basic_string_view/range_access/char/1.cc: New file. + * unittests/basic_string_view/range_access/wchar_t/1.cc: New file. + * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file. + * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file. + * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file. + * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file. + * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file. + * unittests/basic_string_view/requirements/typedefs.cc: New file. + * unittests/basic_string_view/typedefs.cc: New file. + * unittests/basic_string_view/types/1.cc: New file. + +2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> + + * common/gdb_string_view.h: Remove libstdc++ implementation + details, adjust to gdb reality. + * common/gdb_string_view.tcc: Likewise. + * cli/cli-script.c (struct string_view): Remove. + (user_args) <m_args>: Change element type to gdb::string_view. + (user_args::insert_args): Adjust. + +2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> + + * common/gdb_string_view.h: New file. + * common/gdb_string_view.tcc: New file. + +2018-04-09 Simon Marchi <simon.marchi@polymtl.ca> + + * ax_cxx_compile_stdcxx.m4: Sync with upstream. + * configure: Re-generate. + +2018-04-09 Pedro Alves <palves@redhat.com> + + * gdbarch.sh: Include "observable.h" instead of "observer.h". + (set_target_gdbarch): Call + gdb::observers::architecture_changed.notify instead of + observer_notify_architecture_changed. + +2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> + + * tracepoint.c (struct current_traceframe_cleanup): Remove. + (do_restore_current_traceframe_cleanup): Remove. + (restore_current_traceframe_cleanup_dtor): Remove. + (make_cleanup_restore_current_traceframe): Remove. + (scoped_restore_current_traceframe::scoped_restore_current_traceframe): + New. + * tracepoint.h (struct scoped_restore_current_traceframe): New. + * infrun.c (fetch_inferior_event): Use + scoped_restore_current_traceframe. + +2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> + + * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>: + Remove. + <n_allocated_type_units>: Remove. + <all_type_units>: Change to std::vector. + * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust + to std::vector change. + (dwarf2_per_objfile::get_cutu): Likewise. + (dwarf2_per_objfile::get_tu): Likewise. + (create_signatured_type_table_from_index): Likewise. + (create_signatured_type_table_from_debug_names): Likewise. + (dw2_symtab_iter_next): Likewise. + (dw2_print_stats): Likewise. + (dw2_expand_all_symtabs): Likewise. + (dw2_expand_marked_cus): Likewise. + (dw2_debug_names_iterator::next): Likewise. + (dwarf2_initialize_objfile): Likewise. + (add_signatured_type_cu_to_table): Likewise. + (create_all_type_units): Likewise. + (add_type_unit): Likewise. + (struct tu_abbrev_offset): Add constructor. + (build_type_psymtabs_1): Adjust to std::vector change. + (print_tu_stats): Likewise. + * dwarf-index-write.c (check_dwarf64_offsets): Likewise. + (write_debug_names): Likewise. + +2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> + + * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise. + Make an std::vector. + <n_comp_units>: Remove. + * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust + to std::vector change. + (dwarf2_per_objfile::get_cutu): Likewise. + (dwarf2_per_objfile::get_cu): Likewise. + (create_cus_from_index): Likewise. + (create_addrmap_from_index): Likewise. + (create_addrmap_from_aranges): Likewise. + (dwarf2_read_index): Likewise. + (dw2_find_last_source_symtab): Likewise. + (dw2_map_symtabs_matching_filename): Likewise. + (dw2_symtab_iter_next): Likewise. + (dw2_print_stats): Likewise. + (dw2_expand_all_symtabs): Likewise. + (dw2_expand_symtabs_with_fullname): Likewise. + (dw2_expand_marked_cus): Likewise. + (dw2_map_symbol_filenames): Likewise. + (create_cus_from_debug_names): Likewise. + (dwarf2_read_debug_names): Likewise. + (dw2_debug_names_iterator::next): Likewise. + (dwarf2_initialize_objfile): Likewise. + (set_partial_user): Likewise. + (dwarf2_build_psymtabs_hard): Likewise. + (read_comp_units_from_section): Remove arguments, adjust to + std::vector change. + (create_all_comp_units): Adjust to std::vector and + read_comp_units_from_section changes. + (dwarf2_find_containing_comp_unit): Adjust to std::vector + change. + * dwarf-index-write.c (check_dwarf64_offsets): Likewise. + (psyms_seen_size): Likewise. + (write_gdbindex): Likewise. + (write_debug_names): Likewise. + +2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> + + * dwarf2read.c (create_cus_from_index_list): Replace objfile arg + with dwarf2_per_objfile. + (create_cus_from_index): Likewise. + (create_signatured_type_table_from_index): Likewise. + (dwarf2_read_index): Likewise. + (dwarf2_initialize_objfile): Likewise. + (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from + per_cu rather than get_dwarf2_per_objfile. + +2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> + + * dwarf2read.h (struct signatured_type): Forward declare. + (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>: + New methods. + * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from... + (dw2_get_cutu): ...this. + (dwarf2_per_objfile::get_cu): Rename from... + (dw2_get_cu): ...this. + (dwarf2_per_objfile::get_tu): New. + (create_addrmap_from_index): Adjust. + (create_addrmap_from_aranges): Adjust. + (dw2_find_last_source_symtab): Adjust. + (dw2_map_symtabs_matching_filename): Adjust. + (dw2_symtab_iter_next): Adjust. + (dw2_print_stats): Adjust. + (dw2_expand_all_symtabs): Adjust. + (dw2_expand_symtabs_with_fullname): Adjust. + (dw2_expand_marked_cus): Adjust. + (dw_expand_symtabs_matching_file_matcher): Adjust. + (dw2_map_symbol_filenames): Adjust. + (dw2_debug_names_iterator::next): Adjust. + (dwarf2_initialize_objfile): Adjust. + (set_partial_user): Adjust. + (dwarf2_build_psymtabs_hard): Adjust. + +2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> + + * dwarf2read.c (create_signatured_type_table_from_debug_names): + Remove unused variables. + (dw2_map_symtabs_matching_filename): Likewise. + (dwarf2_record_block_ranges): Likewise. + (dwarf2_read_addr_index): Likewise. + (follow_die_offset): Likewise. + +2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> + + * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET + to symbol_file_add_main. + +2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> + + PR mi/22299 + * mi/mi-console.c (do_fputc_async_safe): New. + (mi_console_file::write_async_safe): New. + (mi_console_file::flush): Adjust calls to fputstrn_unfiltered. + * mi/mi-console.h (class mi_console_file) <write_async_safe>: + New. + * ui-file.c (ui_file::putstrn): Adjust call to + fputstrn_unfiltered. + * utils.c (printchar): Replace do_fputs and do_fprintf + parameters by do_fputc. + (fputstr_filtered): Adjust call to printchar. + (fputstr_unfiltered): Likewise. + (fputstrn_filtered): Likewise. + (fputstrn_unfiltered): Add do_fputc parameter, pass to + printchar. + * utils.h (do_fputc_ftype): New typedef. + (fputstrn_unfiltered): Add do_fputc parameter. + +2018-04-07 Simon Marchi <simon.marchi@polymtl.ca> + + * regformats/i386/i386-avx.dat: Remove. + +2018-04-07 Simon Marchi <simon.marchi@ericsson.com> + + PR gdb/22979 + * amd64-tdep.c (amd64_none_init_abi): New function. + (amd64_x32_none_init_abi): New function. + (_initialize_amd64_tdep): Register handlers for x86-64 and + x64_32 with GDB_OSABI_NONE. + * osabi.c (gdbarch_init_osabi): Allow running handlers for the + GDB_OSABI_NONE osabi. + +2018-04-07 Simon Marchi <simon.marchi@ericsson.com> + + PR gdb/22980 + * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add + GDB_OSABI_NONE. + * arch-utils.c (gdbarch_info_init): Don't set info->osabi. + * osabi.c (gdb_osabi_names): Add "unknown" entry. + +2018-04-07 Simon Marchi <simon.marchi@ericsson.com> + + * common/byte-vector.h (char_vector): New type. + * target.h (target_read_alloc): Return + gdb::optional<byte_vector>. + (target_read_stralloc): Return gdb::optional<char_vector>. + (target_get_osdata): Return gdb::optional<char_vector>. + * target.c (target_read_alloc_1): Templatize. Replacement + manual memory management with vector. + (target_read_alloc): Change return type, adjust. + (target_read_stralloc): Change return type, adjust. + (target_get_osdata): Change return type, adjust. + * auxv.c (struct auxv_info) <length>: Remove. + <data>: Change type to gdb::optional<byte_vector>. + (auxv_inferior_data_cleanup): Free auxv_info with delete. + (get_auxv_inferior_data): Allocate auxv_info with new, adjust. + (target_auxv_search): Adjust. + (fprint_target_auxv): Adjust. + * avr-tdep.c (avr_io_reg_read_command): Adjust. + * linux-tdep.c (linux_spu_make_corefile_notes): Adjust. + (linux_make_corefile_notes): Adjust. + * osdata.c (get_osdata): Adjust. + * remote.c (remote_get_threads_with_qxfer): Adjust. + (remote_memory_map): Adjust. + (remote_traceframe_info): Adjust. + (btrace_read_config): Adjust. + (remote_read_btrace): Adjust. + (remote_pid_to_exec_file): Adjust. + * solib-aix.c (solib_aix_get_library_list): Adjust. + * solib-dsbt.c (decode_loadmap): Don't free buf. + (dsbt_get_initial_loadmaps): Adjust. + * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust. + * solib-target.c (solib_target_current_sos): Adjust. + * tracepoint.c (sdata_make_value): Adjust. + * xml-support.c (xinclude_start_include): Adjust. + (xml_fetch_content_from_file): Adjust. + * xml-support.h (xml_fetch_another): Change return type. + (xml_fetch_content_from_file): Change return type. + * xml-syscall.c (xml_init_syscalls_info): Adjust. + * xml-tdesc.c (file_read_description_xml): Adjust. + (fetch_available_features_from_target): Change return type. + (target_fetch_description_xml): Adjust. + (target_read_description_xml): Adjust. + +2018-04-06 Tom Tromey <tom@tromey.com> + + * value.c (~value): Update. + (struct value) <contents>: Now unique_xmalloc_ptr. + (value_contents_bits_eq, allocate_value_contents) + (value_contents_raw, value_contents_all_raw) + (value_contents_for_printing, value_contents_for_printing_const) + (set_value_enclosing_type): Update. + +2018-04-06 Tom Tromey <tom@tromey.com> + + * value.c (range_s): Remove typedef, VEC. + (struct range): Add operator<. + (range_lessthan): Remove. + (ranges_contain): Change type. + (~value): Update. + (struct value) <unavailable, optimized_out>: Now std::vector. + (value_entirely_available) + (value_entirely_covered_by_range_vector) + (value_entirely_unavailable, value_entirely_optimized_out): + Update. + (insert_into_bit_range_vector): Change argument type. + (find_first_range_overlap): Likewise. + (struct ranges_and_idx, value_contents_bits_eq) + (require_not_optimized_out, require_available): Update. + (ranges_copy_adjusted): Change argument types. + (value_optimized_out, value_copy, value_fetch_lazy): Update. + +2018-04-06 Tom Tromey <tom@tromey.com> + + * value.c (~value): Update. + (struct value) <parent>: Now a value_ref_ptr. + (value_parent, set_value_parent, value_address, value_copy): + Update. + +2018-04-06 Tom Tromey <tom@tromey.com> + + * value.c (struct value): Add constructor, destructor, and member + initializers. + (allocate_value_lazy, value_decref): Update. + +2018-04-06 Tom Tromey <tom@tromey.com> + + * value.c (struct value) <released, next>: Remove. + (all_values): Now a std::vector. + (allocate_value_lazy): Update. + (value_next): Remove. + (value_mark, value_free_to_mark, release_value) + (value_release_to_mark): Update. + +2018-04-06 Tom Tromey <tom@tromey.com> + + * value.h (fetch_subexp_value, value_release_to_mark): Update. + (free_value_chain): Remove. + * value.c (free_value_chain): Remove. + (value_release_to_mark): Return a std::vector. + * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a + std::vector. + (check_condition): Update. + * eval.c (fetch_subexp_value): Change "val_chain" to a + std::vector. + * breakpoint.c (update_watchpoint): Update. + (can_use_hardware_watchpoint): Change "vals" to a std::vector. + +2018-04-06 Tom Tromey <tom@tromey.com> + + * value.h (free_all_values): Remove. + * value.c (free_all_values): Remove. + +2018-04-06 Tom Tromey <tom@tromey.com> + + * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk) + (value_history_chain, value_history_count): Remove. + (value_history): New global. + (record_latest_value, access_value_history, show_values) + (preserve_values): Update. + +2018-04-06 Tom Tromey <tom@tromey.com> + + * varobj.h (struct varobj) <value>: Now a value_ref_ptr. + * varobj.c (varobj_set_display_format, varobj_set_value) + (install_default_visualizer, construct_visualizer) + (install_new_value, ~varobj, varobj_get_value_type) + (my_value_of_variable, varobj_editable_p): Update. + * c-varobj.c (c_describe_child, c_value_of_variable) + (cplus_number_of_children, cplus_describe_child): Update. + * ada-varobj.c (ada_number_of_children, ada_name_of_child) + (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child) + (ada_value_of_variable, ada_value_is_changeable_p): Update. + +2018-04-06 Tom Tromey <tom@tromey.com> + + * printcmd.c (last_examine_address): Change type to + value_ref_ptr. + (do_examine, x_command): Update. + +2018-04-06 Tom Tromey <tom@tromey.com> + + * value.c (release_value): Update. + * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr. + (struct bpstats) <val>: Now a value_ref_ptr. + * breakpoint.c (update_watchpoint, breakpoint_init_inferior) + (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) + (~watchpoint, print_it_watchpoint, watch_command_1) + (invalidate_bp_value_on_memory_change): Update. + +2018-04-06 Tom Tromey <tom@tromey.com> + + * varobj.c (varobj_clear_saved_item) + (update_dynamic_varobj_children, install_new_value, ~varobj): + Update. + * value.h (value_incref): Move declaration earlier. + (value_decref): Rename from value_free. + (struct value_ref_policy): New. + (value_ref_ptr): New typedef. + (struct value_deleter): Remove. + (gdb_value_up): Remove typedef. + (release_value): Change return type. + (release_value_or_incref): Remove. + * value.c (set_value_parent): Update. + (value_incref): Change return type. + (value_decref): Rename from value_free. + (value_free_to_mark, free_all_values, free_value_chain): Update. + (release_value): Return value_ref_ptr. + (release_value_or_incref): Remove. + (record_latest_value, set_internalvar, clear_internalvar): + Update. + * stack.c (info_frame_command): Don't call value_free. + * python/py-value.c (valpy_dealloc, valpy_new) + (value_to_value_object): Update. + * printcmd.c (do_examine): Update. + * opencl-lang.c (lval_func_free_closure): Update. + * mi/mi-main.c (register_changed_p): Don't call value_free. + * mep-tdep.c (mep_frame_prev_register): Don't call value_free. + * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free. + * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call + value_free. + * guile/scm-value.c (vlscm_free_value_smob) + (vlscm_scm_from_value): Update. + * frame.c (frame_register_unwind, frame_unwind_register_signed) + (frame_unwind_register_unsigned, get_frame_register_bytes) + (put_frame_register_bytes): Don't call value_free. + * findvar.c (address_from_register): Don't call value_free. + * dwarf2read.c (dwarf2_compute_name): Don't call value_free. + * dwarf2loc.c (entry_data_value_free_closure) + (value_of_dwarf_reg_entry, free_pieced_value_closure) + (dwarf2_evaluate_loc_desc_full): Update. + * breakpoint.c (update_watchpoint, breakpoint_init_inferior) + (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check) + (~watchpoint, watch_command_1) + (invalidate_bp_value_on_memory_change): Update. + * alpha-tdep.c (alpha_register_to_value): Don't call value_free. + +2018-04-06 Simon Marchi <simon.marchi@polymtl.ca> + + PR gdb/23022 + * warning.m4: Add -Wno-error=deprecated-register. + * configure: Re-generate. + +2018-04-05 Tom Tromey <tom@tromey.com> + + * linespec.h: Remove include of "vec.h". + +2018-04-05 Tom Tromey <tom@tromey.com> + + * linespec.c (typep): Remove typedef. + (find_methods, find_superclass_methods): Take a std::vector. + (find_method): Use std::vector. + +2018-04-05 Tom Tromey <tom@tromey.com> + + * utils.c (compare_strings): Remove. + * utils.h (compare_strings): Remove. + * objc-lang.h (find_imps): Update. + * objc-lang.c (find_methods): Take a std::vector. + (uniquify_strings, find_imps): Likewise. + * linespec.c (find_methods): Take a std::vector. + (decode_objc): Use std::vector. + (add_all_symbol_names_from_pspace, find_superclass_methods): Take + a std::vector. + (find_method, find_function_symbols): Use std::vector. + +2018-04-05 Tom Tromey <tom@tromey.com> + + * completer.c (completion_tracker::completion_tracker): Remove + cast. + (completion_tracker::discard_completions): Likewise. + * breakpoint.c (ambiguous_names_p): Remove cast. + * ada-lang.c (_initialize_ada_language): Remove cast. + * utils.h (streq): Update. + (streq_hash): Add new declaration. + * utils.c (streq): Return bool. + (streq_hash): New function. + +2018-04-05 Tom Tromey <tom@tromey.com> + + * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>: + Remove a string copy. + +2018-04-05 Tom Tromey <tom@tromey.com> + + * linespec.c (filter_results): Use std::vector. + (decode_line_2, decode_line_full): Update. + +2018-04-05 Tom Tromey <tom@tromey.com> + + * linespec.c (canonical_to_fullform): Return std::string. + (filter_results): Update. + (struct decode_line_2_item): Add constructor. + <fullform, displayform>: Now std::string. + (decode_line_2_compare_items): Now a std::sort comparator. + (decode_line_2): Update. + +2018-04-05 Tom Tromey <tom@tromey.com> + + * linespec.c (copy_token_string): Return a unique_xmalloc_ptr. + (unexpected_linespec_error): Update. + (linespec_parse_basic, parse_linespec): Update. + +2018-04-05 Tom Tromey <tom@tromey.com> + + * linespec.c (linespec_parse_basic): Reindent. + +2018-04-05 Tom Tromey <tom@tromey.com> + + * minsyms.h (iterate_over_minimal_symbols): Update. + * minsyms.c (iterate_over_minimal_symbols): Take a + gdb::function_view. + * linespec.c (struct collect_minsyms): Remove. + (compare_msyms): Now a std::sort comparator. + (add_minsym): Add parameters. + (search_minsyms_for_name): Update. Use std::vector. + +2018-04-03 Tom Tromey <tom@tromey.com> + + * mipsread.c (read_alphacoff_dynamic_symtab): Use + gdb::byte_vector. + +2018-04-02 Weimin Pan <weimin.pan@oracle.com> + + * MAINTAINERS (Write After Approval): Add Weimin Pan. + +2018-04-02 Weimin Pan <weimin.pan@oracle.com> + + PR gdb/16959 + * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when + printing static type. + +2018-04-01 Tom Tromey <tom@tromey.com> + + * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector. + (rs6000_xfer_shared_libraries): Update. + +2018-04-01 Simon Marchi <simon.marchi@polymtl.ca> + + * common/gdb_vecs.h (char_ptr): Remove. + * tracepoint.c (encode_actions_1): Remove usage of char_ptr. + +2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> + + * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC + with std::vector. + * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove. + +2018-03-30 Simon Marchi <simon.marchi@polymtl.ca> + + * tracepoint.h (struct uploaded_tp): Initialize fields. + <actions, step_actions, cmd_strings>: Change type to + std::vector<char *>. + * tracepoint.c (get_uploaded_tp): Allocate with new. + (free_uploaded_tps): Free with delete. + (parse_tracepoint_definition): Adjust to std::vector change. + * breakpoint.c (read_uploaded_action): Likewise. + (create_tracepoint_from_upload): Likewise. + * ctf.c (ctf_write_uploaded_tp): Likewise. + (SET_ARRAY_FIELD): Likewise. + * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise. + +2018-03-30 Tom Tromey <tom@tromey.com> + + * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return + std::unique_ptr. + (svr4_keep_data_in_core): Update. + (svr4_read_so_list): Update. + +2018-03-30 Tom Tromey <tom@tromey.com> + + * windows-nat.c (handle_output_debug_string, handle_exception): + Update. + * target.h (target_read_string): Update. + * target.c (target_read_string): Change "string" to + unique_xmalloc_ptr. + * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): + Update. + * solib-frv.c (frv_current_sos): Update. + * solib-dsbt.c (dsbt_current_sos): Update. + * solib-darwin.c (darwin_current_sos): Update. + * linux-thread-db.c (inferior_has_bug): Update. + * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>: + Update. Remove alloca. + * ada-lang.c (ada_main_name): Update. + +2018-03-30 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove. + (struct dwo_file_deleter): New. + (dwo_file_up): New typedef. + (open_and_init_dwo_file): Use dwo_file_up. + (free_dwo_file_cleanup): Remove. + +2018-03-30 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (free_dwo_file): Remove "objfile" parameter. + (free_dwo_file_cleanup, free_dwo_file_from_slot): Update. + +2018-03-30 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (class free_cached_comp_units): New class. + (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it. + (free_cached_comp_units): Remove function. + +2018-03-30 Tom Tromey <tom@tromey.com> + + * utils.h (make_cleanup_unpush_target): Remove. + * inf-ptrace.c (struct target_unpusher): New. + (target_unpush_up) New typedef. + (inf_ptrace_create_inferior, inf_ptrace_attach): Use + target_unpush_up. + * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove. + +2018-03-27 Tom Tromey <tom@tromey.com> + + * utils.c (prompt_for_continue): Use unique_xmalloc_ptr. + +2018-03-27 Pedro Alves <palves@redhat.com> + Tom Tromey <tom@tromey.com> + + * top.c (class gdb_readline_wrapper_cleanup): Add constructor, + destructor. Now a class. + (gdb_readline_wrapper_cleanup): Remove function. + (gdb_readline_wrapper): Remove cleanups. + +2018-03-27 Tom Tromey <tom@tromey.com> + + * typeprint.h (struct type_print_options) <local_typedefs, + global_typedefs>: Remove "struct" keyword. + (class typedef_hash_table): New class. + (recursively_update_typedef_hash, add_template_parameters) + (create_typedef_hash, free_typedef_hash, copy_typedef_hash) + (find_typedef_in_hash): Don't declare. + * typeprint.c (struct typedef_hash_table): Move to typeprint.h. + (typedef_hash_table::recursively_update): Rename from + recursively_update_typedef_hash. Now a member. + (typedef_hash_table::add_template_parameters): Rename from + add_template_parameters. Now a member. + (typedef_hash_table::typedef_hash_table): Now a constructor; + rename from create_typedef_hash. + (typedef_hash_table::~typedef_hash_table): Now a destructor; + rename from free_typedef_hash. + (do_free_typedef_hash, make_cleanup_free_typedef_hash) + (do_free_global_table): Remove. + (typedef_hash_table::typedef_hash_table): New constructor; renamed + from copy_type_recursive. + (create_global_typedef_table): Remove. + (typedef_hash_table::find_global_typedef): Now a member of + typedef_hash_table. + (typedef_hash_table::find_typedef): Rename from + find_typedef_in_hash; now a member. + (whatis_exp): Update. + * extension.h (struct ext_lang_type_printers): Add constructor and + destructor. + (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't + declare. + * extension.c (ext_lang_type_printers::ext_lang_type_printers): + Now a constructor; rename from start_ext_lang_type_printers. + (ext_lang_type_printers): Now a destructor; rename from + free_ext_lang_type_printers. + * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1): + Update. + (c_type_print_base_struct_union): Update. Remove cleanups. + +2018-03-27 Tom Tromey <tom@tromey.com> + + * dwarf-index-write.c: Include <cmath>. + +2018-03-27 Joel Brobecker <brobecker@adacore.com> + + * NEWS: Add entry describing new "set|show varsize-limit" command. + * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit" + command. + * printcmd.c (_initialize_printcmd): Add "set var" alias of + "set variable". + +2018-03-27 Simon Marchi <simon.marchi@ericsson.com> + + * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and + dwarf-index-write.c + (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h. + * dwarf-index-common.c: New file. + * dwarf-index-common.h: New file. + * dwarf-index-write.c: New file. + * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h. + (struct dwarf2_section_info): Move from here. + (dwarf2_section_info_def): Likewise. + (DEF_VEC_O (dwarf2_section_info_def)): Likewise. + (offset_type): Likewise. + (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise. + (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise. + (DW2_GDB_INDEX_CU_SET_VALUE): Likewise. + (byte_swap): Likewise. + (MAYBE_SWAP): Likewise. + (dwarf2_per_cu_ptr): Likewise. + (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise. + (struct tu_stats): Likewise. + (struct dwarf2_per_objfile): Likewise. + (struct dwarf2_per_cu_data): Likewise. + (struct signatured_type): Likewise. + (sig_type_ptr): Likewise. + (DEF_VEC_P (sig_type_ptr)): Likewise. + (INDEX4_SUFFIX): Likewise. + (INDEX5_SUFFIX): Likewise. + (DEBUG_STR_SUFFIX): Likewise. + (dwarf2_read_section): Make non-static. + (mapped_index_string_hash): Move from here. + (dwarf5_djb_hash): Likewise. + (file_write): Likewise. + (class data_buf): Likewise. + (struct symtab_index_entry): Likewise. + (struct mapped_symtab): Likewise. + (find_slot): Likewise. + (hash_expand): Likewise. + (add_index_entry): Likewise. + (uniquify_cu_indices): Likewise. + (class c_str_view): Likewise. + (class c_str_view_hasher): Likewise. + (class vector_hasher): Likewise. + (write_hash_table): Likewise. + (psym_index_map): Likewise. + (struct addrmap_index_data): Likewise. + (add_address_entry): Likewise. + (add_address_entry_worker): Likewise. + (write_address_map): Likewise. + (symbol_kind): Likewise. + (write_psymbols): Likewise. + (struct signatured_type_index_data): Likewise. + (write_one_signatured_type): Likewise. + (recursively_count_psymbols): Likewise. + (recursively_write_psymbols): Likewise. + (class debug_names): Likewise. + (check_dwarf64_offsets): Likewise. + (psyms_seen_size): Likewise. + (write_gdbindex): Likewise. + (write_debug_names): Likewise. + (assert_file_size): Likewise. + (write_psymtabs_to_index): Likewise. + (save_gdb_index_command): Likewise. + (_initialize_dwarf2_read): Don't register the "save gdb-index" + command. + * dwarf2read.h: New file. + +2018-03-27 Joel Brobecker <brobecker@adacore.com> + + PR gdb/22670 + * dwarf2read.c (dwarf2_physname): Do not return the demangled + symbol name if the CU's language stores symbol names in linkage + format. + * language.h (struct language_defn) + <la_store_sym_names_in_linkage_form_p>: New field. Adjust + all instances of this struct. + +2018-03-26 Tom Tromey <tom@tromey.com> + + * stack.c (backtrace_command_1): Remove verbose code. + +2018-03-26 Tom Tromey <tom@tromey.com> + + * python/py-framefilter.c (py_print_type): Don't catch + exceptions. Return void. + (py_print_value): Likewise. + (py_print_single_arg): Likewise. + (enumerate_args): Don't catch exceptions. + (py_print_args): Likewise. + (py_print_frame): Likewise. + (gdbpy_apply_frame_filter): Catch exceptions here. + +2018-03-26 Tom Tromey <tom@tromey.com> + + * stack.c (_initialize_stack): Remove trailing newlines from help + text. Add "Usage" line to "backtrace" help. + +2018-03-26 Tom Tromey <tom@tromey.com> + + PR python/16486: + * python/py-framefilter.c (py_print_args): Call wrap_hint. + +2018-03-26 Tom Tromey <tom@tromey.com> + + * python/py-framefilter.c (py_print_single_arg): Return + EXT_LANG_BT_ERROR from catch. + +2018-03-26 Tom Tromey <tom@tromey.com> + + PR backtrace/15584: + * stack.c (backtrace_command_1): Move some code into no-filters + "if". + +2018-03-26 Tom Tromey <tom@tromey.com> + + * python/py-framefilter.c (throw_quit_or_print_exception): New + function. + (gdbpy_apply_frame_filter): Use it. + +2018-03-26 Tom Tromey <tom@tromey.com> + + PR cli/17716: + * python/py-framefilter.c (py_print_type, py_print_value) + (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use + RETURN_MASK_ERROR. + +2018-03-26 Tom Tromey <tom@tromey.com> + + * python/py-framefilter.c (enumerate_args): Use + gdb::unique_xmalloc_ptr. + +2018-03-26 Tom Tromey <tom@tromey.com> + + * python/py-framefilter.c (py_print_frame): Return + EXT_LANG_BT_OK. + (gdbpy_apply_frame_filter): Update comment. + * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>: + Remove. + <EXT_LANG_BT_NO_FILTERS>: Change value. + +2018-03-26 Tom Tromey <tom@tromey.com> + + PR backtrace/15582: + * stack.c (backtrace_command): Parse "hide" argument. + * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE. + * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New + constant. + +2018-03-26 Tom Tromey <tom@tromey.com> + + * stack.c (backtrace_command_1): Remove "show_locals" parameter, + add "flags". + (backtrace_command): Remove "fulltrace", add "flags". + +2018-03-26 Tom Tromey <tom@tromey.com> + + * stack.c (backtrace_command): Rewrite command line parsing. + +2018-03-26 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2read.c (DEF_VEC_I(offset_type)): Remove. + +2018-03-26 Simon Marchi <simon.marchi@ericsson.com> + + * filename-seen-cache.h: Add include guard. + +2018-03-26 Keith Seitz <keiths@redhat.com> + + * symfile.c (place_section): Remove "struct" from section_addr_info + in comment. + * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove + "struct" keyword from section_addr_info. + +2018-03-26 Alan Hayward <alan.hayward@arm.com> + + * regformats/regdef.h (reg): Add constructors. + +2018-03-25 Pedro Alves <palves@redhat.com> + + * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE + if then/else bodies in var_func_name extraction. + +2018-03-23 Weimin Pan <weimin.pan@oracle.com> + + * minsyms.c (lookup_minimal_symbol_and_objfile): Use + lookup_minimal_symbol() to find symbol entry. + * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment. + +2018-03-23 Keith Seitz <keiths@redhat.com> + + PR c++/22968 + * dwarf2read.c (scan_partial_symbols): Scan structs/classes for + nested type definitions for C++, too. + +2018-03-23 Tom Tromey <tom@tromey.com> + + * machoread.c (struct oso_el): Add a constructor. Don't define as + a typedef. + (macho_register_oso): Remove. + (macho_symtab_read): Take a std::vector. + (oso_el_compare_name): Now a std::sort comparator. + (macho_symfile_read_all_oso): Take a std::vector. + (macho_symfile_read): Use std::vector. Remove cleanups. + +2018-03-22 Tom Tromey <tom@tromey.com> + + * record-full.c (record_full_exec_insn): Use gdb::byte_vector. + (record_full_goto_bookmark): Use std::string. + +2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> + + PR tdep/18295 + * rs6000-tdep.c (skip_prologue): Match both stwux and stdux + a single mask. + +2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> + + * rs6000-tdep.c (store_insn_p): New function. + (skip_prologue): New variable alloca_reg_offset. Set lr_reg + and cr_reg to their unshifted values. Use store_insn_p to + match LR saves using either R1 or fdata->alloca_reg. Use + store_insn_p to match CR saves. Set alloca_reg_offset + when alloca_reg and framep are set. Remove lr_reg shift + when assigning to fdata->lr_register. + +2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com> + + * linux-tdep.c (linux_info_proc): For "info proc cmdline", print + command line args instead of emitting a warning. + +2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> + + * tracepoint.h (struct static_tracepoint_marker): Initialize + fields, define default constructor, move constructor and move + assignment, disable the rest. + <str_id, extra>: Make std::string. + (release_static_tracepoint_marker): Remove. + (free_current_marker): Remove. + * tracepoint.c (free_current_marker): Remove. + (parse_static_tracepoint_marker_definition): Adjust to + std::string, use new hex2str overload. + (release_static_tracepoint_marker): Remove. + (print_one_static_tracepoint_marker): Get marker by reference + and adjust to std::string. + (info_static_tracepoint_markers_command): Adjust to std::vector + changes + * target.h (static_tracepoint_marker_p): Remove typedef. + (DEF_VEC_P(static_tracepoint_marker_p)): Remove. + (struct target_ops) <to_static_tracepoint_marker_at>: Return + bool. + <to_static_tracepoint_markers_by_strid>: Return std::vector. + * target-debug.h + (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove. + (target_debug_print_std_vector_static_tracepoint_marker): New. + (target_debug_print_struct_static_tracepoint_marker_p): Rename + to... + (target_debug_print_static_tracepoint_marker_p): ... this. + * target-delegates.c: Re-generate. + * breakpoint.h (struct tracepoint) <static_trace_marker_id>: + Make std::string. + * breakpoint.c (init_breakpoint_sal): Adjust to std::string. + (decode_static_tracepoint_spec): Adjust to std::vector. + (tracepoint_print_one_detail): Adjust to std::string. + (strace_marker_decode_location): Adjust to std::string. + (update_static_tracepoint): Adjust to std::string, remove call + to release_static_tracepoint_marker. + * linux-nat.c (linux_child_static_tracepoint_markers_by_strid): + Adjust to std::vector. + * remote.c (remote_static_tracepoint_marker_at): Return bool. + (remote_static_tracepoint_markers_by_strid): Adjust to + std::vector. + * common/rsp-low.h (hex2str): New overload with explicit count + of bytes. + * common/rsp-low.c (hex2str): New overload with explicit count + of bytes. + * unittests/rsp-low-selftests.c (test_hex2str): New function. + (_initialize_rsp_low_selftests): Add test_hex2str test. + * unittests/tracepoint-selftests.c + (test_parse_static_tracepoint_marker_definition): Adjust to + std::string. + +2018-03-22 Simon Marchi <simon.marchi@polymtl.ca> + + * tracepoint.c (parse_static_tracepoint_marker_definition): + Consider case where the definition is followed by more + definitions. + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + tracepoint-selftests.c. + * unittests/tracepoint-selftests.c: New. + +2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> + + * MAINTAINERS (Write After Approval): Add Pedro Franco de + Carvalho. + +2018-03-20 Stephen Roberts <stephen.roberts@arm.com> + + * symtab.c (find_pc_sect_line): fixed indentation. + +2018-03-20 Stephen Roberts <stephen.roberts@arm.com> + + * symtab.c (find_pc_sect_line): now uses binary search. + +2018-03-19 Tom Tromey <tom@tromey.com> + + * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain + "IDENT" production. + +2018-03-19 Pedro Alves <palves@redhat.com> + Tom Tromey <tom@tromey.com> + + * unittests/observable-selftests.c: New file. + * common/observable.h: New file. + * observable.h: New file. + * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c, + arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c, + breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c, + corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c, + extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c, + infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c, + linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c, + mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c, + ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c, + python/py-breakpoint.c, python/py-finishbreakpoint.c, + python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c, + record-btrace.c, record-full.c, record.c, regcache.c, remote.c, + riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c, + spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c, + symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c, + tui/tui-interp.c, valops.c: Update all users. + * tui/tui-hooks.c (tui_bp_created_observer) + (tui_bp_deleted_observer, tui_bp_modified_observer) + (tui_inferior_exit_observer, tui_before_prompt_observer) + (tui_normal_stop_observer, tui_register_changed_observer): + Remove. + (tui_observers_token): New global. + (attach_or_detach, tui_attach_detach_observers): New functions. + (tui_install_hooks, tui_remove_hooks): Use + tui_attach_detach_observers. + * record-btrace.c (record_btrace_thread_observer): Remove. + (record_btrace_thread_observer_token): New global. + * observer.sh: Remove. + * observer.c: Rename to observable.c. + * observable.c (namespace gdb_observers): Define new objects. + (observer_debug): Move into gdb_observers namespace. + (struct observer, struct observer_list, xalloc_observer_list_node) + (xfree_observer_list_node, generic_observer_attach) + (generic_observer_detach, generic_observer_notify): Remove. + (_initialize_observer): Update. + Don't include observer.inc. + * Makefile.in (generated_files): Remove observer.h, observer.inc. + (clean mostlyclean): Likewise. + (observer.h, observer.inc): Remove targets. + (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c. + (COMMON_SFILES): Use observable.c, not observer.c. + * .gitignore: Remove observer.h. + +2018-03-18 Tom Tromey <tom@tromey.com> + + * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use + gdb::def_vector. + (bfd_lookup_symbol_from_dyn_symtab): Likewise. + +2018-03-17 Tom Tromey <tom@tromey.com> + + * auto-load.c (auto_load_objfile_script_1): Use std::string. + +2018-03-17 Tom Tromey <tom@tromey.com> + + * target.c (class scoped_target_fd): New. + (target_fileio_close_cleanup): Remove. + (target_fileio_read_alloc_1): Use scoped_target_fd. + +2018-03-16 Simon Marchi <simon.marchi@polymtl.ca> + + * silent-rules.mk: New. + * Makefile.in: Include silent-rules.mk + (srcdir, VPATH, top_srcdir): Move up. + (COMPILE): Add ECHO_CXX. + (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD. + (init.c): Add ECHO_INIT_C. + (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD. + (version.c): Add ECHO_GEN. + (printcmd.o): Add ECHO_CXX. + (target-float.o): Add ECHO_CXX. + (ada-exp.o): Add ECHO_CXX. + (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN. + (insight$(EXEEXT)): Add ECHO_CXXLD. + * gnulib/configure.ac: Add AM_SILENT_RULES. + * gnulib/aclocal.m4: Re-generate. + * gnulib/configure: Re-generate. + * gnulib/import/Makefile.in: Re-generate. + +2018-03-16 Tom Tromey <tom@tromey.com> + + * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs". + * utils.h (make_cleanup_free_section_addr_info): Don't declare. + * utils.c (do_free_section_addr_info) + (make_cleanup_free_section_addr_info): Remove. + * symfile.h (struct other_sections): Add constructor. + (struct section_addr_info): Remove. + (section_addr_info): New typedef. + (struct sym_fns) <sym_offsets>: Change type of parameter. + (build_section_addr_info_from_objfile) + (relative_addr_info_to_section_offsets, addr_info_make_relative) + (default_symfile_offsets, symbol_file_add) + (symbol_file_add_from_bfd) + (build_section_addr_info_from_section_table): Update. + (alloc_section_addr_info, free_section_addr_info): Don't declare. + * symfile.c (alloc_section_addr_info): Remove. + (build_section_addr_info_from_section_table): Change return type. + Update. + (build_section_addr_info_from_bfd) + (build_section_addr_info_from_objfile): Likewise. + (free_section_addr_info): Remove. + (relative_addr_info_to_section_offsets): Change type of "addrs". + (addrs_section_compar): Now a std::sort comparator. + (addrs_section_sort): Change return type. + (addr_info_make_relative): Change type of "addrs". Update. + (default_symfile_offsets, syms_from_objfile_1) + (syms_from_objfile, symbol_file_add_with_addrs): Likewise. + (symbol_file_add_separate): Update. + (symbol_file_add): Change type of "addrs". Update. + (add_symbol_file_command): Update. Remove cleanups. + * symfile-mem.c (symbol_file_add_from_memory): Update. Remove + cleanups. + * symfile-debug.c (debug_sym_offsets): Change type of "info". + * solib.c (solib_read_symbols): Update. + * objfiles.c (objfile_relocate): Update. Remove cleanups. + * machoread.c (macho_symfile_offsets): Update. + * jit.c (jit_bfd_try_read_symtab): Update. + +2018-03-15 Simon Marchi <simon.marchi@polymtl.ca> + + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + unittests/utils-selftests.c. + * unittests/utils-selftests.c: New file. + +2018-03-14 Tom Tromey <tom@tromey.com> + + PR cli/14977: + * printcmd.c (printf_c_string, printf_wide_c_string): Special case + for NULL. + +2018-03-14 Tom Tromey <tom@tromey.com> + + PR cli/19918: + * printcmd.c (printf_pointer): Allow "-" in format. + +2018-03-14 Tom Tromey <tom@tromey.com> + + * printcmd.c (_initialize_printcmd): Add usage to printf. + +2018-03-14 Yao Qi <qiyao@sourceware.org> + + * MAINTAINERS: Update my email address. + +2018-03-13 Tom Tromey <tom@tromey.com> + + * machoread.c (macho_check_dsym): Change filenamep to a + std::string*. + (macho_symfile_read): Update. + * symfile.c (load_command): Use std::string. + +2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization + to error message string. + (riscv_register_name): Use xsnprintf instead of sprintf. + (riscv_insn::fetch_instruction): Use gdb_assert instead of + internal_error. + (riscv_print_arg_location): Use gdb_assert_not_reached instead of + error. + (riscv_push_dummy_call): Likewise. + +2018-03-12 Tom Tromey <tom@tromey.com> + + * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix): + Use gdb::byte_vector. + * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector. + +2018-03-12 Yao Qi <yao.qi@linaro.org> + + * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change + parameter type to readable_regcache. + * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update + the declaration. + +2018-03-11 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (struct nextfield): Add initializers. + (struct nextfnfield): Remove. + (struct fnfieldlist): Add initializers. Remove "length" and + "head", use std::vector. + (struct decl_field_list): Remove. + (struct field_info): Add initializers. + <fields, baseclasses>: Now std::vector. + <nbaseclasses, nfnfields, typedef_field_list_count, + nested_types_list_count>: Remove. + (dwarf2_add_field, dwarf2_add_type_defn) + (dwarf2_attach_fields_to_type, dwarf2_add_member_fn) + (dwarf2_attach_fn_fields_to_type, handle_struct_member_die) + (process_structure_scope): Update. + +2018-03-11 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable + for use by std::sort. + (build_type_psymtabs_1): Use std::vector. + +2018-03-09 Eli Zaretskii <eliz@gnu.org> + + * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK, + and LIBMPFR in the printed configuration. + +2018-03-08 Tom Tromey <tom@tromey.com> + + * source.c (get_filename_and_charpos): Use scoped_fd. + * nto-procfs.c (procfs_open_1): Use scoped_fd. + (procfs_pidlist): Likewise. + * procfs.c (proc_get_LDT_entry): Use scoped_fd. + (iterate_over_mappings): Likewise. + +2018-03-08 Tom Tromey <tom@tromey.com> + + * infcall.c (struct call_return_meta_info) + <stack_temporaries_enabled>: Remove. + (get_call_return_value, call_function_by_hand_dummy): Update. + * thread.c (disable_thread_stack_temporaries): Remove. + (enable_thread_stack_temporaries): Remove. + (thread_stack_temporaries_enabled_p): Return bool. + (push_thread_stack_temporary, value_in_thread_stack_temporaries) + (get_last_thread_stack_temporary): Update. + * eval.c (evaluate_subexp): Update. + * gdbthread.h (class enable_thread_stack_temporaries): Now a + class, not a function. + (value_ptr, value_vec): Remove typedefs. + (class thread_info) <stack_temporaries_enabled>: Now bool. + <stack_temporaries>: Now a std::vector. + (thread_stack_temporaries_enabled_p) + (value_in_thread_stack_temporaries): Return bool. + +2018-03-08 Simon Marchi <simon.marchi@ericsson.com> + + * remote.c (putpkt_binary): Fix omitted bytes reporting. + (getpkt_or_notif_sane_1): Likewise. + +2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> + + * build-id.c (build_id_to_debug_bfd): Use std::string. + +2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> + + * build-id.c (find_separate_debug_file_by_buildid): Return + std::string. + * build-id.h (find_separate_debug_file_by_buildid): Return + std::string. + * coffread.c (coff_symfile_read): Adjust to std::string. + * elfread.c (elf_symfile_read): Adjust to std::string. + * symfile.c (separate_debug_file_exists): Change parameter to + std::string. + (find_separate_debug_file): Return std::string. + (find_separate_debug_file_by_debuglink): Return std::string. + * symfile.h (find_separate_debug_file_by_debuglink): Return + std::string. + +2018-03-08 Simon Marchi <simon.marchi@polymtl.ca> + + * common/xml-utils.c (xml_escape_text): Move code to... + (xml_escape_text_append): ... this new function. + * common/xml-utils.h (xml_escape_text_append): New declaration. + * unittests/xml-utils-selftests.c (test_xml_escape_text_append): + New function. + (_initialize_xml_utils): register test_xml_escape_text_append as + a selftest. + +2018-03-07 Alan Hayward <alan.hayward@arm.com> + + * defs.h: Remove MAX_REGISTER_SIZE. + * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE + asserts. + * python/py-unwind.c (pyuw_sniffer): Likewise. + +2018-03-07 Tom Tromey <tom@tromey.com> + + * linux-tdep.c (linux_info_proc): Update. + * target.h (struct target_ops) <to_fileio_readlink>: Return + optional<string>. + (target_fileio_readlink): Return optional<string>. + * remote.c (remote_hostio_readlink): Return optional<string>. + * inf-child.c (inf_child_fileio_readlink): Return + optional<string>. + * target.c (target_fileio_readlink): Return optional<string>. + +2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com> + + * regcache.c (cooked_read_test): Add riscv to the list of + architectures that have a save_reggroup. + +2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com> + + * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given + value is not a dynamic class object. + +2018-03-06 Tom Tromey <tom@tromey.com> + + * rust-exp.y: Formatting fixes. + +2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_register_name): Remove target description + support. + (riscv_gdbarch_init): Remove target description check. + +2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c: Remove 'Contributed by ...' lines from header + comment. + * riscv-tdep.h: Likewise. + +2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_pseudo_register_read): Delete. + (riscv_pseudo_register_write): Delete. + (riscv_gdbarch_init): Remove all use of pseudo registers. + +2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> + + * record-btrace.c (btrace_print_lines): Replace cleanup + parameter with RAII equivalents. + (btrace_insn_history): Replace cleanup with RAII equivalents. + * ui-out.h (make_cleanup_ui_out_list_begin_end, + make_cleanup_ui_out_tuple_begin_end): Remove. + * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end, + make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end, + make_cleanup_ui_out_list_begin_end): Remove. + +2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> + + * record-btrace.c (record_btrace_maybe_mark_async_event): Change + parameter types to std::vector. Use bool. + (record_btrace_wait): Replace VEC(tp_t) with + std::vector<thread_info *>. + * common/gdb_vecs.h (unordered_remove, ordered_remove): New. + +2018-03-06 Simon Marchi <simon.marchi@polymtl.ca> + + * record-btrace.c (record_btrace_disable_callback): Remove. + (struct scoped_btrace_disable): New. + (record_btrace_open): Use scoped_btrace_disable. + +2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for + reading values from registers. + +2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz + where appropriate. + +2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> + + * riscv-tdep.c (riscv_print_arg_location): Add header comment, + change parameter type. Use GDB's print functions, and use + core_addr_to_string where appropriate. + (riscv_push_dummy_call): Use core_addr_to_string where + appropriate, update call to riscv_print_arg_location, and reindent + a few lines. + (riscv_return_value): Update call to riscv_print_arg_location. + +2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> + Tim Newsome <tim@sifive.com> + Albert Ou <a0u@eecs.berkeley.edu> + Darius Rad <darius@bluespec.com> + + * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o + (HFILES_NO_SRCDIR): Add riscv-tdep.h. + (ALLDEPFILES): Add riscv-tdep.c + * configure.tgt: Add riscv support. + * riscv-tdep.c: New file. + * riscv-tdep.h: New file. + * NEWS: Mention new target. + * MAINTAINERS: Add entry for riscv. + +2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com> + + * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized + fields within aggregates. + +2018-03-04 Simon Marchi <simon.marchi@polymtl.ca> + + * record-btrace.c (btrace_print_lines): Change type of flags to + gdb_disassembly_flags. + +2018-03-04 John Baldwin <jhb@FreeBSD.org> + + * fbsd-nat.c: Include "inf-ptrace.h". + (USE_SIGTRAP_SIGINFO): Conditionally define. + [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function. + (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap". + [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New + function. + [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint): + Likewise. + [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint): + Likewise. + (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set + "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint", + "supports_stopped_by_hw_breakpoint" target methods. + +2018-03-04 John Baldwin <jhb@FreeBSD.org> + + * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat". + * fbsd-nat.c (debug_fbsd_nat): New variable. + (show_fbsd_nat_debug): New function. + (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled. + (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command. + +2018-03-04 John Baldwin <jhb@FreeBSD.org> + + * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function. + * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New + prototype. + * x86-nat.c (x86_stopped_by_hw_breakpoint): New function. + (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target + method. + +2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> + + * common/gdb_vecs.c (free_char_ptr_vec): Remove. + * common/gdb_vecs.h (free_char_ptr_vec): Remove. + +2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> + + * charset.c (struct charset_vector): New. + (charsets): Change type to charset_vector. + (find_charset_names): Adjust. + (add_one): Adjust. + (_initialize_charset): Adjust. + +2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> + + * progspace.h (struct program_space) <deleted_solibs>: Change + type to std::vector<std::string>. + * progspace.c (clear_program_space_solib_cache): Adjust. + * breakpoint.c (print_solib_event): Adjust. + (check_status_catch_solib): Adjust. + * solib.c (update_solib_list): Adjust. + * ui-out.h (class ui_out) <field_string>: New overload. + * ui-out.c (ui_out::field_string): New overload. + +2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> + + * progspace.h (struct program_space): Add constructor and + destructor, initialize fields. + (add_program_space): Remove. + * progspace.c (add_program_space): Rename to... + (program_space::program_space): ... this. + (release_program_space): Rename to... + (program_space::~program_space): ... this. + (delete_program_space): Use delete to delete program_space. + (initialize_progspace): Use new to allocate program_space. + * inferior.c (add_inferior_with_spaces): Likewise. + (clone_inferior_command): Likewise. + * infrun.c (follow_fork_inferior): Likewise. + (handle_vfork_child_exec_or_exit): Likewise. + +2018-03-02 Simon Marchi <simon.marchi@polymtl.ca> + + * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove. + (delim_string_to_char_ptr_vec): Return std::vector of + gdb::unique_xmalloc_ptr. + (dirnames_to_char_ptr_vec_append): Take std::vector of + gdb::unique_xmalloc_ptr. + (dirnames_to_char_ptr_vec): Return std::vector of + gdb::unique_xmalloc_ptr. + * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): + Take std::vector of gdb::unique_xmalloc_ptr, adjust the code. + (delim_string_to_char_ptr_vec): Return an std::vector of + gdb::unique_xmalloc_ptr, adjust the code. + (dirnames_to_char_ptr_vec_append): Take an std::vector of + gdb::unique_xmalloc_ptr, adjust the code. + (dirnames_to_char_ptr_vec): Return an std::vector of + gdb::unique_xmalloc_ptr, adjust the code. + * auto-load.c (auto_load_safe_path_vec): Change type to + std::vector of gdb::unique_xmalloc_ptr. + (auto_load_expand_dir_vars): Return an std::vector of + gdb::unique_xmalloc_ptr, adjust the code. + (auto_load_safe_path_vec_update): Adjust. + (filename_is_in_auto_load_safe_path_vec): Adjust. + (auto_load_objfile_script_1): Adjust. + * build-id.c (build_id_to_debug_bfd): Adjust. + * linux-thread-db.c (thread_db_load_search): Adjust. + * source.c (add_path): Adjust. + (openp): Adjust. + * symfile.c (find_separate_debug_file): Adjust. + * utils.c (do_free_char_ptr_vec): Remove. + (make_cleanup_free_char_ptr_vec): Remove. + +2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com> + + PR gdb/22907 + * common/pathstuff.c: Conditionally include "<windows.h>". + +2018-03-01 Georg Sauthoff <mail@georg.so> + + PR gdb/22888 + * gcore.in: Quote variables and switch interpreter to bash. + +2018-03-01 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (alloc_discriminant_info): Fix default_index + assertion. Add assertion for discriminant_index. + (quirk_rust_enum): Use correct base type name in univariant case. + +2018-03-01 Simon Marchi <simon.marchi@ericsson.com> + + * record.c (get_call_history_modifiers): Return a + record_print_flags. + (cmd_record_call_history): Adjust. + * record-btrace.c (record_btrace_call_history): Adjust. + (record_btrace_call_history_range): Adjust. + (record_btrace_call_history_from): Adjust. + * target-debug.h (target_debug_print_record_print_flags): New. + * target-delegates.c: Re-generate. + * target.c (target_call_history): Change flags type. + (target_call_history_from): Likewise. + (target_call_history_range): Likewise. + * target.h (struct target_ops) <target_call_history>: Likewise. + (target_call_history_from): Likewise. + (target_call_history_range): Likewise. + +2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> + Simon Marchi <simon.marchi@polymtl.ca> + + * common/common-utils.c: Include "sys/stat.h". + (is_regular_file): Move here from "source.c"; change return + type to "bool". + * common/common-utils.h (is_regular_file): New prototype. + * common/pathstuff.c (contains_dir_separator): New function. + * common/pathstuff.h (contains_dir_separator): New prototype. + * source.c: Don't include "sys/stat.h". + (is_regular_file): Move to "common/common-utils.c". + +2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com> + + * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c". + (HFILES_NO_SRCDIR): Add "common/pathstuff.h". + * auto-load.c: Include "common/pathstuff.h". + * common/common-def.h (current_directory): Move here. + * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New + function. + * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New + prototype. + * common/pathstuff.c: New file. + * common/pathstuff.h: New file. + * compile/compile.c: Include "common/pathstuff.h". + * defs.h (current_directory): Move to "common/common-defs.h". + * dwarf2read.c: Include "common/pathstuff.h". + * exec.c: Likewise. + * guile/scm-safe-call.c: Likewise. + * linux-thread-db.c: Likewise. + * main.c: Likewise. + * nto-tdep.c: Likewise. + * objfiles.c: Likewise. + * source.c: Likewise. + * symtab.c: Likewise. + * utils.c: Include "common/pathstuff.h". + (gdb_realpath): Move to "common/pathstuff.c". + (gdb_realpath_keepfile): Likewise. + (gdb_abspath): Likewise. + * utils.h (gdb_realpath): Move to "common/pathstuff.h". + (gdb_realpath_keepfile): Likewise. + (gdb_abspath): Likewise. + +2018-02-28 John Baldwin <jhb@FreeBSD.org> + + * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a + wildcard process pid for super_resume for kernels with a + specific bug. + +2018-02-27 Phil Muldoon <pmuldoon@redhat.com> + + * compile/compile.c (get_args): Add additional comments + explaining function. + +2018-02-27 Simon Marchi <simon.marchi@polymtl.ca> + Tom Tromey <tom@tromey.com> + + * target.h (memory_write_request_s): Remove typedef. Don't define + VEC. + (target_write_memory_blocks): Change argument to std::vector. + (struct memory_write_request): Add constructor. + * target-memory.c (compare_block_starting_address): Return bool. + Change argument types. + (claim_memory): Change arguments to use std::vector. + (split_regular_and_flash_blocks, blocks_to_erase) + (compute_garbled_blocks): Likewise. + (cleanup_request_data, cleanup_write_requests_vector): Remove. + (target_write_memory_blocks): Change argument to std::vector. + * symfile.c (struct load_section_data): Add constructor and + destructor. Use std::vector for "requests". + (struct load_progress_data): Add initializers. + (load_section_callback): Update. Use "new". + (clear_memory_write_data): Remove. + (generic_load): Update. + +2018-02-27 Alan Hayward <alan.hayward@arm.com> + + * arch/aarch64.h: Use common/tdesc.h. + +2018-02-26 Maciej W. Rozycki <macro@mips.com> + + * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD + architecture with a 64-bit ABI. + +2018-02-26 Maciej W. Rozycki <macro@mips.com> + + * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination + ahead of target description loading. + +2018-02-26 Tom Tromey <tom@tromey.com> + + * stack.c (backtrace_command_1): Update. + * python/python-internal.h (gdbpy_apply_frame_filter): Change type + of "flags". + * python/py-framefilter.c (py_print_frame) + (gdbpy_apply_frame_filter): Change type of "flags". + * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type + of "flags". + (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals) + (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update. + * extension.h (enum frame_filter_flag): Rename from + frame_filter_flags. + (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE. + (apply_ext_lang_frame_filter): Change type of "flags". + * extension.c (apply_ext_lang_frame_filter): Change type of + "flags". + * extension-priv.h (struct extension_language_ops) + <apply_frame_filter>: Change type of "flags". + +2018-02-26 Tom Tromey <tom@tromey.com> + + PR python/16497: + * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix + off-by-one in py_end computation. + * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle + PRINT_MORE_FRAMES. + * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New + constant. + +2018-02-26 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (struct variant_field): New. + (struct nextfield) <variant>: New field. + (dwarf2_add_field): Handle DW_TAG_variant_part. + (dwarf2_attach_fields_to_type): Attach a discriminant_info to a + discriminated union. + (read_structure_type): Handle DW_TAG_variant_part. + (handle_struct_member_die): New function, extracted from + process_structure_scope. Handle DW_TAG_variant. + (process_structure_scope): Handle discriminated unions. Call + handle_struct_member_die. + +2018-02-26 Tom Tromey <tom@tromey.com> + + * rust-lang.h (rust_last_path_segment): Declare. + * rust-lang.c (rust_last_path_segment): Now public. Change + contract. + (struct disr_info): Remove. + (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL) + (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged) + (rust_get_disr_info, rust_tuple_variant_type_p): Remove. + (rust_enum_p, rust_enum_variant): New function. + (rust_underscore_fields): Remove "offset" parameter. + (rust_print_enum): New function. + (rust_val_print) <TYPE_CODE_UNION>: Remove enum code. + <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate. + (rust_print_struct_def): Add "for_rust_enum" parameter. Handle + enums. + (rust_internal_print_type): New function, from rust_print_type. + Remove enum code. + (rust_print_type): Call rust_internal_print_type. + (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>: + Update enum handling. + * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field. + (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum) + (rust_union_quirks): New functions. + (process_full_comp_unit, process_full_type_unit): Call + rust_union_quirks. + (process_structure_scope): Update rust_unions if necessary. + +2018-02-26 Tom Tromey <tom@tromey.com> + + * value.h (value_union_variant): Declare. + * valops.c (value_union_variant): New function. + * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro. + (struct discriminant_info): New. + (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New + enumerator. + (struct main_type) <flag_discriminated_union>: New field. + +2018-02-26 Tom Tromey <tom@tromey.com> + + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + unittests/unpack-selftests.c. + * unittests/unpack-selftests.c: New file. + * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases. + +2018-02-26 Yao Qi <yao.qi@linaro.org> + + * dwarf2read.c (struct partial_die_info) <read>: New method. + (read_partial_die): Remove the declaration. + (load_partial_dies): Update. + (partial_die_info::partial_die_info): + (read_partial_die): Change it to partial_die_info::read. + +2018-02-26 Yao Qi <yao.qi@linaro.org> + + * dwarf2read.c (struct partial_die_info) <fixup>: New method. + (fixup_partial_die): Remove declaration. + (scan_partial_symbols): Update. + (partial_die_parent_scope): Likewise. + (partial_die_full_name): Likewise. + (fixup_partial_die): Change it to partial_die_info::fixup. + +2018-02-26 Yao Qi <yao.qi@linaro.org> + + * dwarf2read.c (read_partial_die): Update the declaration. + (load_partial_dies): Caller update. + (read_partial_die): Remove one argument abbrev_len. + +2018-02-26 Yao Qi <yao.qi@linaro.org> + + * dwarf2read.c (struct partial_die_info): Add ctor, delete + assignment operator. + (load_partial_dies): Use ctor and copy ctor. + (read_partial_die): Update. + (dwarf2_cu::find_partial_die): Use ctor. + +2018-02-26 Yao Qi <yao.qi@linaro.org> + + * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method. + (find_partial_die_in_comp_unit): Change it to + dwarf2_cu::find_partial_die. + (find_partial_die): Update. + +2018-02-26 Yao Qi <yao.qi@linaro.org> + + * dwarf2read.c (read_partial_die): Remove the code checking abbrev + is NULL. + +2018-02-26 Yao Qi <yao.qi@linaro.org> + + * dwarf2read.c (load_partial_dies): Move the location of XOBNEW. + +2018-02-26 Alan Hayward <alan.hayward@arm.com> + + * arch/amd64.h: Use common/tdesc.h. + * arch/i386.c: Likewise. + * arch/i386.h: Likewise. + * arch/tic6x.c: Likewise. + * arch/tdesc.h: Move file from here... + * common/tdesc.h: ...to here. + * features/aarch64-core.c: Regenerate. + * features/aarch64-fpu.c: Regenerate. + * features/i386/32bit-avx.c: Regenerate. + * features/i386/32bit-avx512.c: Regenerate. + * features/i386/32bit-core.c: Regenerate. + * features/i386/32bit-linux.c: Regenerate. + * features/i386/32bit-mpx.c: Regenerate. + * features/i386/32bit-pkeys.c: Regenerate. + * features/i386/32bit-sse.c: Regenerate. + * features/i386/64bit-avx.c: Regenerate. + * features/i386/64bit-avx512.c: Regenerate. + * features/i386/64bit-core.c: Regenerate. + * features/i386/64bit-linux.c: Regenerate. + * features/i386/64bit-mpx.c: Regenerate. + * features/i386/64bit-pkeys.c: Regenerate. + * features/i386/64bit-segments.c: Regenerate. + * features/i386/64bit-sse.c: Regenerate. + * features/i386/x32-core.c: Regenerate. + * features/tic6x-c6xp.c: Regenerate. + * features/tic6x-core.c: Regenerate. + * features/tic6x-gp.c: Regenerate. + * target-descriptions.c: Use common/tdesc.h. + * target-descriptions.h: Likewise. + +2018-02-24 Tom Tromey <tom@tromey.com> + + * linux-thread-db.c (try_thread_db_load_from_pdir_1) + (try_thread_db_load_from_dir, thread_db_load_search): Use + std::string. + (info_auto_load_libthread_db_compare): Return bool. Change + argument types. + (info_auto_load_libthread_db): Use std::vector, std::string. + Remove cleanups. + +2018-02-24 Tom Tromey <tom@tromey.com> + + * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a + std::string. + * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a + std::string*. + * gdbarch.c: Rebuild. + * gdbarch.h: Rebuild. + * breakpoint.c (check_fast_tracepoint_sals): Use std::string. + * arch-utils.h (default_fast_tracepoint_valid_at): Update. + * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a + std::string*. + +2018-02-23 Simon Marchi <simon.marchi@polymtl.ca> + + * gdbtypes.h (sect_offset): Change type to uint64_t. + (sect_offset_str): New function. + * dwarf2read.c (create_addrmap_from_aranges): Use + sect_offset_str. + (error_check_comp_unit_head): Likewise. + (create_debug_type_hash_table): Likewise. + (read_cutu_die_from_dwo): Likewise. + (init_cutu_and_read_dies): Likewise. + (init_cutu_and_read_dies_no_follow): Likewise. + (process_psymtab_comp_unit_reader): Likewise. + (partial_die_parent_scope): Likewise. + (peek_die_abbrev): Likewise. + (process_queue): Likewise. + (dwarf2_physname): Likewise. + (read_namespace_alias): Likewise. + (read_import_statement): Likewise. + (create_dwo_cu_reader): Likewise. + (create_cus_hash_table): Likewise. + (lookup_dwo_cutu): Likewise. + (inherit_abstract_dies): Likewise. + (read_func_scope): Likewise. + (read_call_site_scope): Likewise. + (dwarf2_add_member_fn): Likewise. + (read_common_block): Likewise. + (read_module_type): Likewise. + (read_typedef): Likewise. + (read_subrange_type): Likewise. + (load_partial_dies): Likewise. + (read_partial_die): Likewise. + (find_partial_die): Likewise. + (read_str_index): Likewise. + (dwarf2_string_attr): Likewise. + (build_error_marker_type): Likewise. + (lookup_die_type): Likewise. + (dump_die_shallow): Likewise. + (follow_die_ref): Likewise. + (dwarf2_fetch_die_loc_sect_off): Likewise. + (dwarf2_fetch_constant_bytes): Likewise. + (follow_die_sig): Likewise. + (get_signatured_type): Likewise. + (get_DW_AT_signature_type): Likewise. + (dwarf2_find_containing_comp_unit): Likewise. + (set_die_type): Likewise. + +2018-02-21 John Baldwin <jhb@FreeBSD.org> + + * arch/aarch64.c: Include "common-defs.h". + * arch/amd64.c: Likewise. + * arch/i386.c: Likewise. + +2018-02-21 Tom Tromey <tom@tromey.com> + + * value.h: (extract_field_op): Update. + * eval.c (extract_field_op): Return a const char *. + * expression.h (parse_expression_for_completion): Update. + * completer.c (complete_expression): Update. + (add_struct_fields): Make fieldname const. + * parse.c (expout_completion_name): Now a unique_xmalloc_ptr. + (mark_completion_tag, parse_exp_in_context_1): Update. + (parse_expression_for_completion): Change "name" to + unique_xmalloc_ptr*. + +2018-02-21 Tom Tromey <tom@tromey.com> + + * infcall.c (call_function_by_hand_dummy): Use std::vector. + +2018-02-21 Yao Qi <yao.qi@linaro.org> + + * avr-tdep.c (avr_read_pc): Change parameter type to + readable_regcache. + * gdbarch.sh (read_pc): Likewise. + * gdbarch.c: Re-generated. + * gdbarch.h: Re-generated. + * hppa-tdep.c (hppa_read_pc): Change parameter type to + readable_regcache. + * ia64-tdep.c (ia64_read_pc): Likewise. + * mips-tdep.c (mips_read_pc): Likewise. + * spu-tdep.c (spu_read_pc): Likewise. + +2018-02-21 Yao Qi <yao.qi@linaro.org> + + * Makefile.in (COMMON_SFILES): Add regcache-dump.c + * regcache-dump.c: New file. + * regcache.c: Move register_dump to regcache-dump.c. + (maintenance_print_registers): Likewise. + (maintenance_print_raw_registers): Likewise. + (maintenance_print_cooked_registers): Likewise. + (maintenance_print_register_groups): Likewise. + (maintenance_print_remote_registers): Likewise. + (_initialize_regcache): Likewise. + * regcache.h (register_dump): Moved from regcache.c. + +2018-02-21 Yao Qi <yao.qi@linaro.org> + + * regcache.c (regcache::regcache): Update. + (regcache::invalidate): Move it to detached_regcache::invalidate. + (get_thread_arch_aspace_regcache): Update. + (regcache::raw_update): Update. + (regcache::cooked_read): Remove some code. + (regcache::cooked_read_value): Likewise. + (regcache::raw_write): Remove assert on m_readonly_p. + (regcache::raw_supply_integer): Move it to + detached_regcache::raw_supply_integer. + (regcache::raw_supply_zeroed): Likewise. + * regcache.h (detached_regcache) <raw_supply_integer>: New + declaration. + <raw_supply_zeroed, invalidate>: Likewise. + (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed. + <invalidate>: Likewise. + <m_readonly_p>: Removed. + +2018-02-21 Yao Qi <yao.qi@linaro.org> + + * infcmd.c (get_return_value): Let stop_regs point to + get_current_regcache. + * regcache.c (regcache::regcache): Remove. + (register_dump_reg_buffer): New class. + (regcache_print): Adjust. + * regcache.h (regcache): Remove constructors. + +2018-02-21 Yao Qi <yao.qi@linaro.org> + + * regcache.c (class register_dump): New class. + (register_dump_regcache, register_dump_none): New class. + (register_dump_remote, register_dump_groups): New class. + (regcache_print): Update. + * regcache.h (regcache_dump_what): Move it to regcache.c. + (regcache) <dump>: Remove. + +2018-02-21 Yao Qi <yao.qi@linaro.org> + + * jit.c (struct jit_unwind_private) <regcache>: Change its type to + reg_buffer_rw *. + (jit_unwind_reg_set_impl): Call raw_supply. + (jit_frame_sniffer): Use reg_buffer_rw. + * record-full.c (record_full_core_regbuf): Change its type. + (record_full_core_open_1): Use reg_buffer_rw. + (record_full_close): Likewise. + (record_full_core_fetch_registers): Use regcache->raw_supply. + (record_full_core_store_registers): Likewise. + * regcache.c (regcache::get_register_status): Move it to + reg_buffer. + (regcache_raw_set_cached_value): Remove. + (regcache::raw_set_cached_value): Remove. + (regcache::raw_write): Call raw_supply. + (regcache::raw_supply): Move it to reg_buffer_rw. + * regcache.h (regcache_raw_set_cached_value): Remove. + (reg_buffer_rw): New class. + +2018-02-21 Yao Qi <yao.qi@linaro.org> + + * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use + readonly_detached_regcache. + (dummy_frame_prev_register): Use regcache->cooked_read. + * frame.c (frame_save_as_regcache): Change return type. + (frame_pop): Update. + * frame.h (frame_save_as_regcache): Update declaration. + * inferior.h (get_infcall_suspend_state_regcache): Update + declaration. + * infrun.c (infcall_suspend_state) <registers>: use + readonly_detached_regcache. + (save_infcall_suspend_state): Don't use regcache_dup. + (get_infcall_suspend_state_regcache): Change return type. + * linux-fork.c (struct fork_info) <savedregs>: Change to + readonly_detached_regcache. + <pc>: New field. + (fork_save_infrun_state): Don't use regcache_dup. + (info_checkpoints_command): Adjust. + * mi/mi-main.c (register_changed_p): Update declaration. + (mi_cmd_data_list_changed_registers): Use + readonly_detached_regcache. + (register_changed_p): Change parameter type to + readonly_detached_regcache. + * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use + readonly_detached_regcache. + (ppu2spu_sniffer): Construct a new readonly_detached_regcache. + * regcache.c (readonly_detached_regcache::readonly_detached_regcache): + New. + (regcache::save): Move it to reg_buffer. + (regcache::restore): Change parameter type. + (regcache_dup): Remove. + * regcache.h (reg_buffer) <save>: New method. + (readonly_detached_regcache): New class. + * spu-tdep.c (spu2ppu_cache) <regcache>: Use + readonly_detached_regcache. + (spu2ppu_sniffer): Construct a new readonly_detached_regcache. + +2018-02-21 Yao Qi <yao.qi@linaro.org> + + * frame.c (frame_save_as_regcache): Use regcache method save. + (frame_pop): Use regcache method restore. + * infrun.c (restore_infcall_suspend_state): Likewise. + * linux-fork.c (fork_load_infrun_state): Likewise. + * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method + save. + * regcache.c (regcache_save): Remove. + (regcache::restore): More asserts. + (regcache_cpy): Remove. + * regcache.h (regcache_save): Remove the declaration. + (regcache::restore): Move from private to public. + Remove the friend declaration of regcache_cpy. + (regcache_cpy): Remove declaration. + +2018-02-21 Yao Qi <yao.qi@linaro.org> + + * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change + parameter type to 'readable_regcache *'. + * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. + * arm-tdep.c (arm_neon_quad_read): Likewise. + (arm_pseudo_read): Likewise. + * avr-tdep.c (avr_pseudo_register_read): Likewise. + * bfin-tdep.c (bfin_pseudo_register_read): Likewise. + * frv-tdep.c (frv_pseudo_register_read): Likewise. + * gdbarch.c: Re-generated. + * gdbarch.h: Re-generated. + * gdbarch.sh (pseudo_register_read): Change parameter type to + 'readable_regcache *'. + (pseudo_register_read_value): Likewise. + * h8300-tdep.c (pseudo_from_raw_register): Likewise. + (h8300_pseudo_register_read): Likewise. + * hppa-tdep.c (hppa_pseudo_register_read): Likewise. + * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. + (i386_pseudo_register_read_into_value): Likewise. + (i386_pseudo_register_read_value): Likewise. + * i386-tdep.h (i386_pseudo_register_read_into_value): Update + declaration. + * ia64-tdep.c (ia64_pseudo_register_read): Likewise. + * m32c-tdep.c (m32c_raw_read): Likewise. + (m32c_read_flg): Likewise. + (m32c_banked_register): Likewise. + (m32c_banked_read): Likewise. + (m32c_sb_read): Likewise. + (m32c_part_read): Likewise. + (m32c_cat_read): Likewise. + (m32c_r3r2r1r0_read): Likewise. + (m32c_pseudo_register_read): Likewise. + * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. + * mep-tdep.c (mep_pseudo_cr32_read): Likewise. + (mep_pseudo_cr64_read): Likewise. + (mep_pseudo_register_read): Likewise. + * mips-tdep.c (mips_pseudo_register_read): Likewise. + * msp430-tdep.c (msp430_pseudo_register_read): Likewise. + * nds32-tdep.c (nds32_pseudo_register_read): Likewise. + * regcache.c (regcache::raw_read): Move it to readable_regcache. + (regcache::cooked_read): Likewise. + (regcache::cooked_read_value): Likewise. + (regcache_cooked_read_signed): + (regcache::cooked_read): Likewise. + * regcache.h (readable_regcache): New class. + (regcache): Inherit readable_regcache. Move some methods to + readable_regcache. + * rl78-tdep.c (rl78_pseudo_register_read): Change + parameter type to 'readable_regcache *'. + * rs6000-tdep.c (do_regcache_raw_read): Remove. + (e500_pseudo_register_read): Change parameter type to + 'readable_regcache *'. + (dfp_pseudo_register_read): Likewise. + (vsx_pseudo_register_read): Likewise. + (efpr_pseudo_register_read): Likewise. + * s390-tdep.c (s390_pseudo_register_read): Likewise. + * sh-tdep.c (sh_pseudo_register_read): Likewise. + * sh64-tdep.c (pseudo_register_read_portions): Likewise. + (sh64_pseudo_register_read): Likewise. + * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. + * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. + * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. + (spu_pseudo_register_read): Likewise. + * xtensa-tdep.c (xtensa_register_read_masked): Likewise. + (xtensa_pseudo_register_read): Likewise. + +2018-02-21 Yao Qi <yao.qi@linaro.org> + + * regcache.c (regcache::regcache): Call reg_buffer ctor. + (regcache::arch): Move it to reg_buffer::arch. + (regcache::register_buffer): Likewise. + (regcache::assert_regnum): Likewise. + (regcache::num_raw_registers): Likewise. + * regcache.h (reg_buffer): New class. + (regcache): Inherit reg_buffer. + +2018-02-20 Simon Marchi <simon.marchi@ericsson.com> + + * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered, + gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF. + +2018-02-20 Markus Metzger <markus.t.metzger@intel.com> + + * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp. + +2018-02-19 Alan Hayward <alan.hayward@arm.com> + + * Makefile.in: (COMMON_SFILES): Add common/*.c files. + (SFILES): Remove common/*.c files. + (COMMON_OBS): Remove some *.o files built from common/*.c files. + * common/common.host: Add common reference. + * configure.ac: Likewise. + * configure: Regenerate. + +2018-02-16 Yao Qi <yao.qi@linaro.org> + + * block.c (block_namespace_info): Inherit allocate_on_obstack. + (block_initialize_namespace): Use new. + * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack. + (dwarf2_free_objfile): Use delete. + * gdbtypes.c (type_pair): Inherit allocate_on_obstack. + (copy_type_recursive): Use new. + * gdb_obstack.h (allocate_on_obstack): New. + +2018-02-15 Yao Qi <yao.qi@linaro.org> + + PR gdb/22849 + * inferior.c (exit_inferior_1): Reset inf->control. + +2018-02-15 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (ada_to_fixed_value_create): Delete advance + declaration. + +2018-02-14 Pedro Alves <palves@redhat.com> + + * frame-unwind.c (frame_unwind_try_unwinder): Always call + frame_cleanup_after_sniffer on exception. + +2018-02-14 Tom Tromey <tom@tromey.com> + + * solist.h (struct target_so_ops) <bfd_open>: Make pathname + const. + (solib_bfd_open): Make pathname const. + * solib.c (solib_bfd_open): Make pathname const. + * solib-spu.c (spu_bfd_fopen): Make name const. + (spu_bfd_open): Make pathname const. + * solib-darwin.c (darwin_bfd_open): Make pathname const. + * solib-aix.c (solib_aix_bfd_open): Make pathname const. + +2018-02-14 Tom Tromey <tom@tromey.com> + + * symfile.c (symfile_bfd_open): Update. + * source.h (openp, source_full_path_of, find_and_open_source): + Change argument type to unique_xmalloc_ptr. + * source.c (openp): Take a unique_xmalloc_ptr. + (source_full_path_of, find_and_open_source): Likewise. + (open_source_file, symtab_to_fullname): Update. + * solist.h (struct target_so_ops) <find_and_open_solib>: Take a + unique_xmalloc_ptr. + * solib.c (solib_find_1): Use unique_xmalloc_ptr. + (exec_file_find): Update. + * psymtab.c (psymtab_to_fullname): Update. + * nto-tdep.h (nto_find_and_open_solib): Update. + * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a + unique_xmalloc_ptr. + * exec.c (exec_file_attach): Update. + * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr. + * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr. + +2018-02-14 Tom Tromey <tom@tromey.com> + + * solib.c: Include source.h. + * nto-tdep.c: Include source.h. + * mi/mi-cmd-env.c: Include source.h. + * infcmd.c: Include source.h. + * exec.c: Include source.h. + * defs.h (enum openp_flag, openp, source_full_path_of, mod_path) + (add_path, directory_switch, source_path, init_source_path): Move + declarations... + * source.h (enum openp_flag, openp, source_full_path_of, mod_path) + (add_path, directory_switch, source_path, init_source_path): + ...here. + +2018-02-14 Tom Tromey <tom@tromey.com> + + * solist.h (exec_file_find, solib_find): Return + unique_xmalloc_ptr. + (solib_bfd_fopen): Take a const char *. + * solib.c (solib_find_1): Return unique_xmalloc_ptr. + (exec_file_find, solib_find): Likewise. + (solib_bfd_fopen): Do not take ownership of "pathname". + (solib_bfd_open): Use unique_xmalloc_ptr. + * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr. + * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr. + * infrun.c (follow_exec): Use unique_xmalloc_ptr. + * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr. + +2018-02-14 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (name_match_type_from_name): Remove reference to + ada_name_for_lookup in function's documentation. + * ada-lang.h (ada_name_for_lookup): Delete declaration. + +2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> + + * defs.h (enum openp_flags): New enum. + (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH): + Move to enum openp_flags. + (openp_flags): New enum flags. + (openp): Change parameter type to openp_flags. + * source.c (openp): Change parameter type to openp_flags. + * cli/cli-cmds.c (find_and_open_script): Use openp_flags. + * dwarf2read.c (try_open_dwop_file): Use openp_flags. + +2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> + + * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show + per-command. + +2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com> + + * dwarf2read.c (dwarf2_release_queue): Delete function, move body + into... + (class dwarf2_queue_guard): ...the destructor of this new class. + (dw2_do_instantiate_symtab): Create instance of the new class + dwarf2_queue_guard, remove cleanup. + +2018-02-09 Tom Tromey <tom@tromey.com> + + * source.c (find_source_lines): Don't reference past the end of + the vector. + +2018-02-09 Markus Metzger <markus.t.metzger@intel.com> + + * remote.c (remote_btrace_maybe_reopen): Change error message. + * btrace.c (btrace_enable): Likewise. + (parse_xml_btrace): Likewise. + (parse_xml_btrace_conf): Likewise. + +2018-02-09 Markus Metzger <markus.t.metzger@intel.com> + + * nat/linux-btrace.c (diagnose_perf_event_open_fail): New. + (linux_enable_pt, linux_enable_bts): Call + diagnose_perf_event_open_fail. + +2018-02-09 Markus Metzger <markus.t.metzger@intel.com> + + * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message. + Remove parameter and change return type. Update callers. Move it. + (linux_enable_bts, linux_enable_pt): Improve error message. + (linux_enable_pt): Remove zero buffer size check. + (linux_enable_btrace): Improve error messages. Remove NULL return + check. + +2018-02-09 Markus Metzger <markus.t.metzger@intel.com> + + * btrace.c (btrace_enable): Remove target_supports_btrace call. + * nat/linux-btrace.c (perf_event_pt_event_type): Move. + (kernel_supports_bts, kernel_supports_pt, linux_supports_bts) + (linux_supports_pt, linux_supports_btrace): Remove. + (linux_enable_bts): Call cpu_supports_bts. + * nat/linux-btrace.h (linux_supports_btrace): Remove. + * remote.c (remote_supports_btrace): Remove. + (init_remote_ops): Remove remote_supports_btrace. + * target-delegates.c: Regenerated. + * target.c (target_supports_btrace): Remove. + * target.h (target_ops) <to_supports_btrace>: Remove + (target_supports_btrace): Remove. + * x86-linux-nat.c (x86_linux_create_target): Remove + linux_supports_btrace. + +2018-02-09 Markus Metzger <markus.t.metzger@intel.com> + + * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling + btrace failed. + * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling + exception and use message in own exception. + +2018-02-09 Markus Metzger <markus.t.metzger@intel.com> + + * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h. + (perf_event_pt_event_type): Use gdb_file_up. + (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr, + scoped_fd, and scoped_mmap. + +2018-02-09 Markus Metzger <markus.t.metzger@intel.com> + + * common/scoped_mmap.h: New. + * unittests/scoped_mmap-selftest.c: New. + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + unittests/scoped_mmap-selftest.c. + +2018-02-09 Markus Metzger <markus.t.metzger@intel.com> + + * common/scoped_fd.h: New. + * unittests/scoped_fd-selftest.c: New. + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add + unittests/scoped_fd-selftest.c. + +2018-02-09 Tom Tromey <tom@tromey.com> + + * auto-load.c (auto_load_section_scripts): Use + gdb::unique_xmalloc_ptr. + +2018-02-09 Tom Tromey <tom@tromey.com> + + * auto-load.c (execute_script_contents): Use std::string. + +2018-02-09 Joel Brobecker <brobecker@adacore.com> + + * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new + Python function, rather than a new command. + +2018-02-08 Tom Tromey <tom@tromey.com> + + * solib.c (solib_find_1): Use std::string. + (solib_bfd_fopen): Use unique_xmalloc_ptr. + +2018-02-08 Tom Tromey <tom@tromey.com> + + * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr. + +2018-02-08 Tom Tromey <tom@tromey.com> + + * source.c (find_source_lines): Use gdb::def_vector. + +2018-02-08 Tom Tromey <tom@tromey.com> + + * macrocmd.c (struct temporary_macro_definition): New. + (macro_define_command): Use temporary_macro_definition. Remove + cleanups. + (free_macro_definition_ptr): Remove. + +2018-02-08 Tom Tromey <tom@tromey.com> + + * macroexp.c (maybe_expand): Use std::string. + +2018-02-08 Tom Tromey <tom@tromey.com> + + * macroexp.c (struct macro_buffer): Add initializers for some + members. + (init_buffer, init_shared_buffer, free_buffer) + (free_buffer_return_text): Remove. + (macro_buffer): New constructors. + (~macro_buffer): New destructor. + (macro_buffer::set_shared): New method. + (macro_buffer::resize_buffer, macro_buffer::appendc) + (macro_buffer::appendmem): Now methods, not free functions. + (set_token, append_tokens_without_splicing, stringify) + (macro_stringify): Update. + (gather_arguments): Change return type. Remove argc_p argument, + add args_ptr argument. Use std::vector. + (substitute_args): Remove argc argument. Accept std::vector. + (expand): Update. Use std::vector. + (scan, macro_expand, macro_expand_next): Update. + +2018-02-08 Tom Tromey <tom@tromey.com> + + * symtab.c (default_collect_symbol_completion_matches_break_on): + Use unique_xmalloc_ptr. + * macroscope.h: (sal_macro_scope, user_macro_scope) + (default_macro_scope): Return unique_xmalloc_ptr. + * macroscope.c (sal_macro_scope, user_macro_scope) + (default_macro_scope): Return unique_xmalloc_ptr. + * macroexp.h (macro_expand, macro_expand_once): Return + unique_xmalloc_ptr. + * macroexp.c (macro_expand, macro_expand_once): Return + unique_xmalloc_ptr. + * macrocmd.c (macro_expand_command, macro_expand_once_command) + (info_macro_command, info_macros_command): Use + unique_xmalloc_ptr. + * compile/compile-c-support.c (write_macro_definitions): Use + unique_xmalloc_ptr. + * c-exp.y (c_parse): Use unique_xmalloc_ptr. + +2018-02-07 Simon Marchi <simon.marchi@ericsson.com> + + * value.c (value_static_field): Assign field type instead of + containing type when returning an optimized out value. + +2018-02-06 Yao Qi <yao.qi@linaro.org> + + * ft32-tdep.c (ft32_read_pc): Remove. + (ft32_write_pc): Remove. + (ft32_gdbarch_init): Update. + * m32r-tdep.c (m32r_read_pc): Remove. + (m32r_gdbarch_init): Update. + * mep-tdep.c (mep_read_pc): Remove. + (mep_gdbarch_init): Update. + * microblaze-tdep.c (microblaze_write_pc): Remove. + (microblaze_gdbarch_init): Update. + * mn10300-tdep.c (mn10300_read_pc): Remove. + (mn10300_write_pc): Remove. + (mn10300_gdbarch_init): Update. + * moxie-tdep.c (moxie_read_pc): Remove. + (moxie_write_pc): Remove. + (moxie_gdbarch_init): Update. + +2018-02-06 Yao Qi <yao.qi@linaro.org> + + * expprint.c (print_subexp_standard): Handle + OP_F77_UNDETERMINED_ARGLIST. + (dump_subexp_body_standard): Likewise. + +2018-02-05 Alan Hayward <alan.hayward@arm.com> + + * target-descriptions.c (tdesc_element_visitor) Add empty + implementations. + (tdesc_type): Move make_gdb_type from here. + (tdesc_type_builtin): Likewise. + (tdesc_type_vector): Likewise. + (tdesc_type_with_fields): Move make_gdb_type_ functions from here. + (make_gdb_type_struct): Move from tdesc_type_with_fields. + (make_gdb_type_union): Likewise. + (make_gdb_type_flags): Likewise. + (make_gdb_type_enum): Likewise. + (make_gdb_type): New function. + (tdesc_register_type): Use static make_gdb_type. + +2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com> + + * infcmd.c (default_print_one_register_info): Align natural-format + column values consistently one under another. + (pad_to_column): New function. + +2018-02-05 Joel Brobecker <brobecker@adacore.com> + + * dwarf2read.c (dwarf2_physname): Move commment. + +2018-02-01 Leszek Swirski <leszeks@google.com> + + * varobj.c (varobj_formatted_print_options): Allow recursive + pretty printing if pretty printing is enabled. + +2018-02-01 Leszek Swirski <leszeks@google.com> + + * c-exp.y (lex_one_token, classify_name, yylex): Don't classify + names after a structop as a filename. + +2018-02-01 Yao Qi <yao.qi@linaro.org> + + * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it. + (arm_record_coproc_data_proc): Likewise. + +2018-02-01 Yao Qi <yao.qi@linaro.org> + + * arm-tdep.c (arm_record_extension_space): Change ret to signed. + +2018-01-31 Nikola Prica <nikola.prica@rt-rk.com> + + * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and + assign shifted lr_reg to fdata->lr_register when lr_reg is set. + +2018-01-31 Pedro Alves <palves@redhat.com> + + * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter. + * inflow.c (child_terminal_save_inferior): Wrap reference to + tcgetpgrp in HAVE_TERMIOS_H. + (child_interrupt, child_pass_ctrlc): Wrap references to signal in + _WIN32. + * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and + always iterate over all inferiors. + (gdbsim_cntrl_c): Adjust. + * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter. + +2018-01-31 Joel Brobecker <brobecker@adacore.com> + + * gdbtypes.c (lookup_array_range_type): Make sure the array's + index type is objfile-owned if the element type is as well. + +2018-01-31 Joel Brobecker <brobecker@adacore.com> + + GDB 8.1 released. + +2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com> + + * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and + "features/s390x-linux64.c". + (_initialize_s390_linux_tdep): Remove initialization of tdescs + s390_linux32 and s390x_linux64. + (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set + default tdesc. + * s390-tdep.c: Include "features/s390-linux32.c" and + "features/s390x-linux64.c". + (s390_tdesc_valid): Add check for tdesc_has_registers. + (s390_gdbarch_init): Make sure there is always a valid tdesc. + (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and + tdesc_s390x_linux64. + * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and + tdesc_s390x_linux64 to... + * s390-tdep.h: ...here. + +2018-01-30 Pedro Alves <palves@redhat.com> + + PR gdb/13211 + * config.in, configure: Regenerate. + * configure.ac: Check for getpgid. + * go32-nat.c (go32_pass_ctrlc): New. + (go32_target): Install it. + * inf-child.c (inf_child_target): Install + child_terminal_save_inferior, child_pass_ctrlc and + child_interrupt. + * inf-ptrace.c (inf_ptrace_interrupt): Delete. + (inf_ptrace_target): No longer install it. + * infcmd.c (interrupt_target_1): Adjust. + * inferior.h (child_terminal_save_inferior, child_pass_ctrlc) + (child_interrupt): Declare. + (inferior::terminal_state): New. + * inflow.c (struct terminal_info): Update comments. + (inferior_process_group): Delete. + (terminal_is_ours): Delete. + (gdb_tty_state): New. + (child_terminal_init): Adjust. + (is_gdb_terminal, sharing_input_terminal_1) + (sharing_input_terminal): New functions. + (child_terminal_inferior): Adjust. Use sharing_input_terminal. + Set the process's actual process group in the foreground if + possible. Handle is_ours_for_output/is_ours distinction. Don't + mark terminal as the inferior's if not sharing GDB's terminal. + Don't check attach_flag. + (child_terminal_ours_for_output, child_terminal_ours): Adjust to + pass down a target_terminal_state. + (child_terminal_save_inferior): New, factored out from ... + (child_terminal_ours_1): ... this. Handle + target_terminal_state::is_ours_for_output. + (child_interrupt, child_pass_ctrlc): New. + (inflow_inferior_exit): Clear the inferior's terminal_state. + (copy_terminal_info): Copy the inferior's terminal state. + (_initialize_inflow): Remove reference to terminal_is_ours. + * inflow.h (inferior_process_group): Delete. + * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust. + * procfs.c (procfs_target): Don't install procfs_interrupt. + (procfs_interrupt): Delete. + * remote.c (remote_serial_quit_handler): Adjust. + (remote_interrupt): Remove ptid parameter. Adjust. + * target-delegates.c: Regenerate. + * target.c: Include "terminal.h". + (target_terminal::terminal_state): Rename to ... + (target_terminal::m_terminal_state): ... this. + (target_terminal::init): Adjust. + (target_terminal::inferior): Adjust to per-inferior + terminal_state. + (target_terminal::restore_inferior, target_terminal_is_ours_kind): New. + (target_terminal::ours, target_terminal::ours_for_output): Use + target_terminal_is_ours_kind. + (target_interrupt): Remove ptid parameter. Adjust. + (default_target_pass_ctrlc): Adjust. + * target.h (target_ops::to_terminal_save_inferior): New field. + (target_ops::to_interrupt): Remove ptid_t parameter. + (target_interrupt): Remove ptid_t parameter. Update comment. + (target_pass_ctrlc): Update comment. + * target/target.h (target_terminal_state): New scoped enum, + factored out of ... + (target_terminal::terminal_state): ... here. + (target_terminal::inferior): Update comments. + (target_terminal::restore_inferior): New. + (target_terminal::is_inferior, target_terminal::is_ours) + (target_terminal::is_ours_for_output): Adjust. + (target_terminal::scoped_restore_terminal_state): Adjust to + rename, and call restore_inferior() instead of inferior(). + (target_terminal::scoped_restore_terminal_state::m_state): Change + type. + (target_terminal::terminal_state): Rename to ... + (target_terminal::m_terminal_state): ... this and change type. + +2018-01-30 Pedro Alves <palves@redhat.com> + + * linux-nat.c (wait_for_signal): New function. + (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend + directly. + (async_terminal_is_ours) + (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete. + (linux_nat_add_target): Don't override + to_terminal_inferior/to_terminal_ours. + +2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com> + + * remote.c (remote_follow_fork): Don't call "detach_inferior". + +2018-01-28 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2read.c (free_dwo_files): Add forward-declaration. + (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from + dwarf2_per_objfile_free here. + (dwarf2_per_objfile_free): Remove. + (_initialize_dwarf2_read): Don't register + dwarf2_per_objfile_free as a registry cleanup. + +2018-01-27 Eli Zaretskii <eliz@gnu.org> + + Avoid compilation errors in MinGW native builds + + The error is triggered by including python-internal.h, and the + error message is: + + In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0, + from build-gnulib/import/math.h:27, + from d:/usr/Python26/include/pyport.h:235, + from d:/usr/Python26/include/Python.h:58, + from python/python-internal.h:94, + from python/py-arch.c:24: + d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared + using ::hypot; + ^~~~~ + + This happens because Python headers define 'hypot' to expand t + '_hypot' in the Windows builds. + * python/python-internal.h (_hypot) [__MINGW32__]: Define back to + 'hypoth'. This avoids a compilation error. + +2018-01-26 Alan Hayward <alan.hayward@arm.com> + + * MAINTAINERS (Write After Approval): Fix ordering. + +2018-01-26 Alan Hayward <alan.hayward@arm.com> + + * MAINTAINERS (Write After Approval): Add Alan Hayward. + +2018-01-26 Alan Modra <amodra@gmail.com> + + * ppc-linux-tdep.c (powerpc32_plt_stub): Make const. + (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so. + Remove nop. Make const. Comment. + (powerpc32_plt_stub_so_2): New. + (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN. + Correct count. Update uses. + (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too. + Move common code reading PLT entry word. Correct + powerpc32_plt_stub PLT address calculation. + * ppc64-tdep.c (ppc64_standard_linkage1): Make const. + (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise. + (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise. + (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise. + (ppc64_standard_linkage8): Likewise. + * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const. + Correct insns description. + * ppc-tdep.h (ppc_insns_match_pattern): Update prototype. + +2018-01-24 Pedro Alves <palves@redhat.com> + + GCC PR libstdc++/83906 + * gdbtypes.c (operator==(const dynamic_prop &, + const dynamic_prop &)): New. + (operator==(const range_bounds &, const range_bounds &)): New. + (check_types_equal): Use them instead of memcmp. + * gdbtypes.h (operator==(const dynamic_prop &, + const dynamic_prop &)): Declare. + (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare. + (operator==(const range_bounds &, const range_bounds &)): Declare. + (operator!=(const range_bounds &, const range_bounds &)): Declare. + +2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> + + * s390-linux-tdep.c (s390_record_address_mask) + (s390_record_calc_disp_common, s390_record_calc_disp) + (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) + (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) + (s390_process_record): Move to s390-tdep.c. + (s390_linux_init_abi_any): Adjust. + * s390-tdep.c (s390_record_address_mask) + (s390_record_calc_disp_common, s390_record_calc_disp) + (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt) + (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr) + (s390_process_record): Moved from s390-linux-tdep.c + (s390_gdbarch_init): Adjust. + +2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> + + * s390-linux-nat.c (s390-tdep.h): New include. + * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o. + (HFILES_NO_SRCDIR): Add s390-tdep.h. + (ALLDEPFILES): Add s390-tdep.c. + * configure.tgt (s390*-*-linux*): Add s390-tdep.o. + * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to... + * s390-tdep.h: ...this. New file. + * s390-linux-tdep.c (s390-tdep.h): New include. + (_initialize_s390_tdep): Rename to... + (_initialize_s390_linux_tdep): ...this and adjust. + (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep) + (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to + s390-tdep.h. + (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri) + (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy) + (s390_is_partial_instruction, s390_software_single_step) + (is_non_branch_ril, s390_displaced_step_copy_insn) + (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep) + (s390_prologue_data, s390_addr, s390_store, s390_load) + (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue) + (s390_register_call_saved, s390_guess_tracepoint_registers) + (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum) + (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register) + (s390_pseudo_register_name, s390_pseudo_register_type) + (s390_pseudo_register_read, s390_pseudo_register_write) + (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect) + (s390_ax_pseudo_register_push_stack, s390_gen_return_address) + (s390_addr_bits_remove, s390_address_class_type_flags) + (s390_address_class_type_flags_to_name) + (s390_address_class_name_to_type_flags, s390_effective_inner_type) + (s390_function_arg_float, s390_function_arg_vector) + (is_power_of_two, s390_function_arg_integer, s390_arg_state) + (s390_handle_arg, s390_push_dummy_call, s390_dummy_id) + (s390_frame_align, s390_register_return_value, s390_return_value) + (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp) + (s390_unwind_pseudo_register, s390_adjust_frame_regnum) + (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg) + (s390_trad_frame_prev_register, s390_unwind_cache) + (s390_prologue_frame_unwind_cache) + (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache) + (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind) + (s390_stub_unwind_cache, s390_stub_frame_unwind_cache) + (s390_stub_frame_this_id, s390_stub_frame_prev_register) + (s390_stub_frame_sniffer, s390_stub_frame_unwind) + (s390_frame_base_address, s390_local_base_address) + (s390_frame_base, s390_gcc_target_options) + (s390_gnu_triplet_regexp, s390_stap_is_single_operand) + (s390_validate_reg_range, s390_tdesc_valid) + (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to... + * s390-tdep.c: ...this. New file. + +2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> + + * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook. + (s390_process_record, s390_gdbarch_tdep_alloc) + (s390_linux_init_abi_any): Use/set new hook. + +2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> + + * s390-linux-tdep.c (osabi.h): New include. + (s390_linux_init_abi_31, s390_linux_init_abi_64) + (s390_linux_init_abi_any): New functions. + (s390_gdbarch_init, _initialize_s390_tdep): Adjust. + +2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> + + * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for + tdesc_has_registers check + +2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> + + * s390-linux-tdep.c (s390_tdesc_valid): New function. + (s390_validate_reg_range): New macro. + (s390_gdbarch_init): Adjust. + +2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> + + * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field. + (s390_gdbarch_tdep_alloc): Adjust. + (s390_gdbarch_init): Adjust. + +2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> + + * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2> + <have_tdb>: Change type to bool. + (s390_gdbarch_tdep_alloc): Adjust. + (s390_gdbarch_init): Adjust. + +2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> + + * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field. + (gdbarch_tdep) <have_upper, have_vx>: New fields. + (s390_gdbarch_tdep_alloc): New function. + (s390_gdbarch_init): Allocate tdep at start and use its fields + instead of separate variables. + +2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com> + + * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks + when looking for cached gdbarch and add comment for remaining. + +2018-01-22 Pedro Alves <palves@redhat.com> + Sergio Durigan Junior <sergiodj@redhat.com> + + * typeprint.c (whatis_exp): Initialize "val" in the "whatis type" + case. + +2018-01-22 Maciej W. Rozycki <macro@mips.com> + + * MAINTAINERS: Update my company e-mail address. + +2018-01-22 Yao Qi <yao.qi@linaro.org> + + * regcache.c (cooked_write_test): New function. + (_initialize_regcache): Register the test. + +2018-01-22 Yao Qi <yao.qi@linaro.org> + + * ia64-tdep.c (ia64_pseudo_register_read): Call + regcache->cooked_read instead of regcache_cooked_read_unsigned. + * m32c-tdep.c (m32c_cat_read): Likewise. + (m32c_r3r2r1r0_read): Likewise. + * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise. + * xtensa-tdep.c (xtensa_register_read_masked): Likewise. + +2018-01-22 Yao Qi <yao.qi@linaro.org> + + * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache + method raw_read instead of regcache_raw_read. + * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise. + * arm-tdep.c (arm_neon_quad_read): Likewise. + * avr-tdep.c (avr_pseudo_register_read): Likewise. + * bfin-tdep.c (bfin_pseudo_register_read): Likewise. + * frv-tdep.c (frv_pseudo_register_read): Likewise. + * h8300-tdep.c (h8300_pseudo_register_read): Likewise. + * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise. + (i386_pseudo_register_read_into_value): Likewise. + * mep-tdep.c (mep_pseudo_cr32_read): Likewise. + * msp430-tdep.c (msp430_pseudo_register_read): Likewise. + * nds32-tdep.c (nds32_pseudo_register_read): Likewise. + * rl78-tdep.c (rl78_pseudo_register_read): Likewise. + * s390-linux-tdep.c (s390_pseudo_register_read): Likewise. + * sparc-tdep.c (sparc32_pseudo_register_read): Likewise. + * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise. + * spu-tdep.c (spu_pseudo_register_read_spu): Likewise. + * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise. + +2018-01-22 Yao Qi <yao.qi@linaro.org> + + * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o. + * configure.tgt: Remove target mt. + * mt-tdep.c: Remove. + * regcache.c (cooked_read_test): Remove the check for mt. + +2018-01-22 Yao Qi <yao.qi@linaro.org> + + * jit.c (jit_frame_prev_register): Call regcache::cooked_read + instead of gdbarch_pseudo_register_read_value. + +2018-01-22 Joel Brobecker <brobecker@adacore.com> + + * dwarf2read.c (need_gnat_info): Return nonzero if the cu's + language is Ada. + +2018-01-22 Joel Brobecker <brobecker@adacore.com> + + * linespec.c (create_sals_line_offset): Remove code that preserved + the symtab_and_line's line number. + +2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> + + * varobj.c (varobj_create): Don't set valid_block when creating a + floating varobj. + +2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> + + * varobj.c (varobj_create): Remove out of date comment. + +2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> + + PR mi/20395 + * ada-exp.y (write_var_from_sym): Pass extra parameter when + updating innermost block. + * parse.c (innermost_block_tracker::update): Take extra type + parameter, and check types match before updating innermost block. + (write_dollar_variable): Update innermost block for registers. + * parser-defs.h (enum innermost_block_tracker_type): New enum. + (innermost_block_tracker::innermost_block_tracker): Initialise + m_types member. + (innermost_block_tracker::reset): Take type parameter. + (innermost_block_tracker::update): Take type parameter, and pass + type through as needed. + (innermost_block_tracker::m_types): New member. + * varobj.c (varobj_create): Pass type when reseting innermost + block. + +2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> + + * ada-exp.y (write_var_from_sym): Switch to innermost_block API. + * ada-lang.c (resolve_subexp): Likewise. + * breakpoint.c (set_breakpoint_condition) Likewise. + (watch_command_1) Likewise. + * c-exp.y (variable): Likewise. + * d-exp.y (PrimaryExpression): Likewise. + * f-exp.y (variable): Likewise. + * go-exp.y (variable): Likewise. + * m2-exp.y (variable): Likewise. + * objfiles.c (objfile::~objfile): Likewise. + * p-exp.y (variable): Likewise. + * parse.c (innermost_block): Change type. + * parser-defs.h (class innermost_block_tracker): New. + (innermost_block): Change to innermost_block_tracker. + * printcmd.c (display_command): Switch to innermost_block API. + (do_one_display): Likewise. + * rust-exp.y (do_one_display): Likewise. + * symfile.c (clear_symtab_users): Likewise. + * varobj.c (varobj_create): Switch to innermost_block API, replace + use of innermost_block with block stored on varobj object. + +2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com> + + * expression.h (innermost_block): Remove declaration. + * varobj.c: Add 'parser-defs.h' include. + +2018-01-19 Tom Tromey <tom@tromey.com> + + * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified + symbols in the static and global blocks. + +2018-01-19 James Clarke <jrtc27@jrtc27.com> + + * nat/linux-ptrace.c: Remove unnecessary reinclusion of + gdb_ptrace.h, and move including gdb_wait.h ... + * nat/linux-ptrace.h: ... to here. + +2018-01-19 Simon Marchi <simon.marchi@ericsson.com> + + * inf-ptrace.c (inf_ptrace_detach): Adjust call to + inf_ptrace_detach_success. + (inf_ptrace_detach_success): Add inferior parameter, use it + instead of inferior_ptid, pass it to detach_inferior. + * inf-ptrace.h (inf_ptrace_detach_success): Add inferior + parameter. + * inferior.c (detach_inferior): Add overload that takes an + inferior object. + * inferior.h (detach_inferior): Likewise. + * linux-nat.c (linux_nat_detach): Use the inf parameter, don't + use inferior_ptid, adjust call to inf_ptrace_detach_success. + * linux-thread-db.c (thread_db_detach): Use inf parameter. + +2018-01-19 Simon Marchi <simon.marchi@ericsson.com> + + * target.h (struct target_ops) <to_detach>: Add inferior + parameter. + (target_detach): Likewise. + * target.c (dispose_inferior): Pass inferior down. + (target_detach): Pass inferior down. Assert that it is equal to + the current inferior. + * aix-thread.c (aix_thread_detach): Pass inferior down. + * corefile.c (core_file_command): Pass current_inferior() down. + * corelow.c (core_detach): Add inferior parameter. + * darwin-nat.c (darwin_detach): Likewise. + * gnu-nat.c (gnu_detach): Likewise. + * inf-ptrace.c (inf_ptrace_detach): Likewise. + * infcmd.c (detach_command): Pass current_inferior() down to + target_detach. + * infrun.c (follow_fork_inferior): Pass parent_inf to + target_detach. + (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to + target_detach. + * linux-nat.c (linux_nat_detach): Add inferior parameter. + * linux-thread-db.c (thread_db_detach): Likewise. + * nto-procfs.c (procfs_detach): Likewise. + * procfs.c (procfs_detach): Likewise. + * record.c (record_detach): Likewise. + * record.h (struct inferior): Forward-declare. + (record_detach): Add inferior parameter. + * remote-sim.c (gdbsim_detach): Likewise. + * remote.c (remote_detach_1): Likewise. + (remote_detach): Likewise. + (extended_remote_detach): Likewise. + * sol-thread.c (sol_thread_detach): Likewise. + * target-debug.h (target_debug_print_inferior_p): New macro. + * target-delegates.c: Re-generate. + * top.c (kill_or_detach): Pass inferior down to target_detach. + * windows-nat.c (windows_detach): Add inferior parameter. + +2018-01-19 Simon Marchi <simon.marchi@ericsson.com> + + * target.h (struct target_ops) <to_detach>: Remove args + parameter. + (target_detach): Likewise. + * target.c (dispose_inferior): Adjust. + (target_detach): Remove args parameter, adjust. + * aix-thread.c (aix_thread_detach): Adjust. + * corefile.c (core_file_command): Adjust. + * corelow.c (core_detach): Adjust. + * darwin-nat.c (darwin_detach): Adjust. + * gnu-nat.c (gnu_detach): Adjust. + * inf-ptrace.c (inf_ptrace_detach): Adjust. + * infcmd.c (detach_command): Adjust + * infrun.c (follow_fork_inferior): Adjust. + (handle_vfork_child_exec_or_exit): Adjust. + * linux-fork.c (linux_fork_detach): Remove args parameter. + * linux-fork.h (linux_fork_detach): Likewise. + * linux-nat.c (linux_nat_detach): Likewise, and adjust. + * linux-thread-db.c (thread_db_detach): Likewise. + * nto-procfs.c (procfs_detach): Likewise. + * procfs.c (procfs_detach): Likewise. + (do_detach): Remove signo parameter. + * record.c (record_detach): Remove args parameter. + * record.h (record_detach): Likewise. + * remote-sim.c (gdbsim_detach): Likewise. + * remote.c (remote_detach_1): Likewise. + (remote_detach): Likewise. + (extended_remote_detach): Likewise. + * sol-thread.c (sol_thread_detach): Likewise. + * target-delegates.c: Re-generate. + * top.c (struct qt_args) <args>: Remove field. + (kill_or_detach): Don't pass args. + (quit_force): Don't set args. + * windows-nat.c (windows_detach): Remove args parameter. + +2018-01-19 Yao Qi <yao.qi@linaro.org> + + * arm-linux-tdep.c (arm_linux_gcc_target_options): New function. + (arm_linux_init_abi): Install it. + +2018-01-19 Yao Qi <yao.qi@linaro.org> + + * osabi.c (gdb_osabi_names): Extend the regexp for + arm-linux-gnueabihf. + +2018-01-18 Yao Qi <yao.qi@linaro.org> + + * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to + m_abbrevs. + (abbrev_table::add_abbrev): Update. + (abbrev_table::lookup_abbrev): Update. + +2018-01-18 Yao Qi <yao.qi@linaro.org> + + * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read. + +2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com> + + * compile/compile.c (compile_to_object): Convert "triplet_rx" + to "std::string". + +2018-01-17 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC. + +2018-01-17 Tom Tromey <tom@tromey.com> + + * gdbtypes.h (add_dyn_prop): Remove objfile parameter. + * gdbtypes.c (add_dyn_prop): Remove objfile parameter. + (create_array_type_with_stride): Update. + * dwarf2read.c (set_die_type): Update. + +2018-01-17 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (delayed_method_info): Remove typedef. + (dwarf2_cu::method_info): Now a std::vector. + (add_to_method_list): Update. + (free_delayed_list): Remove. + (compute_delayed_physnames): Update. + (process_full_comp_unit, process_full_type_unit): Clear the method + list. Remove cleanups. + (psymtab_include_file_name): Add name_holder parameter. Use + unique_xmalloc_ptr. + (dwarf_decode_lines): Update. + +2018-01-17 Tom Tromey <tom@tromey.com> + Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor. + (dwarf2_per_objfile::free_cached_comp_units) + (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) + (init_cutu_and_read_dies_no_follow): Update. + (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit. + (dwarf2_cu::~dwarf2_cu): New. + (free_heap_comp_unit, free_stack_comp_unit): Remove. + (age_cached_comp_units, free_one_cached_comp_unit): Update. + +2018-01-17 Tom Tromey <tom@tromey.com> + Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove. + (struct die_reader_specs) <abbrev_table>: New member. + (struct abbrev_table): Add constructor. + <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare. + <abbrev_obstack>: Now an auto_obstack. + (abbrev_table_up): New typedef. + (init_cu_die_reader): Add abbrev_table parameter. + (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter. + Add result_dwo_abbrev_table. + (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) + (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1): + Update. + (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as + parameter. + (skip_children): Update. + (abbrev_table::alloc_abbrev): Rename from + abbrev_table_alloc_abbrev. + (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev. + (abbrev_table::lookup_abbrev): Rename from + abbrev_table_lookup_abbrev. + (abbrev_table_read_table): Return abbrev_table_up. + (abbrev_table_free, abbrev_table_free_cleanup) + (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove. + (load_partial_dies): Update. + +2018-01-17 Tom Tromey <tom@tromey.com> + + * dwarf2read.c (dwarf2_compute_name): Update comment. + (read_func_scope, read_variable): Update. + (new_symbol): Remove. + (new_symbol_full): Rename to new_symbol. + +2018-01-17 Mike Gulick <mgulick@mathworks.com> + + PR gdb/16577 + * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue + a warning instead of throwing an error, set section size to 0 and return + NULL. + * gdb_bfd.h (gdb_bfd_map_section): Update description. + +2018-01-17 Simon Marchi <simon.marchi@ericsson.com> + + * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return + std::string. + (linux_ptrace_attach_fail_reason_string): Likewise. + * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): + Likewise. + (linux_ptrace_attach_fail_reason_string): Likewise. + * linux-nat.c (attach_proc_task_lwp_callback): Adjust. + +2018-01-17 Simon Marchi <simon.marchi@ericsson.com> + + * linux-nat.c (linux_nat_attach): Remove xstrdup. + +2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com> + + PR gdb/21559 + * configure.ac: Include <sys/types.h> prior to <sys/user.h> when + checking for fs_base/gs_base fields in struct user_regs_struct. + * configure: Regenerate. + +2018-01-17 Yao Qi <yao.qi@linaro.org> + + * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New + function. + (aarch64_linux_init_abi): Install it to gdbarch hook + gcc_target_options. + +2018-01-15 Pedro Alves <palves@redhat.com> + + * common/signals-state-save-restore.c + (save_original_signals_state): Fix typos. + +2017-01-12 Tom Tromey <tom@tromey.com> + Sergio Durigan Junior <sergiodj@redhat.com> + + * Makefile.in (install-only): Install gdb-add-index. + +2018-01-12 John Baldwin <jhb@FreeBSD.org> + + * fbsd-tdep.c (KVE_PROTECTION): Correct value. + +2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com> + + * infrun.c (keep_going_pass_signal): Clear step-over info when + insert_breakpoints fails. + +2018-01-11 Pedro Alves <palves@redhat.com> + + PR gdb/22583 + * infrun.c (resume): Rename to ... + (resume_1): ... this. + (resume): Reimplement as wrapper around resume_1. + +2018-01-11 Pedro Alves <palves@redhat.com> + + PR remote/22597 + * remote.c (remote_parse_stop_reply): Default to the last-set + general thread instead of to 'magic_null_ptid'. + +2018-01-10 Pedro Alves <palves@redhat.com> + + * language.h (language_get_symbol_name_matcher): Rename ... + (get_symbol_name_matcher): ... this. + * language.c (language_get_symbol_name_matcher): Ditto. + * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All + callers adjusted. + +2018-01-10 Pedro Alves <palves@redhat.com> + + PR gdb/22670 + * dwarf2read.c + (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher): + Adjust to use language_get_symbol_name_matcher instead of + language_defn::la_get_symbol_name_matcher. + * language.c (language_get_symbol_name_matcher): If in Ada mode + and the lookup name is a verbatim match, return Ada's matcher. + * language.h (language_get_symbol_name_matcher): Adjust comment. + (ada_lookup_name_info::verbatim_p):: New method. + +2018-01-10 Pedro Alves <palves@redhat.com> + + PR gdb/22670 + * ada-lang.c (ada_collect_symbol_completion_matches): If the + minsym's language is language_auto or language_cplus, pass down + language_ada instead. + * symtab.c (compare_symbol_name): Don't frob symbol language here. + +2018-01-10 Pedro Alves <palves@redhat.com> + + PR gdb/22670 + * minsyms.c (linkage_name_str): New function. + (iterate_over_minimal_symbols): Use it. + +2018-01-09 John Baldwin <jhb@FreeBSD.org> + + * NEWS: Document that 'info proc' now works on FreeBSD. + +2018-01-09 John Baldwin <jhb@FreeBSD.org> + + * configure.ac: Check for kinfo_getfile in libutil. + * configure: Regenerate. + * config.in: Regenerate. + * fbsd-nat.c: Include "fbsd-tdep.h". + (fbsd_fetch_cmdline): New. + (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool + rather than calling error. + (fbsd_info_proc): New. + (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails. + (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails. + (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc". + +2018-01-09 John Baldwin <jhb@FreeBSD.org> + + * fbsd-nat.c (struct free_deleter): Remove. + (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>. + +2018-01-09 John Baldwin <jhb@FreeBSD.org> + + * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return + NULL for an empty pathname. + +2018-01-09 John Baldwin <jhb@FreeBSD.org> + + * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET) + (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ) + (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) + (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) + (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP) + (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD) + (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD) + (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout) + (kinfo_proc_layout_32, kinfo_proc_layout_i386) + (kinfo_proc_layout_64, fbsd_vm_map_entry_flags) + (fbsd_core_info_proc_mappings, fbsd_core_vnode_path) + (fbsd_core_fetch_timeval, fbsd_print_sigset) + (fbsd_core_info_proc_status, fbsd_core_info_proc): New. + (fbsd_init_abi): Install gdbarch "core_info_proc" method. + * fbsd-tdep.h (fbsd_vm_map_entry_flags): New. + +2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org> + + * gdb/gnu-nat.c: Include <elf.h> and <link.h>. + (gnu_xfer_auxv): New function. + (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is + TARGET_OBJECT_AUXV. + +2018-01-08 Yao Qi <yao.qi@linaro.org> + Simon Marchi <simon.marchi@ericsson.com> + + * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and + common/selftest.c. + (COMMON_OBS): Remove selftest.o. + * configure.ac: Append selftest-arch.c and common/selftest.c to + CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS. + * configure: Re-generated. + * maint.c (maintenance_selftest): Wrap selftests::run_tests with + GDB_SELF_TEST. + (maintenance_info_selftests): Likewise. + +2018-01-08 Xavier Roirand <roirand@adacore.com> + + * ada-valprint.c (val_print_packed_array_elements): Use + proper number of elements when printing an array indexed + by an enumeration type. + +2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> + + * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove. + (dw2_get_file_names_reader): Adjust. + (lookup_dwo_signatured_type): Adjust. + (lookup_dwp_signatured_type): Adjust. + (lookup_signatured_type): Adjust. + (create_type_unit_group): Adjust. + (get_type_unit_group): Adjust. + (process_psymtab_comp_unit_reader): Adjust. + (build_type_psymtabs_reader): Adjust. + (scan_partial_symbols): Adjust. + (add_partial_symbol): Adjust. + (add_partial_subprogram): Adjust. + (peek_die_abbrev): Adjust. + (fixup_go_packaging): Adjust. + (process_imported_unit_die): Adjust. + (dwarf2_compute_name): Adjust. + (dwarf2_physname): Adjust. + (read_import_statement): Adjust. + (handle_DW_AT_stmt_list): Adjust. + (read_file_scope): Adjust. + (read_func_scope): Adjust. + (read_lexical_block_scope): Adjust. + (read_call_site_scope): Adjust. + (read_variable): Adjust. + (dwarf2_rnglists_process): Adjust. + (dwarf2_ranges_process): Adjust. + (dwarf2_ranges_read): Adjust. + (dwarf2_get_pc_bounds): Adjust. + (dwarf2_record_block_ranges): Adjust. + (dwarf2_add_field): Adjust. + (dwarf2_add_member_fn): Adjust. + (read_structure_type): Adjust. + (process_structure_scope): Adjust. + (read_enumeration_type): Adjust. + (read_array_type): Adjust. + (mark_common_block_symbol_computed): Adjust. + (read_common_block): Adjust. + (read_namespace_type): Adjust. + (read_namespace): Adjust. + (read_module_type): Adjust. + (read_tag_pointer_type): Adjust. + (read_tag_ptr_to_member_type): Adjust. + (read_tag_string_type): Adjust. + (read_subroutine_type): Adjust. + (read_typedef): Adjust. + (read_base_type): Adjust. + (attr_to_dynamic_prop): Adjust. + (read_subrange_type): Adjust. + (read_unspecified_type): Adjust. + (dwarf2_read_abbrevs): Adjust. + (load_partial_dies): Adjust. + (read_partial_die): Adjust. + (find_partial_die): Adjust. + (guess_partial_die_structure_name): Adjust. + (fixup_partial_die): Adjust. + (read_attribute_value): Adjust. + (read_addr_index): Adjust. + (read_addr_index_from_leb128): Adjust. + (read_str_index): Adjust. + (dwarf2_string_attr): Adjust. + (get_debug_line_section): Adjust. + (dwarf_decode_line_header): Adjust. + (lnp_state_machine::check_line_address): Adjust. + (dwarf_decode_lines_1): Adjust. + (dwarf_decode_lines): Adjust. + (dwarf2_start_symtab): Adjust. + (var_decode_location): Adjust. + (new_symbol_full): Adjust. + (dwarf2_const_value_data): Adjust. + (dwarf2_const_value_attr): Adjust. + (dwarf2_const_value): Adjust. + (die_type): Adjust. + (die_containing_type): Adjust. + (build_error_marker_type): Adjust. + (lookup_die_type): Adjust. + (guess_full_die_structure_name): Adjust. + (anonymous_struct_prefix): Adjust. + (determine_prefix): Adjust. + (dwarf2_name): Adjust. + (follow_die_ref_or_sig): Adjust. + (follow_die_offset): Adjust. + (follow_die_ref): Adjust. + (follow_die_sig_1): Adjust. + (follow_die_sig): Adjust. + (get_signatured_type): Adjust. + (get_DW_AT_signature_type): Adjust. + (decode_locdesc): Adjust. + (dwarf_decode_macros): Adjust. + (cu_debug_loc_section): Adjust. + (fill_in_loclist_baton): Adjust. + (dwarf2_symbol_mark_computed): Adjust. + (init_one_comp_unit): Don't assign + dwarf2_cu::dwarf2_per_objfile. + (set_die_type): Adjust. + +2018-01-07 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2read.c (struct mapped_debug_names): Add constructor. + <dwarf2_per_objfile>: New field. + (dwarf2_per_objfile): Remove global. + (get_dwarf2_per_objfile): New function. + (set_dwarf2_per_objfile): New function. + (dwarf2_build_psymtabs_hard): Change objfile parameter to + dwarf2_per_objfile. + (abbrev_table_read_table): Add dwarf2_per_objfile parameter. + (read_abbrev_offset): Likewise. + (read_indirect_string): Likewise. + (read_indirect_line_string): Likewise. + (read_indirect_string_at_offset): Likewise. + (read_indirect_string_from_dwz): Likewise. + (dwarf2_find_containing_comp_unit): Change objfile parameter to + dwarf2_per_objfile. + (age_cached_comp_units): Add dwarf2_per_objfile parameter. + (create_all_comp_units): Change objfile parameter to + dwarf2_per_objfile. + (create_all_type_units): Likewise. + (process_queue): Add dwarf2_per_objfile parameter. + (read_and_check_comp_unit_head): Likewise. + (lookup_dwo_unit_in_dwp): Likewise. + (get_dwp_file): Likewise. + (process_cu_includes): Likewise. + (struct free_dwo_file_cleanup_data): New struct. + (dwarf2_has_info): Use get_dwarf2_per_objfile and + set_dwarf2_per_objfile. + (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter. + (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from + context, adjust calls. + (dw2_instantiate_symtab): Likewise. + (dw2_get_cutu): Add dwarf2_per_objfile parameter. + (dw2_get_cu): Likewise. + (create_cu_from_index_list): Change objfile parameter to + dwarf2_per_objfile. + (create_cus_from_index_list): Get dwarf2_per_objfile from + context, adjust calls. + (create_cus_from_index): Likewise. + (create_signatured_type_table_from_index): Change objfile + parameter to dwarf2_per_objfile. + (create_signatured_type_table_from_debug_names): Change objfile + parameter to dwarf2_per_objfile. + (create_addrmap_from_index): Likewise. + (create_addrmap_from_aranges): Likewise. + (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls. + (dw2_setup): Remove. + (dw2_get_file_names_reader): Get dwarf2_per_objfile from + context. + (dw2_find_last_source_symtab): Get dwarf2_per_objfile using + get_dwarf2_per_objfile. + (dw2_forget_cached_source_info): Likewise. + (dw2_map_symtabs_matching_filename): Likewise. + (struct dw2_symtab_iterator) <index>: Remove. + <dwarf2_per_objfile>: New field. + (dw2_symtab_iter_init): Replace index parameter with + dwarf2_per_objfile. + (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter. + (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust. + (dw2_print_stats): Likewise. + (dw2_dump): Likewise. + (dw2_expand_symtabs_for_function): Likewise. + (dw2_expand_all_symtabs): Likewise. + (dw2_expand_symtabs_with_fullname): Likewise. + (dw2_expand_marked_cus): Replace index and objfile parameters + with dwarf2_per_objfile. + (dw_expand_symtabs_matching_file_matcher): Add + dwarf2_per_objfile parameter and adjust calls. + (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and + adjust calls. + (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup. + (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and + adjust calls. + (create_cus_from_debug_names_list): Replace objfile parameter + with dwarf2_per_objfile and adjust calls. + (create_cus_from_debug_names): Likewise. + (dwarf2_read_debug_names): Likewise. + (mapped_debug_names::namei_to_name): Adjust call. + (dw2_debug_names_iterator::next): Likewise. + (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. + (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile. + (dw2_debug_names_dump): Likewise. + (dw2_debug_names_expand_symtabs_for_function): Likewise. + (dw2_debug_names_expand_symtabs_matching): Likewise. + (dwarf2_initialize_objfile): Likewise. + (dwarf2_build_psymtabs): Likewise. + (get_abbrev_section_for_cu): Get dwarf2_per_objfile from + this_cu. + (error_check_comp_unit_head): Add dwarf2_per_objfile parameter. + (read_and_check_comp_unit_head): Likewise. + (read_abbrev_offset): Likewise. + (create_debug_type_hash_table): Likewise. + (create_debug_types_hash_table): Likewise. + (create_all_type_units): Replace objfile parameter with + dwarf2_per_objfile. + (add_type_unit): Add dwarf2_per_objfile parameter. + (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter + with dwarf2_per_objfile. + (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu. + (lookup_dwp_signatured_type): Likewise. + (lookup_signatured_type): Likewise. + (read_cutu_die_from_dwo): Likewise. + (init_tu_and_read_dwo_dies): Likewise. + (init_cutu_and_read_dies): Likewise. + (init_cutu_and_read_dies_no_follow): Likewise. + (allocate_type_unit_groups_table): Add objfile parameter. + (create_type_unit_group): Use dwarf2_per_objfile from cu. + (get_type_unit_group): Likewise. + (process_psymtab_comp_unit): Update call. + (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu. + (build_type_psymtabs_1): Add dwarf2_per_objfile parameter. + (print_tu_stats): Likewise. + (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed + in void* parameter. + (build_type_psymtabs): Change objfile parameter to + dwarf2_per_objfile. + (process_skeletonless_type_unit): Use dwarf2_per_objfile + passed in void* parameter. + (process_skeletonless_type_units): Change objfile parameter to + dwarf2_per_objfile. + (set_partial_user): Likewise. + (dwarf2_build_psymtabs_hard): Likewise. + (read_comp_units_from_section): Likewise. + (create_all_comp_units): Likewise. + (scan_partial_symbols): Update calls. + (add_partial_symbol): Likewise. + (dwarf2_read_symtab): Use get_dwarf2_per_objfile. + (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu. + (process_queue): Add dwarf2_per_objfile parameter. + (get_compunit_symtab): Use dwarf2_per_objfile from cu. + (compute_compunit_symtab_includes): Likewise. + (process_cu_includes): Add dwarf2_per_objfile parameter. + (process_full_comp_unit): Use dwarf2_per_objfile from cu. + (process_full_type_unit): Likewise. + (process_imported_unit_die): Update call. + (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu. + (read_file_scope): Likewise. + (allocate_dwo_file_hash_table): Add objfile parameter. + (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter. + (create_cus_hash_table): Likewise. + (create_dwp_hash_table): Likewise. + (create_dwo_unit_in_dwp_v1): Likewise. + (create_dwp_v2_section): Likewise. + (create_dwo_unit_in_dwp_v2): Likewise. + (lookup_dwo_unit_in_dwp): Likewise. + (try_open_dwop_file): Likewise. + (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu. + (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update + cleanup to include a reference to dwarf2_per_objfile. + (open_dwp_file): Add dwarf2_per_objfile parameter. + (open_and_init_dwp_file): Likewise. + (get_dwp_file): Likewise. + (lookup_dwo_cutu): Use dwarf2_per_objfile from cu. + (queue_and_load_all_dwo_tus): Update call. + (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup + data. + (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu. + (dwarf2_ranges_process): Likewise. + (dwarf2_get_pc_bounds): Likewise. + (mark_common_block_symbol_computed): Likewise. + (abbrev_table_read_table): Add dwarf2_per_objfile parameter. + (dwarf2_read_abbrevs): Update call. + (read_partial_die): Use dwarf2_per_objfile from cu. + (find_partial_die): Likewise. + (fixup_partial_die): Likewise. + (read_attribute_value): Likewise. + (read_indirect_string_at_offset_from): Add objfile parameter. + (read_indirect_string_at_offset): Add dwarf2_per_objfile + parameter. + (read_indirect_string_from_dwz): Add objfile parameter. + (read_indirect_string): Add objfile parameter. + (read_addr_index_1): Add dwarf2_per_objfile parameter. + (read_addr_index): Use dwarf2_per_objfile from cu. + (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't + call dw2_setup. + (read_str_index): Use dwarf2_per_objfile from cu. + (get_debug_line_section): Likewise. + (read_formatted_entries): Add dwarf2_per_objfile parameter. + (dwarf_decode_line_header): Use dwarf2_per_objfile from cu. + (new_symbol_full): Use dwarf2_per_objfile from cu. + (build_error_marker_type): Likewise. + (lookup_die_type): Likewise. + (determine_prefix): Likewise. + (follow_die_offset): Likewise. + (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile. + (dwarf2_fetch_constant_bytes): Don't call dw2_setup. + (dwarf2_fetch_die_type_sect_off): Likewise. + (dwarf2_get_die_type): Likewise. + (follow_die_sig_1): Use dwarf2_per_objfile from cu. + (get_signatured_type): Likewise. + (get_DW_AT_signature_type): Likewise. + (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter. + (dwarf_decode_macros): Use dwarf2_per_objfile from cu. + (cu_debug_loc_section): Likewise. + (fill_in_loclist_baton): Likewise. + (dwarf2_symbol_mark_computed): Likewise. + (dwarf2_find_containing_comp_unit): Change objfile parameter to + dwarf2_per_objfile. + (free_cached_comp_units): Use dwarf2_per_objfile passed in void* + parameter. + (age_cached_comp_units): Add dwarf2_per_objfile parameter. + (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu. + (dwarf2_free_objfile): Use get_dwarf2_per_objfile. + (set_die_type): Use dwarf2_free_objfile from cu. + (get_die_type_at_offset): Likewise. + (dwarf2_per_objfile_free): Don't assign global variable. + (debug_names) <constructor>: Add dwarf2_per_objfile + parameter, update m_debugstrlookup construction. + (debug_names::debug_str_lookup): Add dwarf2_per_objfile + parameter. + <m_dwarf2_per_objfile>: New field. + <lookup>: Use m_dwarf2_per_objfile. + (check_dwarf64_offsets): Add dwarf2_per_objfile parameter. + (psyms_seen_size): Likewise. + (write_gdbindex): Replace objfile parameter with + dwarf2_per_objfile. + (write_debug_names): Likewise. + (write_psymtabs_to_index): Likewise. + (save_gdb_index_command): Use get_dwarf2_per_objfile, update + calls. + +2018-01-07 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove. + <dwarf2_per_objfile>: New field. + (struct dwarf2_per_cu_data) <objfile>: Remove. + <dwarf2_per_objfile>: New field. + (create_cu_from_index_list): Assign dwarf2_per_objfile instead + of objfile. + (create_signatured_type_table_from_index): Likewise. + (create_debug_type_hash_table): Likewise. + (fill_in_sig_entry_from_dwo_entry): Likewise. + (lookup_dwo_unit): Access objfile through dwarf2_per_objfile. + (create_type_unit_group): Assign dwarf2_per_objfile instead of + objfile. + (create_partial_symtab): Access objfile through + dwarf2_per_objfile. + (process_psymtab_comp_unit_reader): Likewise. + (read_comp_units_from_section): Likewise. + (scan_partial_symbols): Likewise. + (add_partial_symbol): Likewise. + (add_partial_subprogram): Likewise. + (peek_die_abbrev): Likewise. + (fixup_go_packaging): Likewise. + (process_full_comp_unit): Likewise. + (process_full_type_unit): Likewise. + (process_imported_unit_die): Likewise. + (dwarf2_compute_name): Likewise. + (dwarf2_physname): Likewise. + (read_import_statement): Likewise. + (create_cus_hash_table): Assign dwarf2_physname instead of + objfile. + (read_func_scope): Access objfile through dwarf2_per_objfile. + (read_lexical_block_scope): Likewise. + (read_call_site_scope): Likewise. + (read_variable): Likewise. + (dwarf2_rnglists_process): Likewise. + (dwarf2_ranges_process): Likewise. + (dwarf2_ranges_read): Likewise. + (dwarf2_record_block_ranges): Likewise. + (dwarf2_add_field): Likewise. + (dwarf2_add_member_fn): Likewise. + (read_structure_type): Likewise. + (process_structure_scope): Likewise. + (read_enumeration_type): Likewise. + (read_array_type): Likewise. + (read_common_block): Likewise. + (read_namespace_type): Likewise. + (read_namespace): Likewise. + (read_module_type): Likewise. + (read_tag_pointer_type): Likewise. + (read_tag_ptr_to_member_type): Likewise. + (read_tag_string_type): Likewise. + (read_subroutine_type): Likewise. + (read_typedef): Likewise. + (read_base_type): Likewise. + (attr_to_dynamic_prop): Likewise. + (read_subrange_type): Likewise. + (read_unspecified_type): Likewise. + (load_partial_dies): Likewise. + (read_partial_die): Likewise. + (find_partial_die): Likewise. + (guess_partial_die_structure_name): Likewise. + (fixup_partial_die): Likewise. + (read_attribute_value): Likewise. + (read_addr_index_from_leb128): Likewise. + (dwarf2_read_addr_index): Likewise. + (dwarf2_string_attr): Likewise. + (lnp_state_machine::check_line_address): Likewise. + (dwarf_decode_lines_1): Likewise. + (dwarf_decode_lines): Likewise. + (dwarf2_start_symtab): Likewise. + (var_decode_location): Likewise. + (new_symbol_full): Likewise. + (dwarf2_const_value_data): Likewise. + (dwarf2_const_value_attr): Likewise. + (dwarf2_const_value): Likewise. + (die_type): Likewise. + (die_containing_type): Likewise. + (lookup_die_type): Likewise. + (guess_full_die_structure_name): Likewise. + (anonymous_struct_prefix): Likewise. + (dwarf2_name): Likewise. + (follow_die_ref_or_sig): Likewise. + (follow_die_offset): Likewise. + (follow_die_ref): Likewise. + (dwarf2_fetch_die_loc_sect_off): Likewise. + (dwarf2_fetch_constant_bytes): Likewise. + (dwarf2_fetch_die_type_sect_off): Likewise. + (dwarf2_get_die_type): Likewise. + (follow_die_sig): Likewise. + (decode_locdesc): Likewise. + (dwarf2_per_cu_objfile): Likewise. + (dwarf2_per_cu_text_offset): Likewise. + (init_one_comp_unit): Assign dwarf2_per_objfile instead of + objfile. + (set_die_type): Access objfile through + dwarf2_per_objfile. + +2018-01-07 Simon Marchi <simon.marchi@ericsson.com> + + * valprint.c (converted_character_d): Remove typedef. + (DEF_VEC_O (converted_character_d)): Remove. + (count_next_character): Use std::vector. + (print_converted_chars_to_obstack): Likewise. + (generic_printstr): Likewise. + +2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> + + * xml-support.h (struct gdb_xml_value): Add constructor. + <value>: Change type to unique_xmalloc_ptr. + (gdb_xml_value_s): Remove typedef. + (DEF_VEC_O (gdb_xml_value_s)): Remove. + (gdb_xml_element_start_handler): Change parameter type to + std::vector. + (xml_find_attribute): Likewise. + * xml-support.c (xml_find_attribute): Change parameter type to + std::vector and adjust. + (gdb_xml_values_cleanup): Remove. + (gdb_xml_parser::start_element): Adjust to std::vector. + (xinclude_start_include): Change paraeter type to std::vector + and adjust. + * btrace.c (check_xml_btrace_version): Likewise. + (parse_xml_btrace_block): Likewise. + (parse_xml_btrace_pt_config_cpu): Likewise. + (parse_xml_btrace_pt): Likewise. + (parse_xml_btrace_conf_bts): Likewise. + (parse_xml_btrace_conf_pt): Likewise. + * memory-map.c (memory_map_start_memory): Likewise. + (memory_map_start_property): Likewise. + * osdata.c (osdata_start_osdata): Likewise. + (osdata_start_item): Likewise. + (osdata_start_column): Likewise. + * remote.c (start_thread): Likewise. + * solib-aix.c (library_list_start_library): Likewise. + (library_list_start_list): Likewise. + * solib-svr4.c (library_list_start_library): Likewise. + (svr4_library_list_start_list): Likewise. + * solib-target.c (library_list_start_segment): Likewise. + (library_list_start_section): Likewise. + (library_list_start_library): Likewise. + (library_list_start_list): Likewise. + * tracepoint.c (traceframe_info_start_memory): Likewise. + (traceframe_info_start_tvar): Likewise. + * xml-syscall.c (syscall_start_syscall): Likewise. + * xml-tdesc.c (tdesc_start_target): Likewise. + (tdesc_start_feature): Likewise. + (tdesc_start_reg): Likewise. + (tdesc_start_union): Likewise. + (tdesc_start_struct): Likewise. + (tdesc_start_flags): Likewise. + (tdesc_start_enum): Likewise. + (tdesc_start_field): Likewise. + (tdesc_start_enum_value): Likewise. + (tdesc_start_vector): Likewise. + +2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> + + * extension.h (struct xmethod_worker) <clone>: Remove. + * python/py-xmethods.c (struct python_xmethod_worker) <clone>: + Remove. + (python_xmethod_worker::clone): Remove. + * valops.c (find_overload_match): Use std::move instead of + clone. + +2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> + + * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h. + (struct extension_language_ops) <clone_xmethod_worker_data>: Remove. + <free_xmethod_worker_data>: Remove. + <get_matching_xmethod_workers>: Chance VEC to std::vector. + <get_xmethod_arg_types>: Remove. + <get_xmethod_result_type>: Remove. + <invoke_xmethod>: Remove. + * extension.c (new_xmethod_worker): Remove. + (clone_xmethod_worker): Remove. + (get_matching_xmethod_workers): Return void, pass std::vector by + pointer. + (get_xmethod_arg_types): Rename to... + (xmethod_worker::get_arg_types): ... this, and adjust. + (get_xmethod_result_type): Rename to... + (xmethod_worker::get_result_type): ... this, and adjust. + (invoke_xmethod): Remove. + (free_xmethod_worker): Remove. + (free_xmethod_worker_vec): Remove. + * extension.h (enum ext_lang_rc): Move here from + extension-priv.h. + (struct xmethod_worker): Add constructor and destructor. + <data>: Remove. + <value>: Remove. + <invoke, clone, do_get_result_type, do_get_arg_types>: New + virtual pure methods. + <get_arg_types, get_result_type>: New methods. + (xmethod_worker_ptr): Remove typedef. + (DEF_VEC_P (xmethod_worker_ptr)): Remove. + (xmethod_worker_vec): Remove typedef. + (xmethod_worker_up): New typedef. + (invoke_xmethod): Remove. + (clone_xmethod_worker): Remove. + (free_xmethod_worker): Remove. + (free_xmethod_worker_vec): Remove. + (get_xmethod_arg_types): Remove. + (get_xmethod_result_type): Remove. + * valops.c (find_method_list): Use std::vector, don't use + intermediate vector. + (value_find_oload_method_list): Use std::vector. + (find_overload_match): Use std::vector. + (find_oload_champ): Use std::vector. + * value.c (value_free): Use operator delete. + (value_of_xmethod): Rename to... + (value_from_xmethod): ... this. Don't assign + xmethod_worker::value, take rvalue-reference. + (result_type_of_xmethod): Adjust. + (call_xmethod): Adjust. + * value.h: Include extension.h. + (struct xmethod_worker): Don't forward-declare. + (value_of_xmethod): Rename to... + (value_from_xmethod): ... this, take rvalue-reference. + * python/py-xmethods.c (struct gdbpy_worker_data): Rename to... + (struct python_xmethod_worker): ... this, add constructor and + destructor. + <invoke, clone, do_get_arg_types, do_get_result_type>: Implement. + (gdbpy_free_xmethod_worker_data): Rename to... + (python_xmethod_worker::~python_xmethod_worker): ... this and + adjust. + (gdbpy_clone_xmethod_worker_data): Rename to... + (python_xmethod_worker::clone): ... this and adjust. + (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use + temporary vector. + (gdbpy_get_xmethod_arg_types): Rename to... + (python_xmethod_worker::do_get_arg_types): ... this and adjust. + (gdbpy_get_xmethod_result_type): Rename to... + (python_xmethod_worker::do_get_result_type): ... this and + adjust. + (gdbpy_invoke_xmethod): Rename to... + (python_xmethod_worker::invoke): ... this and adjust. + (new_python_xmethod_worker): Rename to... + (python_xmethod_worker::python_xmethod_worker): ... this and + adjust. + * python/python-internal.h (gdbpy_clone_xmethod_worker_data): + Remove. + (gdbpy_free_xmethod_worker_data): Remove. + (gdbpy_get_matching_xmethod_workers): Use std::vector. + (gdbpy_get_xmethod_arg_types): Remove. + (gdbpy_get_xmethod_result_type): Remove. + (gdbpy_invoke_xmethod): Remove. + * python/python.c (python_extension_ops): Remove obsolete + callbacks. + +2018-01-05 Pedro Alves <palves@redhat.com> + + PR gdb/18653 + * common/signals-state-save-restore.c + (save_original_signals_state): New parameter 'quiet'. Warn if we + find a custom handler preinstalled, instead of internal erroring. + But only warn if !quiet. + * common/signals-state-save-restore.h + (save_original_signals_state): New parameter 'quiet'. + * main.c (captured_main_1): Move save_original_signals_state call + after option handling, and pass QUIET. + +2018-01-05 Pedro Alves <palves@redhat.com> + + * spu-tdep.c (spu_catch_start): Pass + symbol_name_match_type::SEARCH_NAME to block_lookup_symbol. + +2018-01-05 Pedro Alves <palves@redhat.com> + + PR gdb/22670 + * ada-lang.c (literal_symbol_name_matcher): New function. + (ada_get_symbol_name_matcher): Use it for + symbol_name_match_type::SEARCH_NAME. + * block.c (block_lookup_symbol): New parameter 'match_type'. Pass + it down instead of assuming symbol_name_match_type::FULL. + * block.h (block_lookup_symbol): New parameter 'match_type'. + * c-valprint.c (print_unpacked_pointer): Use + lookup_symbol_search_name instead of lookup_symbol. + * compile/compile-object-load.c (get_out_value_type): Pass down + symbol_name_match_type::SEARCH_NAME. + * cp-namespace.c (cp_basic_lookup_symbol): Pass down + symbol_name_match_type::FULL. + * cp-support.c (cp_get_symbol_name_matcher): Handle + symbol_name_match_type::SEARCH_NAME. + * infrun.c (insert_exception_resume_breakpoint): Use + lookup_symbol_search_name. + * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name. + * psymtab.c (maintenance_check_psymtabs): Use + symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME. + * stack.c (print_frame_args): Use lookup_symbol_search_name and + SYMBOL_SEARCH_NAME. + * symtab.c (lookup_local_symbol): Don't demangle the lookup name + if symbol_name_match_type::SEARCH_NAME. + (lookup_symbol_in_language): Pass down + symbol_name_match_type::FULL. + (lookup_symbol_search_name): New. + (lookup_language_this): Pass down + symbol_name_match_type::SEARCH_NAME. + (lookup_symbol_aux, lookup_local_symbol): New parameter + 'match_type'. Pass it down. + * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator. + (lookup_symbol_search_name): New declaration. + (lookup_symbol_in_block): New 'match_type' parameter. + +2018-01-05 Pedro Alves <palves@redhat.com> + + PR gdb/22670 + * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of + ada_lookup_symbol. + (ada_lookup_symbol): Reimplement in terms of + ada_lookup_symbol_list, bits factored out from + ada_lookup_encoded_symbol. + +2018-01-05 Joel Brobecker <brobecker@adacore.com> + + * ada-exp.y (write_object_renaming): When subscripting an array + using a symbol as the index, pass the block in call to + ada_lookup_encoded_symbol when looking that symbol up. + +2018-01-05 Jerome Guitton <guitton@adacore.com> + + * ada-lang.c (ada_array_length): Use ada_index_type instead of + TYPE_INDEX_TYPE. + +2018-01-05 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (ada_to_fixed_value_create): Add handling of + the case where VALUE_LVAL (val0) is not lval_memory. + +2018-01-05 Xavier Roirand <roirand@adacore.com> + + * ada-valprint.c (print_optional_low_bound): Handle + character-indexed array printing like boolean-indexed array + printing. + +2018-01-05 Joel Brobecker <brobecker@adacore.com> + + * NEWS: Create a new section for the next release branch. + Rename the section of the current branch, now that it has + been cut. + +2018-01-05 Joel Brobecker <brobecker@adacore.com> + + GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7): + * version.in: Bump version to 8.1.50.DATE-git. + +2018-01-03 Xavier Roirand <roirand@adacore.com> + + * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>: + Add field. + * ada-lang.c (struct exception_support_info) <catch_handlers_sym>: + Add field. + (default_exception_support_info) <catch_handlers_sym>: Add field. + (exception_support_info_fallback) <catch_handlers_sym>: Add field. + (ada_exception_name_addr_1): Add "catch handlers" handling. + (ada_exception_catchpoint_cond_string) <ex>: New parameter. + Update all callers. + (create_excep_cond_exprs) <ex>: Add parameter. + (re_set_exception): Update create_excep_cond_exprs call. + (print_it_exception, print_one_exception, print_mention_exception) + (print_recreate_exception): Add "catch handler" handling. + (allocate_location_catch_handlers, re_set_catch_handlers) + (check_status_catch_handlers, print_it_catch_handlers) + (print_one_catch_handlers, print_mention_catch_handlers) + (print_recreate_catch_handlers): New function. + (catch_handlers_breakpoint_ops): New variable. + (catch_ada_exception_command_split) <is_catch_handlers_cmd>: + Add parameter. Add "catch handler" handling. + (ada_exception_sym_name, ada_exception_breakpoint_ops): + Add "catch handler" handling. + (ada_exception_catchpoint_cond_string): Add "catch handler" + handling. + (create_ada_exception_catchpoint): Update create_excep_cond_exprs + call. + (catch_ada_handlers_command): New function. + (initialize_ada_catchpoint_ops): Initialize "catch handlers" + operations structure. + (_initialize_ada_language): Add "catch handlers" command entry. + * NEWS: Document "catch handlers" feature. + +2018-01-02 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (ada_value_slice_from_ptr): Take array stride into + account when creating the array type of the slice. + (ada_value_slice): Likewise. + +2018-01-02 Joel Brobecker <brobecker@adacore.com> + + * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>: + New enum value. + (create_array_type_with_stride): Add byte_stride_prop parameter. + * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>: + New parameter. Update all callers in this file. + (array_type_has_dynamic_stride): New function. + (is_dynamic_type_internal, resolve_dynamic_array): Add handling + of arrays with dynamic byte strides. + * dwarf2read.c (read_array_type): Add support for dynamic + DW_AT_byte_stride attributes. + +2018-01-02 Joel Brobecker <brobecker@adacore.com> + + * dwarf2read.c (read_unspecified_type): Treat + DW_TAG_enumeration_type DIEs from Ada units as stubs. + +2018-01-01 Joel Brobecker <brobecker@adacore.com> + + Update copyright year range in all GDB files. + +2018-01-01, 18 Joel Brobecker <brobecker@adacore.com> + + * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp + and gdb/testsuite/gdb.base/step-line.c. + +2018-01-01 Joel Brobecker <brobecker@adacore.com> + + * copyright.py (main): Dump the contents of + MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND, + even if BY_HAND is empty. + +2018-01-01 Joel Brobecker <brobecker@adacore.com> + + * top.c (print_gdb_version): Update Copyright year in version + message. + +2018-01-01 Joel Brobecker <brobecker@adacore.com> + + * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017. + +For older changes see ChangeLog-2017. + +Local Variables: +mode: change-log +left-margin: 8 +fill-column: 74 +version-control: never +coding: utf-8 +End: diff --git a/gdb/config/djgpp/fnchange.lst b/gdb/config/djgpp/fnchange.lst index 33aad47..12fb082 100644 --- a/gdb/config/djgpp/fnchange.lst +++ b/gdb/config/djgpp/fnchange.lst @@ -116,6 +116,7 @@ @V@/gdb/ChangeLog-2015 @V@/gdb/ChangeLog.015 @V@/gdb/ChangeLog-2016 @V@/gdb/ChangeLog.016 @V@/gdb/ChangeLog-2017 @V@/gdb/ChangeLog.017 +@V@/gdb/ChangeLog-2018 @V@/gdb/ChangeLog.018 @V@/gdb/ChangeLog-3.x @V@/gdb/ChangeLog.3-x @V@/gdb/ada-exp.tab.c @V@/gdb/ada-exp_tab.c @V@/gdb/amd64-windows-nat.c @V@/gdb/a64w-nat.c |