Make gdbserver work with filename-only binaries
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 27ac2ea4255ee780daa97f81d03c56b90b6c73eb..59265157b46a1224ba51d40d83cf5caa9e306472 100644 (file)
@@ -1,3 +1,211 @@
+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.
This page took 0.027475 seconds and 4 git commands to generate.