Use gdb::unique_xmalloc_ptr<char> in command_line_input to fix a leak
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 12523ca434992d84f6798c3f36e1bf39791d5c54..2f21e3f8db491f423e37bdc31c3d43ec2afa6f2c 100644 (file)
@@ -1,3 +1,866 @@
+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.
This page took 0.036127 seconds and 4 git commands to generate.