Use gdbpy_convert_exception in a few more spots
[binutils-gdb.git] / gdb / ChangeLog
index 687c5ae961e3c883fb8e7269071e9a627fec8c73..15c59b2de96369fbce7e57a39d8a8ae653d10e13 100644 (file)
@@ -1,3 +1,288 @@
+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)