X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=635f02523b113666cabe041127bc9d165a98e561;hb=65d4cadafd7d9d5bb84810cde98a8c3a007a0594;hp=8af7e67ed36e90edecef275296960440e354ee35;hpb=8a60efe714e636c9f958058a8dfb12de81bdcbfa;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8af7e67ed3..635f02523b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,580 @@ +2018-06-11 Alan Hayward + + * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings. + * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define. + (AARCH64_DWARF_SVE_FFR): Likewise. + (AARCH64_DWARF_SVE_P0): Likewise. + (AARCH64_DWARF_SVE_Z0): Likewise. + +2018-06-11 Alan Hayward + + * common/common-regcache.h (raw_compare): New function. + * regcache.c (regcache::raw_compare): Likewise. + * regcache.h (regcache::raw_compare): New declaration. + +2018-06-11 Alan Hayward + + * common/common-regcache.h (reg_buffer_common): New structure. + * regcache.c (reg_buffer::invalidate): Move from detached_regcache. + (reg_buffer::raw_supply): Likewise. + (reg_buffer::raw_supply_integer): Likewise. + (reg_buffer::raw_supply_zeroed): Likewise. + (reg_buffer::raw_collect): Likewise. + (reg_buffer::raw_collect_integer): Likewise. + * regcache.h (reg_buffer::invalidate): Move from detached_regcache. + (reg_buffer::raw_supply): Likewise. + (reg_buffer::raw_supply_integer): Likewise. + (reg_buffer::raw_supply_zeroed): Likewise. + (reg_buffer::raw_collect): Likewise. + (reg_buffer::raw_collect_integer): Likewise. + +2018-06-10 Tom Tromey + + * remote.c (stop_reply_p): Remove typedef. Don't declare queue. + (class remote_state) : Now std::vector. + (remote_state::~remote_state) + (remote_target::stop_reply_queue_length): Update. + (struct queue_iter_param, remove_child_of_pending_fork) + (struct check_pending_event_prevents_wildcard_vcont_callback_data) + (check_pending_event_prevents_wildcard_vcont_callback) + (remove_stop_reply_for_inferior) + (remove_stop_reply_of_remote_state) + (remote_notif_remove_once_on_match) + (stop_reply_match_ptid_and_ws) + (remote_kill_child_of_pending_fork): Remove. + (remote_target::remove_new_fork_children) + (remote_target::check_pending_events_prevent_wildcard_vcont) + (remote_target::discard_pending_stop_replies) + (remote_target::discard_pending_stop_replies_in_queue) + (remote_target::remote_notif_remove_queued_reply) + (remote_target::queued_stop_reply) + (remote_target::push_stop_reply, remote_target::peek_stop_reply) + (remote_target::wait, remote_target::kill_new_fork_children) + (remote_target::async): Update. + +2018-06-10 Tom Tromey + + * record-full.c (record_full_arch_list_cleanups): Remove. + (record_full_message): Use try/catch. + (record_full_wait_cleanups): Remove. + (record_full_wait_1): Use try/catch. + (record_full_restore): Likewise. + +2018-06-10 Tom Tromey + + * record-full.c (record_full_breakpoint_p): Remove typedef. Don't + declare VEC. Add constructor. + : Now bool. + (record_full_breakpoints): Now a std::vector, static. + (record_full_sync_record_breakpoints) + (record_full_init_record_breakpoints) + (record_full_target::insert_breakpoint) + (record_full_target::remove_breakpoint): Update. Don't use XNEW. + +2018-06-10 Simon Marchi + + * dwarf2read.c (process_cu_includes): Remove struct keyword. + * serial.c (serial_interface_lookup): Remove struct keyword. + +2018-06-10 Tom Tromey + + * procfs.c (procfs_target::xfer_partial): Use "beneath" as a + method. + * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as + a method. + * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a + method. + * arm-linux-nat.c (arm_linux_nat_target::read_description): Use + "beneath" as a method. + * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description): + Use "beneath" as a method. + +2018-06-10 Tom Tromey + + * tracefile.c (struct trace_file_writer_deleter): New. + : Rename from trace_file_writer_xfree. + (trace_file_writer_up): New typedef. + (tsave_command, trace_save_tfile, trace_save_ctf): Update. + +2018-06-09 Simon Marchi + + * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor. + : Change type to + std::unique_ptr. + * regcache.c (reg_buffer::reg_buffer): Use new instead of + XCNEWVEC. + +2018-06-09 Simon Marchi + + * common/common-regcache.h (enum register_status): Add + underlying type "signed char". + * regcache.h (reg_buffer) : Change type to + register_status *. + * regcache.c (reg_buffer::reg_buffer): Alocate arrays of + register_status instead of signed char. + (reg_buffer::save): Use REG_UNKNOWN instead of 0. + (reg_buffer::get_register_status): Remove cast. + (readable_regcache::raw_read): Remove cast. + (readable_regcache::cooked_read): Remove cast. + +2018-06-09 Tom Tromey + + * source.c (reverse_search_command, forward_search_command): Use + scoped_fd. + +2018-06-09 Tom Tromey + + * serial.c (serial_ops_p): Remove typedef. Don't declare VEC. + (serial_ops_list): Now static, std::vector. + (serial_interface_lookup, serial_add_interface): Update. + +2018-06-09 Tom Tromey + + * dwarf2read.c (process_cu_includes): Update. + (process_full_comp_unit): Update. + * dwarf2read.h (struct dwarf2_per_objfile) : Now a + std::vector. + +2018-06-08 Paul Koning + + PR gdb/23252 + + * python/python.c (do_start_initialization): + Avoid call to internal Python API. + (init__gdb_module): New function. + +2018-06-08 Gary Benson + + * linux-thread-db.c (valprint.h): New include. + (struct check_thread_db_info): New structure. + (check_thread_db_on_load, tdb_testinfo): New static globals. + (check_thread_db, check_thread_db_callback): New functions. + (try_thread_db_load_1): Run integrity checks if requested. + (maintenance_check_libthread_db): New function. + (_initialize_thread_db): Register "maint check libthread-db" + and "maint set/show check-libthread-db". + * NEWS: Mention the above new commands. + +2018-06-08 Tom Tromey + + * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is + now a method. + +2018-06-08 Tom Tromey + + * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr. + +2018-06-08 Tom Tromey + + * common/btrace-common.h (struct btrace_data): Add constructor, + destructor, move assignment operator. + : New methods. + : Initialize. + (btrace_data_init, btrace_data_fini, btrace_data_clear) + (btrace_data_empty): Don't declare. + * common/btrace-common.c (btrace_data_init): Remove. + (btrace_data::fini): Rename from btrace_data_fini. + (btrace_data::empty): Rename from btrace_data_empty. + (btrace_data::clear): Rename from btrace_data_clear. Return + bool. + * btrace.h (make_cleanup_btrace_data): Don't declare. + * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear) + (parse_xml_btrace): Update. + (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove. + (maint_btrace_clear_packet_history_cmd): Update. + +2018-06-07 Pedro Alves + + * target.h (target_ops) : Now a method. All references + updated. + (class target_stack): New. + * target.c (g_target_stack): New. + (g_current_top_target): Delete. + (current_top_target): Get the top target out of g_target_stack. + (target_stack::push, target_stack::unpush): New. + (push_target, unpush_target): Reimplement. + (target_is_pushed): Reimplement in terms of g_target_stack. + (target_ops::beneath, target_stack::find_beneath): New. + +2018-06-07 Pedro Alves + + * target.h (find_target_beneath): Delete declaration. + * target.c (find_target_beneath): Delete definition. + * aix-thread.c: All callers of find_target_beneath adjusted to + call target_ops::beneath instead. + * bsd-uthread.c: Likewise. + * linux-thread-db.c: Likewise. + * ravenscar-thread.c: Likewise. + * sol-thread.c: Likewise. + * spu-multiarch.c: Likewise. + +2018-06-07 Pedro Alves + + * target.h (target_ops) : Now a method. All references + updated. + (target_ops) : New. + * target.c (target_ops::beneath): New. + * corelow.c: Adjust all references to target_ops::beneath. + * linux-thread-db.c: Likewise. + * make-target-delegates: Likewise. + * record-btrace.c: Likewise. + * record-full.c: Likewise. + * remote.c: Likewise. + * target.c: Likewise. + * target-delegates.c: Regenerate. + +2018-06-07 Pedro Alves + + * target.h (target_stack): Delete. + (current_top_target): Declare function. + * target.c (target_stack): Delete. + (g_current_top_target): New. + (current_top_target): New function. + * auxv.c: Use current_top_target instead of target_stack + throughout. + * avr-tdep.c: Likewise. + * breakpoint.c: Likewise. + * corefile.c: Likewise. + * elfread.c: Likewise. + * eval.c: Likewise. + * exceptions.c: Likewise. + * frame.c: Likewise. + * gdbarch-selftests.c: Likewise. + * gnu-v3-abi.c: Likewise. + * ia64-tdep.c: Likewise. + * ia64-vms-tdep.c: Likewise. + * infcall.c: Likewise. + * infcmd.c: Likewise. + * infrun.c: Likewise. + * linespec.c: Likewise. + * linux-tdep.c: Likewise. + * minsyms.c: Likewise. + * ppc-linux-nat.c: Likewise. + * ppc-linux-tdep.c: Likewise. + * procfs.c: Likewise. + * regcache.c: Likewise. + * remote.c: Likewise. + * rs6000-tdep.c: Likewise. + * s390-linux-nat.c: Likewise. + * s390-tdep.c: Likewise. + * solib-aix.c: Likewise. + * solib-darwin.c: Likewise. + * solib-dsbt.c: Likewise. + * solib-spu.c: Likewise. + * solib-svr4.c: Likewise. + * solib-target.c: Likewise. + * sparc-tdep.c: Likewise. + * sparc64-tdep.c: Likewise. + * spu-tdep.c: Likewise. + * symfile.c: Likewise. + * symtab.c: Likewise. + * target-descriptions.c: Likewise. + * target-memory.c: Likewise. + * target.c: Likewise. + * target.h: Likewise. + * tracefile-tfile.c: Likewise. + * tracepoint.c: Likewise. + * valops.c: Likewise. + * valprint.c: Likewise. + * value.c: Likewise. + * windows-tdep.c: Likewise. + * mi/mi-main.c: Likewise. + +2018-06-07 Tom Tromey + + * valprint.h (build_address_symbolic): Declare. + * printcmd.c (print_address_symbolic): Update. + (build_address_symbolic): Change "name" and "filename" to + std::string. + * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): + Update. + * defs.h (build_address_symbolic): Remove declaration. + +2018-06-07 Alan Hayward + + * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define. + (aarch64_vnv_type): Add function. + (aarch64_pseudo_register_name): Add V regs for SVE. + (aarch64_pseudo_register_type): Likewise. + (aarch64_pseudo_register_reggroup_p): Likewise. + (aarch64_pseudo_read_value_2): Use V0 offset for SVE + (aarch64_pseudo_read_value): Add V regs for SVE. + (aarch64_pseudo_write_2): Use V0 offset for SVE + (aarch64_pseudo_write): Add V regs for SVE. + * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type. + +2018-06-06 Sergio Durigan Junior + + * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef. + (sve_vl_from_vq): Likewise. + +2018-06-05 Tom Tromey + + * cli/cli-cmds.c (show_version): Update. + * top.c (print_gdb_version): Add "interactive" parameter. + Update. + * main.c (captured_main_1): Update. + * top.h (print_gdb_version): Add "interactive" parameter and a + comment. + +2018-06-05 David Malcolm + + * common/enum-flags.h: Add trailing semicolon to example in + comment. + +2018-06-05 Tom Tromey + + PR cli/12326: + * NEWS: Add entry about pager. + * utils.c (pagination_disabled_for_command): New global. + (prompt_for_continue): Allow "c" response to prompt. + (reinitialize_more_filter): Clear + pagination_disabled_for_command. + (fputs_maybe_filtered): Check pagination_disabled_for_command. + +2018-06-04 Tom Tromey + + * ada-lang.h (ada_lookup_symbol_list): Update. + * ada-lang.c (resolve_subexp): Update. + (symbols_are_identical_enums): Change type of syms. Remove nsyms + parameter. + (remove_extra_symbols, remove_irrelevant_renamings): Likewise. + (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change + results parameter to std::vector. + (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value): + Update. + * ada-exp.y (block_lookup): Update. + (select_possible_type_sym): Change type of syms. Remove nsyms + parameter. + (write_var_or_type, write_name_assoc): Update. + +2018-06-04 Joel Brobecker + + * windows-nat.c (windows_nat_target::xfer_partial): Return + TARGET_XFER_E_IO if we need to delegate to the target beneath + but BENEATH is NULL. + +2018-06-04 Simon Marchi + + * Makefile.in (config.status): Add configure.nat as a + dependency. + +2018-06-04 Tom Tromey + + * cp-name-parser.y (cpname_state): Add method declarations. + (HANDLE_QUAL): Update. + (cpname_state::d_grab, cpname_state::fill_comp) + (cpname_state::make_operator, cpname_state::make_dtor) + (cpname_state::make_builtin_type, cpname_state::make_name) + (cpname_state::d_qualify, cpname_state::d_int_type) + (cpname_state::d_unary, cpname_state::d_binary): Now methods. + (%union): Move earlier. + +2018-06-04 Alan Hayward + + * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT. + +2018-06-04 Alan Hayward + + * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func. + (aarch64_pseudo_write_1): Likewise. + (aarch64_pseudo_read_value): Use helper. + (aarch64_pseudo_write): Likewise. + +2018-06-04 Pedro Alves + + * darwin-nat.c (darwin_ops): Delete. + (darwin_attach_pid): Use get_native_target. + +2018-06-04 Alan Hayward + + * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ. + * aarch64-tdep.h (struct gdbarch_tdep): Likewise. + +2018-06-04 Alan Hayward + + * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE. + * aarch64-tdep.c (aarch64_get_tdesc_vq): New function. + (aarch64_gdbarch_init): Check for SVE. + * aarch64-tdep.h (gdbarch_tdep::has_sve): New function. + +2018-06-04 Alan Hayward + + * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ. + * aarch64-tdep.h (aarch64_read_description): Likewise. + * arch/aarch64.c (aarch64_create_target_description): Likewise. + * arch/aarch64.h (aarch64_create_target_description): Likewise. + * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise. + * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise. + * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise. + +2018-06-02 Simon Marchi + + * value.c (value_fetch_lazy_bitfield): New. + (value_fetch_lazy_memory): New. + (value_fetch_lazy_register): New. + (value_fetch_lazy): Factor out to smaller functions. + +2018-06-01 Tom Tromey + + * cp-name-parser.y (backslashable, represented): Now const. + +2018-06-01 Tom Tromey + + * cp-name-parser.y: Include parser-defs.h. + (parser_fprintf): Remove declaration. + +2018-06-01 Tom Tromey + + * cp-name-parser.y: Use %pure-parser, %lex-param, and + %parse-param. + (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info) + (global_result): Remove globals. + (struct cpname_state): New. + (yyparse): Don't declare. + (yylex, yyerror): Move declarations after %union. + (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type) + (make_name): Add state parameter. + Update all callers. + (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state + parameter. + (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3): + Update. + (yylex): Add lvalp, state parameters. + (yyerror): Add state parameter. + (cp_demangled_name_to_comp): Update. + +2018-06-01 Tom Tromey + + * cp-name-parser.y (parser_fprintf): Declare. + (GDB_YY_REMAP_PREFIX): Define. + Include yy-remap.h. Don't redefine yy* identifiers. + +2018-06-01 Tom Tromey + + * python/py-type.c (typy_legacy_template_argument): Update. + * cp-support.h (cp_demangled_name_to_comp): Update. + * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg + parameter to be a "std::string *". + (main): Update. + +2018-06-01 H.J. Lu + + * ada-lex.l: Include "diagnostics.h" instead of + "common/diagnostics.h". + * unittests/environ-selftests.c: Likewise. + * common/diagnostics.h: Moved to ../include. + +2018-06-01 Joel Brobecker + + * breakpoint.c (breakpoint_re_set): Temporarily force language_mode + to language_mode_manual while calling breakpoint_re_set_one. + +2018-06-01 Tom Tromey + + * valops.c (value_cast_structs, destructor_name_p): Update. + * symtab.c (gdb_mangle_name): Update. + * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses): + Update. + * p-valprint.c (pascal_object_is_vtbl_ptr_type) + (pascal_object_print_value_fields, pascal_object_print_value): + Update. + * p-typeprint.c (pascal_type_print_derivation_info): Update. + * linespec.c (find_methods): Update. + * gdbtypes.h (type_name_no_tag): Remove. + (type_name_or_error): Rename from type_name_no_tag_or_error. + * gdbtypes.c (type_name_no_tag): Remove. + (type_name_or_error): Rename from type_name_no_tag_or_error. + (lookup_struct_elt_type, check_typedef): Update. + * expprint.c (print_subexp_standard): Update. + * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update. + * d-namespace.c (d_lookup_nested_symbol): Update. + * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields) + (cp_print_class_member): Update. + * cp-namespace.c (cp_lookup_nested_symbol): Update. + * completer.c (add_struct_fields): Update. + * c-typeprint.c (cp_type_print_derivation_info) + (c_type_print_varspec_prefix, c_type_print_base_struct_union): + Update. + * ada-lang.c (parse_old_style_renaming, xget_renaming_scope) + (ada_prefer_type, ada_is_exception_sym): Update. + +2018-06-01 Tom Tromey + + * valops.c (enum_constant_from_type, value_namespace_elt) + (value_maybe_namespace_elt): Update. + * valarith.c (find_size_for_pointer_math): Update. + * target-descriptions.c (make_gdb_type): Update. + * symmisc.c (print_symbol): Update. + * stabsread.c (define_symbol, read_type) + (complain_about_struct_wipeout, add_undefined_type) + (cleanup_undefined_types_1): Update. + * rust-lang.c (rust_tuple_type_p, rust_slice_type_p) + (rust_range_type_p, val_print_struct, rust_print_struct_def) + (rust_internal_print_type, rust_composite_type) + (rust_evaluate_funcall, rust_evaluate_subexp) + (rust_inclusive_range_type_p): Update. + * python/py-type.c (typy_get_tag): Update. + * p-typeprint.c (pascal_type_print_base): Update. + * mdebugread.c (parse_symbol, parse_type): Update. + * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum): + Update. + * guile/scm-type.c (gdbscm_type_tag): Update. + * go-lang.c (sixg_string_p): Update. + * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type): + Update. + * gdbtypes.h (struct main_type) : Remove. + (TYPE_TAG_NAME): Remove. + * gdbtypes.c (type_name_no_tag): Simplify. + (check_typedef, check_types_equal, recursive_dump_type) + (copy_type_recursive, arch_composite_type): Update. + * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix + in summary mode when needed. + * eval.c (evaluate_funcall): Update. + * dwarf2read.c (fixup_go_packaging, read_structure_type) + (process_structure_scope, read_enumeration_type) + (read_namespace_type, read_module_type, determine_prefix): Update. + * cp-support.c (inspect_type): Update. + * coffread.c (process_coff_symbol, decode_base_type): Update. + * c-varobj.c (c_is_path_expr_parent): Update. + * c-typeprint.c (c_type_print_base_struct_union): Update. + (c_type_print_base_1): Update. Print struct/class/union/enum in + summary when using C language. + * ax-gdb.c (gen_struct_ref, gen_namespace_elt) + (gen_maybe_namespace_elt): Update. + * ada-lang.c (ada_type_name): Simplify. + (empty_record, ada_template_to_fixed_record_type_1) + (template_to_static_fixed_type) + (to_record_with_fixed_variant_part, ada_check_typedef): Update. + +2018-06-01 Tom Tromey + + * dwarf2read.c (dwarf2_compute_name): Pass CU's language to + c_print_type. + * c-typeprint.c (c_print_type_1): Add "language" parameter. + (c_print_type): Update. + (c_print_type): New overload. + (c_type_print_varspec_prefix, c_type_print_args) + (c_type_print_varspec_suffix, c_print_type_no_offsets) + (c_type_print_base_struct_union, c_type_print_base_1) + (cp_type_print_method_args): Add "language" parameter. + (c_type_print_base): Update. + * c-lang.h (c_print_type): Add new overload. + +2018-06-01 Tom Tromey + + * typeprint.h (c_type_print_varspec_suffix): Don't declare. + * c-typeprint.c (c_type_print_varspec_suffix): Now static. + +2018-06-01 Alan Hayward + + * aarch64-tdep.c (aarch64_sve_register_names): New const + var. + * arch/aarch64.h (enum aarch64_regnum): Add SVE entries. + (AARCH64_SVE_Z_REGS_NUM): New define. + (AARCH64_SVE_P_REGS_NUM): Likewise. + (AARCH64_SVE_NUM_REGS): Likewise. + 2018-05-31 Uros Bizjak * nat/linux-ptrace.h [__alpha__]