regcache_cooked_read -> regcache->cooked_read
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index d81b4856ffe2781816da94b5a82cfe8ed0e7f842..499fc5399fc99047dfe693ae0567bf760020cad5 100644 (file)
@@ -1,3 +1,383 @@
+2018-01-22  Yao Qi  <yao.qi@linaro.org>
+
+       * ia64-tdep.c (ia64_pseudo_register_read): Call
+       regcache->cooked_read instead of regcache_cooked_read_unsigned.
+       * m32c-tdep.c (m32c_cat_read): Likewise.
+       (m32c_r3r2r1r0_read): Likewise.
+       * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
+       * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
+
+2018-01-22  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
+       method raw_read instead of regcache_raw_read.
+       * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
+       * arm-tdep.c (arm_neon_quad_read): Likewise.
+       * avr-tdep.c (avr_pseudo_register_read): Likewise.
+       * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
+       * frv-tdep.c (frv_pseudo_register_read): Likewise.
+       * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
+       * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
+       (i386_pseudo_register_read_into_value): Likewise.
+       * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
+       * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
+       * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
+       * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
+       * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
+       * sparc-tdep.c (sparc32_pseudo_register_read):  Likewise.
+       * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
+       * spu-tdep.c (spu_pseudo_register_read_spu):  Likewise.
+       * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
+
+2018-01-22  Yao Qi  <yao.qi@linaro.org>
+
+       * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
+       * configure.tgt: Remove target mt.
+       * mt-tdep.c: Remove.
+       * regcache.c (cooked_read_test): Remove the check for mt.
+
+2018-01-22  Yao Qi  <yao.qi@linaro.org>
+
+       * jit.c (jit_frame_prev_register): Call regcache::cooked_read
+       instead of gdbarch_pseudo_register_read_value.
+
+2018-01-22  Joel Brobecker  <brobecker@adacore.com>
+
+       * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
+       language is Ada.
+
+2018-01-22  Joel Brobecker  <brobecker@adacore.com>
+
+       * linespec.c (create_sals_line_offset): Remove code that preserved
+       the symtab_and_line's line number.
+
+2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * varobj.c (varobj_create): Don't set valid_block when creating a
+       floating varobj.
+
+2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * varobj.c (varobj_create): Remove out of date comment.
+
+2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       PR mi/20395
+       * ada-exp.y (write_var_from_sym): Pass extra parameter when
+       updating innermost block.
+       * parse.c (innermost_block_tracker::update): Take extra type
+       parameter, and check types match before updating innermost block.
+       (write_dollar_variable): Update innermost block for registers.
+       * parser-defs.h (enum innermost_block_tracker_type): New enum.
+       (innermost_block_tracker::innermost_block_tracker): Initialise
+       m_types member.
+       (innermost_block_tracker::reset): Take type parameter.
+       (innermost_block_tracker::update): Take type parameter, and pass
+       type through as needed.
+       (innermost_block_tracker::m_types): New member.
+       * varobj.c (varobj_create): Pass type when reseting innermost
+       block.
+
+2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
+       * ada-lang.c (resolve_subexp): Likewise.
+       * breakpoint.c (set_breakpoint_condition) Likewise.
+       (watch_command_1) Likewise.
+       * c-exp.y (variable): Likewise.
+       * d-exp.y (PrimaryExpression): Likewise.
+       * f-exp.y (variable): Likewise.
+       * go-exp.y (variable): Likewise.
+       * m2-exp.y (variable): Likewise.
+       * objfiles.c (objfile::~objfile): Likewise.
+       * p-exp.y (variable): Likewise.
+       * parse.c (innermost_block): Change type.
+       * parser-defs.h (class innermost_block_tracker): New.
+       (innermost_block): Change to innermost_block_tracker.
+       * printcmd.c (display_command): Switch to innermost_block API.
+       (do_one_display): Likewise.
+       * rust-exp.y (do_one_display): Likewise.
+       * symfile.c (clear_symtab_users): Likewise.
+       * varobj.c (varobj_create): Switch to innermost_block API, replace
+       use of innermost_block with block stored on varobj object.
+
+2018-01-21  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * expression.h (innermost_block): Remove declaration.
+       * varobj.c: Add 'parser-defs.h' include.
+
+2018-01-19  Tom Tromey  <tom@tromey.com>
+
+       * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
+       symbols in the static and global blocks.
+
+2018-01-19  James Clarke  <jrtc27@jrtc27.com>
+
+       * nat/linux-ptrace.c: Remove unnecessary reinclusion of
+       gdb_ptrace.h, and move including gdb_wait.h ...
+       * nat/linux-ptrace.h: ... to here.
+
+2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * inf-ptrace.c (inf_ptrace_detach): Adjust call to
+       inf_ptrace_detach_success.
+       (inf_ptrace_detach_success): Add inferior parameter, use it
+       instead of inferior_ptid, pass it to detach_inferior.
+       * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
+       parameter.
+       * inferior.c (detach_inferior): Add overload that takes an
+       inferior object.
+       * inferior.h (detach_inferior): Likewise.
+       * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
+       use inferior_ptid, adjust call to inf_ptrace_detach_success.
+       * linux-thread-db.c (thread_db_detach): Use inf parameter.
+
+2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * target.h (struct target_ops) <to_detach>: Add inferior
+       parameter.
+       (target_detach): Likewise.
+       * target.c (dispose_inferior): Pass inferior down.
+       (target_detach): Pass inferior down.  Assert that it is equal to
+       the current inferior.
+       * aix-thread.c (aix_thread_detach): Pass inferior down.
+       * corefile.c (core_file_command): Pass current_inferior() down.
+       * corelow.c (core_detach): Add inferior parameter.
+       * darwin-nat.c (darwin_detach): Likewise.
+       * gnu-nat.c (gnu_detach): Likewise.
+       * inf-ptrace.c (inf_ptrace_detach): Likewise.
+       * infcmd.c (detach_command): Pass current_inferior() down to
+       target_detach.
+       * infrun.c (follow_fork_inferior): Pass parent_inf to
+       target_detach.
+       (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
+       target_detach.
+       * linux-nat.c (linux_nat_detach): Add inferior parameter.
+       * linux-thread-db.c (thread_db_detach): Likewise.
+       * nto-procfs.c (procfs_detach): Likewise.
+       * procfs.c (procfs_detach): Likewise.
+       * record.c (record_detach): Likewise.
+       * record.h (struct inferior): Forward-declare.
+       (record_detach): Add inferior parameter.
+       * remote-sim.c (gdbsim_detach): Likewise.
+       * remote.c (remote_detach_1): Likewise.
+       (remote_detach): Likewise.
+       (extended_remote_detach): Likewise.
+       * sol-thread.c (sol_thread_detach): Likewise.
+       * target-debug.h (target_debug_print_inferior_p): New macro.
+       * target-delegates.c: Re-generate.
+       * top.c (kill_or_detach): Pass inferior down to target_detach.
+       * windows-nat.c (windows_detach): Add inferior parameter.
+
+2018-01-19  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * target.h (struct target_ops) <to_detach>: Remove args
+       parameter.
+       (target_detach): Likewise.
+       * target.c (dispose_inferior): Adjust.
+       (target_detach): Remove args parameter, adjust.
+       * aix-thread.c (aix_thread_detach): Adjust.
+       * corefile.c (core_file_command): Adjust.
+       * corelow.c (core_detach): Adjust.
+       * darwin-nat.c (darwin_detach): Adjust.
+       * gnu-nat.c (gnu_detach): Adjust.
+       * inf-ptrace.c (inf_ptrace_detach): Adjust.
+       * infcmd.c (detach_command): Adjust
+       * infrun.c (follow_fork_inferior): Adjust.
+       (handle_vfork_child_exec_or_exit): Adjust.
+       * linux-fork.c (linux_fork_detach): Remove args parameter.
+       * linux-fork.h (linux_fork_detach): Likewise.
+       * linux-nat.c (linux_nat_detach): Likewise, and adjust.
+       * linux-thread-db.c (thread_db_detach): Likewise.
+       * nto-procfs.c (procfs_detach): Likewise.
+       * procfs.c (procfs_detach): Likewise.
+       (do_detach): Remove signo parameter.
+       * record.c (record_detach): Remove args parameter.
+       * record.h (record_detach): Likewise.
+       * remote-sim.c (gdbsim_detach): Likewise.
+       * remote.c (remote_detach_1): Likewise.
+       (remote_detach): Likewise.
+       (extended_remote_detach): Likewise.
+       * sol-thread.c (sol_thread_detach): Likewise.
+       * target-delegates.c: Re-generate.
+       * top.c (struct qt_args) <args>: Remove field.
+       (kill_or_detach): Don't pass args.
+       (quit_force): Don't set args.
+       * windows-nat.c (windows_detach): Remove args parameter.
+
+2018-01-19  Yao Qi  <yao.qi@linaro.org>
+
+       * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
+       (arm_linux_init_abi): Install it.
+
+2018-01-19  Yao Qi  <yao.qi@linaro.org>
+
+       * osabi.c (gdb_osabi_names): Extend the regexp for
+       arm-linux-gnueabihf.
+
+2018-01-18  Yao Qi  <yao.qi@linaro.org>
+
+       * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
+       m_abbrevs.
+       (abbrev_table::add_abbrev): Update.
+       (abbrev_table::lookup_abbrev): Update.
+
+2018-01-18  Yao Qi  <yao.qi@linaro.org>
+
+       * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
+
+2018-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * compile/compile.c (compile_to_object): Convert "triplet_rx"
+       to "std::string".
+
+2018-01-17  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (symbolp): Remove typedef.  Don't instantiate VEC.
+
+2018-01-17  Tom Tromey  <tom@tromey.com>
+
+       * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
+       * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
+       (create_array_type_with_stride): Update.
+       * dwarf2read.c (set_die_type): Update.
+
+2018-01-17  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (delayed_method_info): Remove typedef.
+       (dwarf2_cu::method_info): Now a std::vector.
+       (add_to_method_list): Update.
+       (free_delayed_list): Remove.
+       (compute_delayed_physnames): Update.
+       (process_full_comp_unit, process_full_type_unit): Clear the method
+       list.  Remove cleanups.
+       (psymtab_include_file_name): Add name_holder parameter.  Use
+       unique_xmalloc_ptr.
+       (dwarf_decode_lines): Update.
+
+2018-01-17  Tom Tromey  <tom@tromey.com>
+           Simon Marchi  <simon.marchi@ericsson.com>
+
+       * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
+       (dwarf2_per_objfile::free_cached_comp_units)
+       (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
+       (init_cutu_and_read_dies_no_follow): Update.
+       (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
+       (dwarf2_cu::~dwarf2_cu): New.
+       (free_heap_comp_unit, free_stack_comp_unit): Remove.
+       (age_cached_comp_units, free_one_cached_comp_unit): Update.
+
+2018-01-17  Tom Tromey  <tom@tromey.com>
+           Simon Marchi  <simon.marchi@ericsson.com>
+
+       * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
+       (struct die_reader_specs) <abbrev_table>: New member.
+       (struct abbrev_table): Add constructor.
+       <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
+       <abbrev_obstack>: Now an auto_obstack.
+       (abbrev_table_up): New typedef.
+       (init_cu_die_reader): Add abbrev_table parameter.
+       (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
+       Add result_dwo_abbrev_table.
+       (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
+       (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
+       Update.
+       (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
+       parameter.
+       (skip_children): Update.
+       (abbrev_table::alloc_abbrev): Rename from
+       abbrev_table_alloc_abbrev.
+       (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
+       (abbrev_table::lookup_abbrev): Rename from
+       abbrev_table_lookup_abbrev.
+       (abbrev_table_read_table): Return abbrev_table_up.
+       (abbrev_table_free, abbrev_table_free_cleanup)
+       (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
+       (load_partial_dies): Update.
+
+2018-01-17  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (dwarf2_compute_name): Update comment.
+       (read_func_scope, read_variable): Update.
+       (new_symbol): Remove.
+       (new_symbol_full): Rename to new_symbol.
+
+2018-01-17  Mike Gulick  <mgulick@mathworks.com>
+
+       PR gdb/16577
+       * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
+       a warning instead of throwing an error, set section size to 0 and return
+       NULL.
+       * gdb_bfd.h (gdb_bfd_map_section): Update description.
+
+2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
+       std::string.
+       (linux_ptrace_attach_fail_reason_string): Likewise.
+       * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
+       Likewise.
+       (linux_ptrace_attach_fail_reason_string): Likewise.
+       * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
+
+2018-01-17  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * linux-nat.c (linux_nat_attach): Remove xstrdup.
+
+2018-01-17  Eldar Abusalimov  <eldar.abusalimov@jetbrains.com>
+
+       PR gdb/21559
+       * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
+       checking for fs_base/gs_base fields in struct user_regs_struct.
+       * configure: Regenerate.
+
+2018-01-17  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
+       function.
+       (aarch64_linux_init_abi): Install it to gdbarch hook
+       gcc_target_options.
+
+2018-01-15  Pedro Alves  <palves@redhat.com>
+
+       * common/signals-state-save-restore.c
+       (save_original_signals_state): Fix typos.
+
+2017-01-12  Tom Tromey  <tom@tromey.com>
+           Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * Makefile.in (install-only): Install gdb-add-index.
+
+2018-01-12  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-tdep.c (KVE_PROTECTION): Correct value.
+
+2018-01-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * infrun.c (keep_going_pass_signal): Clear step-over info when
+       insert_breakpoints fails.
+
+2018-01-11  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/22583
+       * infrun.c (resume): Rename to ...
+       (resume_1): ... this.
+       (resume): Reimplement as wrapper around resume_1.
+
+2018-01-11  Pedro Alves  <palves@redhat.com>
+
+       PR remote/22597
+       * remote.c (remote_parse_stop_reply): Default to the last-set
+       general thread instead of to 'magic_null_ptid'.
+
+2018-01-10  Pedro Alves  <palves@redhat.com>
+
+       * language.h (language_get_symbol_name_matcher): Rename ...
+       (get_symbol_name_matcher): ... this.
+       * language.c (language_get_symbol_name_matcher): Ditto.
+       * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
+       callers adjusted.
+
 2018-01-10  Pedro Alves  <palves@redhat.com>
 
        PR gdb/22670
This page took 0.040127 seconds and 4 git commands to generate.