python: Make two functions return gdbpy_ref<>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index d8fe62068e31f7021cb99dae3732084995e7ea5a..96b28b070269ac6a29cd576269f0eecc0dd4511b 100644 (file)
@@ -1,3 +1,389 @@
+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
This page took 0.030487 seconds and 4 git commands to generate.