]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/ChangeLog
Rename make_symbol_completion_list_fn -> symbol_completer
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
index ae79dc681dfee57ca47c4c17fc760bb2a1bcb530..3e41709f8ae5c29aa6396583fb60183f1e28231a 100644 (file)
@@ -1,3 +1,340 @@
+2017-07-17  Pedro Alves  <palves@redhat.com>
+
+       * completer.c (symbol_completer): New function, based on
+       make_symbol_completion_list_fn.
+       * completer.h (symbol_completer): New declaration.
+       * guile/scm-cmd.c (cmdscm_completers): Adjust.
+       * python/py-cmd.c (completers): Adjust.
+       * symtab.c (make_symbol_completion_list_fn): Delete.
+       * symtab.h (make_symbol_completion_list_fn): Delete.
+       * cli/cli-decode.c (add_cmd): Adjust.
+
+2017-07-17  Pedro Alves  <palves@redhat.com>
+
+       * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
+       * dwarf2read.c: Include "filename-seen-cache.h".
+       * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
+       (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
+       * filename-seen-cache.c: New file.
+       * filename-seen-cache.h: New file.
+       * symtab.c: Include "filename-seen-cache.h".
+       (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
+       (create_filename_seen_cache, clear_filename_seen_cache)
+       (delete_filename_seen_cache, filename_seen): Delete, parts moved
+       to filename-seen-cache.h/filename-seen-cache.c.
+       (output_source_filename, sources_info)
+       (maybe_add_partial_symtab_filename)
+       (make_source_files_completion_list): Adjust to use
+       filename_seen_cache.
+
+2017-07-17  Pedro Alves  <palves@redhat.com>
+
+       * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
+       fields.
+       (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
+       dwarf2_debug_sections*)): New.
+       (dwarf2_per_objfile::dwarf2_per_objfile(const
+       dwarf2_per_objfile&)): Declare as deleted.
+       (dwarf2_per_objfile::operator=): Declare as deleted.
+       (dwarf2_per_objfile::dwarf2_per_objfile)
+       (dwarf2_per_objfile::~dwarf2_per_objfile)
+       (dwarf2_per_objfile::free_cached_comp_units): New.
+       (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
+       ctor.  Call dwarf2_per_objfile's ctor manually.
+       (dwarf2_locate_sections): Deleted/refactored as ...
+       (dwarf2_per_objfile::locate_sections): ... this new method.
+       (free_cached_comp_units): Defer to
+       dwarf2_per_objfile::free_cached_comp_units.
+       (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
+
+2017-07-14  Tom Tromey  <tom@tromey.com>
+
+       PR rust/21764:
+       * rust-exp.y (convert_ast_to_expression): Add "want_type"
+       parameter.
+       <UNOP_SIZEOF>: Split into separate case.
+       <UNOP_VAR_VALUE>: Handle want_type.  Add error case.
+
+2017-07-14  Tom Tromey  <tom@tromey.com>
+
+       PR rust/21763:
+       * symtab.c (symbol_matches_domain): Add language_rust to special
+       case.
+       * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
+       treat LOC_TYPEDEF symbols as variables.
+
+2017-07-14  Pedro Alves  <palves@redhat.com>
+
+       * symtab.c (make_file_symbol_completion_list_1): Iterate over
+       symtabs matching all symtabs with SRCFILE as file name instead of
+       only considering the first hit, with lookup_symtab.
+
+2017-07-14  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
+       operator_name parameters.
+       (gen_expr): Update function call.
+
+2017-07-14  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
+       parameter.
+       * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
+       Likewise.
+       * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
+       parameter, use agent_expr::gdbarch instead, update function
+       calls.
+       (locexpr_tracepoint_var_ref): Likewise.
+       (loclist_tracepoint_var_ref): Likewise.
+       * ax-gdb.c (gen_trace_static_fields): Likewise.
+       (gen_traced_pop): Likewise.
+       (gen_frame_args_address): Likewise.
+       (gen_frame_locals_address): Likewise.
+       (gen_var_ref): Likewise.
+       (gen_struct_ref_recursive): Likewise.
+       (gen_static_field): Likewise.
+       (gen_maybe_namespace_elt): Likewise.
+       (gen_expr): Likewise.
+       (gen_trace_for_var): Likewise.
+       (gen_trace_for_expr): Likewise.
+       (gen_trace_for_return_address): Likewise.
+
+2017-07-14  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
+       parameter.
+       (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
+
+2017-07-14  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
+       from ax, update calls.
+       (gen_usual_arithmetic): Likewise.
+       (gen_integral_promotions): Likewise.
+       (gen_bitfield_ref): Likewise.
+       (gen_primitive_field): Likewise.
+       (gen_struct_ref_recursive): Likewise.
+       (gen_struct_ref): Likewise.
+       (gen_maybe_namespace_elt): Likewise.
+       (gen_struct_elt_for_reference): Likewise.
+       (gen_namespace_elt): Likewise.
+       (gen_aggregate_elt_ref): Likewise.
+       (gen_expr): Get gdbarch from ax, update calls.
+       (gen_expr_binop_rest): Likewise.
+
+2017-07-13  Pedro Alves  <palves@redhat.com>
+
+       * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
+       as default tdesc.
+       * amd64-dicos-tdep.c (amd64_dicos_init_abi):
+       * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
+       * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
+       tdesc_amd64_linux as default tdesc.  Get final tdesc from the
+       tdep.
+       (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
+       Get final tdesc from the tdep.
+       * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
+       default tdesc.
+       * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
+       * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
+       * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
+       Use it as default tdesc.
+       (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
+       down to amd_init_abi.  No longer handle fallback tdesc here.
+       * amd64-tdep.h (tdesc_x32): Declare.
+       (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
+       parameter.
+       * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
+       as default tdesc.
+
+2017-07-13  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * s390-linux-tdep.c (s390_process_record): Add support for
+       instructions new in arch12.
+
+2017-07-11  John Baldwin  <jhb@FreeBSD.org>
+
+       * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
+       PT_GETFSBASE and PT_GETGSBASE.
+       (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
+       PT_SETGSBASE.
+
+2017-07-11  John Baldwin  <jhb@FreeBSD.org>
+
+       * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
+       (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
+       (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
+       those rules.
+       * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
+       * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
+       * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
+       * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
+       * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
+       * features/i386/amd64.xml: Add 64bit-segments.xml.
+       * features/i386/amd64-avx-avx512.c: Regenerated.
+       * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
+       * features/i386/amd64-avx-mpx.c: Regenerated.
+       * features/i386/amd64-avx.c: Regenerated.
+       * features/i386/amd64-mpx.c: Regenerated.
+       * features/i386/amd64.c: Regenerated.
+       * regformats/i386/amd64-avx-avx512.dat: Regenerated.
+       * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
+       * regformats/i386/amd64-avx-mpx.dat: Regenerated.
+       * regformats/i386/amd64-avx.dat: Regenerated.
+       * regformats/i386/amd64-mpx.dat: Regenerated.
+       * regformats/i386/amd64.dat: Regenerated.
+
+2017-07-10  Yao Qi  <yao.qi@linaro.org>
+
+       * features/i386/amd64-avx-avx512-linux.c: Re-generated.
+       * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
+
+2017-07-10  Anton Kolesov  <Anton.Kolesov@synopsys.com>
+
+       * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
+       unsetenv.
+       * gnulib/aclocal.m4: Regenerate.
+       * gnulib/config.in: Regenerate.
+       * gnulib/configure: Regenerate.
+       * gnulib/import/Makefile.am: Regenerate.
+       * gnulib/import/Makefile.in: Regenerate.
+       * gnulib/import/m4/gnulib-cache.m4: Regenerate.
+       * gnulib/import/m4/gnulib-comp.m4: Regenerate.
+       * gnulib/import/m4/environ.m4: New file.
+       * gnulib/import/m4/setenv.m4: New file.
+       * gnulib/import/setenv.c: New file.
+       * gnulib/import/unsetenv.c: New file.
+
+2017-07-09  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
+       address when op is DW_OP_addr.
+
+2017-07-09  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
+       check and apply to outer type.
+
+2017-07-07  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
+       (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
+       (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
+       (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
+
+2017-07-07  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
+
+2017-07-07  John Baldwin  <jhb@FreeBSD.org>
+
+       * corelow.c (get_core_siginfo): Remove.
+       (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
+       instead of get_core_siginfo.
+       * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
+       * gdbarch.h: Re-generate.
+       * gdbarch.c: Re-generate.
+       * linux-tdep.c (linux_core_xfer_siginfo): New.
+       (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
+
+2017-07-07  John Baldwin  <jhb@FreeBSD.org>
+
+       * corelow.c (thread_section_name): Move to ...
+       * gdbcore.h (thread_section_name): ... here.
+
+2017-07-07  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
+       (struct siginfo32): New.
+       [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
+       (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
+       via ptrace(PT_LWPINFO).
+
+2017-07-07  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
+       (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
+       (fbsd_get_siginfo_type): New.
+       (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
+       (_initialize_fbsd_tdep): New.
+
+2017-07-06  David Blaikie  <dblaikie@gmail.com>
+
+       * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
+       a singular dwo_unit*) to support multiple CUs in the same way that
+       multiple TUs are supported.
+       (create_cus_hash_table): Replace create_dwo_cu with a function for
+       parsing multiple CUs from a DWO file.
+       (open_and_init_dwo_file): Use create_cus_hash_table rather than
+       create_dwo_cu.
+       (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
+       htab_find, rather than comparing the signature to a singleton CU in
+       the dwo_file.
+
+2017-07-06  Pedro Alves  <palves@redhat.com>
+
+       * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
+
+2017-07-04  Pedro Alves  <palves@redhat.com>
+
+       * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
+       * gdbtypes.h (TYPE_STATIC): Delete.
+       (struct fn_field) <is_public, is_abstract, is_static, is_final,
+       is_synchronized, is_native>: Delete.
+       <dummy>: Bump.
+       (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
+       (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
+       (TYPE_FN_FIELD_ABSTRACT): Delete.
+
+2017-07-03  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * buffer.h (buffer_finish): Fix spelling mistakes.
+
+2017-07-01  Eli Zaretskii  <eliz@gnu.org>
+
+       * .dir-locals.el: Automatically switch to C-style comments in
+       versions of Emacs that support the feature.
+
+2017-06-30  Sergio Durigan Junior  <sergiodj@redhat.com>
+           Pedro Alves  <palves@redhat.com>
+
+       PR cli/21688
+       * cli/cli-script.c (command_name_equals_not_inline): Remove function.
+       (process_next_line): New variable 'inline_cmd'.
+       Adjust 'if' clauses for "python", "compile" and "guile" to use
+       'command_name_equals' and check for '!inline_cmd'.
+
+2017-06-30  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       PR cli/21688
+       * cli/cli-script.c (command_name_equals_not_inline): New function.
+       (process_next_line): Adjust 'if' clauses for "python", "compile"
+       and "guile" to use command_name_equals_not_inline.
+
+2017-06-29  Pedro Alves  <palves@redhat.com>
+
+       * completer.c (expression_completer): Call
+       linespec_location_completer instead of location_completer.
+
+2017-06-29  Pedro Alves  <palves@redhat.com>
+
+       * completer.c (expression_completer): Remove code that recomputes
+       'text' from 'word'.
+
+2017-06-29  Yao Qi  <yao.qi@linaro.org>
+
+       * regformats/regdat.sh: Generate code with
+       "ifndef IN_PROCESS_AGENT".
+
+2017-06-28  Pedro Alves  <palves@redhat.com>
+
+       * command.h: Include "common/scoped_restore.h".
+
+2017-06-28  Yao Qi  <yao.qi@linaro.org>
+
+       * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
+       instead of obstack_grow.
+
 2017-06-28  Doug Gilmore  <Doug.Gilmore@imgtec.com>
 
        PR gdb/21337