remote: Small cleanup in compare_section_command
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 3c829df12d495fd46fb0f244a1f1c8ca749419b0..205dd4d388b7b921cd60c43e6a44749bc62fe36c 100644 (file)
@@ -1,3 +1,360 @@
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (compare_section_command): Remove set_general_process
+       call.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (struct packet_reg, struct remote_arch_state):
+       Move higher up in the file.
+       (remote_state) <m_arch_states>: Store remote_arch_state values
+       instead of remote_arch_state pointers.
+       (remote_state::get_remote_arch_state): Adjust.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       * remote.c: Include <unordered_map>.
+       (remote_state): Now a class.
+       (remote_state) <get_remote_arch_state>: Declare method.
+       <get_remote_arch_state>: New field.
+       (remote_arch_state) <remote_arch_state>: Declare ctor.
+       <regs>: Now a unique_ptr.
+       (remote_gdbarch_data_handle): Delete.
+       (get_remote_arch_state): Delete.
+       (remote_state::get_remote_arch_state): New.
+       (get_remote_state): Adjust to call remote_state's
+       get_remote_arch_state method.
+       (init_remote_state): Delete, bits factored out to ...
+       (remote_arch_state::remote_arch_state): ... this new method.
+       (get_remote_packet_size, get_memory_packet_size)
+       (process_g_packet, remote_target::fetch_registers)
+       (remote_target::prepare_to_store, store_registers_using_G)
+       (remote_target::store_registers, remote_target::get_trace_status):
+       Adjust to call remote_state's method.
+       (_initialize_remote): Remove reference to
+       remote_gdbarch_data_handle.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
+       pread>: New method declarations.
+       (remote_target::open_1): Adjust.
+       (readahead_cache_invalidate): Rename to ...
+       (readahead_cache::invalidate): ... this, and adjust to be a class
+       method.
+       (readahead_cache_invalidate_fd): Rename to ...
+       (readahead_cache::invalidate_fd): ... this, and adjust to be a
+       class method.
+       (remote_hostio_pwrite): Adjust.
+       (remote_hostio_pread_from_cache): Rename to ...
+       (readahead_cache::pread): ... this, and adjust to be a class
+       method.
+       (remote_hostio_close): Adjust.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       * remote.c (remote_hostio_close_cleanup): Delete.
+       (class scoped_remote_fd): New.
+       (remote_file_put, remote_file_get): Use it.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+
+       (struct vCont_action_support): Use bool and initialize all fields.
+       (struct readahead_cache): Initialize all fields.
+       (remote_state): Use bool and initialize all fields.
+       (remote_state::remote_state, remote_state::~remote_state): New.
+       (new_remote_state): Delete.
+       (_initialize_remote): Use new to allocate remote_state.
+
+2018-05-22  Pedro Alves  <palves@redhat.com>
+           張俊芝  <zjz@zjz.name>
+
+       PR gdb/22973
+       * c-exp.y: Include "c-support.h".
+       (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
+       of tolower.  Use c_ident_is_alpha to scan names.
+       * c-lang.c: Include "c-support.h".
+       (convert_ucn, convert_octal, convert_hex, convert_escape): Use
+       ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
+       * c-support.h: New file, with bits factored out from ...
+       * cp-name-parser.y: ... this file.
+       Include "c-support.h".
+       (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
+       c-support.h and renamed.
+       (symbol_end, yylex): Adjust.
+
+2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
+
+       * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
+       parameter type to CORE_ADDR.
+       * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
+       parameter type in declaration to CORE_ADDR.
+       * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
+       target_auxv_search to get AT_HWCAP and use the result to get the
+       target description.
+       * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
+       to CORE_ADDR. Remove the cast of the return value to unsigned
+       long. Fix error predicate of target_auxv_search.
+       (ppc_linux_nat_target::read_description): Change the type of the
+       hwcap variable to CORE_ADDR.
+
+2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
+
+       * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
+       if the size of fpscr is larger than 32 bits.
+
+2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
+
+       * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
+       (ppc32_linux_vsxregmap): New global.
+       (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
+       regcache_supply_regset, and regcache_collect_regset.
+       * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
+       * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
+       (fetch_vsx_register, store_vsx_register): Remove.
+       (fetch_vsx_registers): Add regno parameter. Get regset using
+       ppc_linux_vsxregset. Use regset to supply registers.
+       (store_vsx_registers): Add regno parameter. Get regset using
+       ppc_linux_vsxregset. Use regset to collect registers.
+       (fetch_register): Call fetch_vsx_registers instead of
+       fetch_vsx_register.
+       (store_register): Call store_vsx_registers instead of
+       store_vsx_register.
+       (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
+       new regno parameter.
+       (store_ppc_registers): Call store_vsx_registers with -1 for the
+       new regno parameter.
+       * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
+       (ppc_collect_vsxregset): Remove.
+
+2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
+
+       * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
+       offset fields.
+       * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
+       for vector register offset fields.
+       (ppc64_fbsd_reg_offsets): Likewise.
+       * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
+       to vector register offset fields.
+       * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
+       to vector register offset fields.
+       * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
+       vector register offset fields.
+       * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
+       initializers for vector register offset fields.
+       (rs6000_aix64_reg_offsets): Likewise.
+       * rs6000-tdep.c (ppc_vrreg_offset): Remove.
+       (ppc_supply_vrregset): Remove.
+       (ppc_collect_vrregset): Remove.
+       * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
+       (ppc_linux_vrregset) : New function.
+       (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
+       (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
+       (ppc32_linux_vrregset): Remove.
+       (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
+       and use result instead of ppc32_linux_vrregset.
+       (ppc32_linux_reg_offsets): Remove initializers for vector register
+       offset fields.
+       (ppc64_linux_reg_offsets): Likewise.
+       * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
+       * ppc-linux-nat.c: Include regset.h.
+       (gdb_vrregset_t): Adjust comment to account for little-endian
+       mode.
+       (supply_vrregset, fill_vrregset): Remove.
+       (fetch_altivec_register, store_altivec_register): Remove.
+       (fetch_altivec_registers): Add regno parameter. Get regset using
+       ppc_linux_vrregset. Use regset to supply registers.
+       (store_altivec_registers): Add regno parameter. Get regset using
+       ppc_linux_vrregset. Use regset to collect registers.
+       (fetch_register): Call fetch_altivec_registers instead of
+       fetch_altivec_register.
+       (store_register): Call store_altivec_registers instead of
+       store_altivec_register.
+       (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
+       the new regno parameter.
+       (store_ppc_registers): Call store_altivec_registers with -1 for
+       the new regno parameter.
+
+2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
+
+       * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
+       (PPC_LINUX_SIZEOF_VSXREGSET): Define.
+       * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
+       (gdb_vrregset_t): Change array type size to
+       PPC_LINUX_SIZEOF_VRREGSET.
+       (gdb_vsxregset_t): Change array type size to
+       PPC_LINUX_SIZEOF_VSXREGSET.
+       * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
+       Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
+       PPC_LINUX_SIZEOF_VSXREGSET.
+
+2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
+
+       * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
+       * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
+       nat/ppc-linux.c.
+       (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
+       ppc_linux_target_wordsize with tid.
+       (ppc_linux_nat_target::read_description): Call ppc_linux_target
+       wordsize with tid.
+       * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
+       (ppc64_64bit_inferior_p): Add static and inline specifiers.
+       (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
+       tid parameter. Remove static specifier.
+       * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
+       (ppc_linux_target_wordsize): New declaration.
+
+2018-05-22  Pedro Franco de Carvalho  <pedromfc@linux.vnet.ibm.com>
+
+       * arch/ppc-linux-common.c: New file.
+       * arch/ppc-linux-common.h: New file.
+       * arch/ppc-linux-tdesc.h: New file.
+       * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
+       * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
+       (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
+       arch/ppc-linux-tdesc.h.
+       * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
+       arch/ppc-linux-tdesc.h.
+       (ppc_linux_nat_target::read_description): Remove target
+       description matching code. Fill a ppc_linux_features struct and
+       call ppc_linux_match_description with it. Move comment about ISA
+       2.05 to ppc-linux-common.c.
+       * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
+       arch/ppc-linux-tdesc.h.
+       (ppc_linux_core_read_description): Remove target description
+       matching code. Fill a ppc_linux_features struct and call
+       ppc_linux_match_description with it.
+       * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
+       (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
+       (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
+       (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
+       (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
+       (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
+       (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
+       (tdesc_powerpc_e500l): Remove.
+
+2018-05-22  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (catch_assert_command): Pass empty string instead
+       of NULL for excep_string argument.
+
+2018-05-22  Maciej W. Rozycki  <macro@mips.com>
+
+       * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
+       the width of the requested register exceeds the width of the
+       `ptrace' data type.
+
+2018-05-21  Tom Tromey  <tom@tromey.com>
+
+       * printcmd.c (output_command): Remove.
+       (output_command_const): Rename to output_command.
+       * valprint.h (output_command): Rename from output_command_const.
+       * tracepoint.c (trace_dump_actions): Call output_command.
+
+2018-05-21  Tom Tromey  <tom@tromey.com>
+
+       * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
+       (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
+       * ada-lang.h (create_ada_exception_catchpoint): Update.
+       * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
+       std::string.
+       (create_excep_cond_exprs, ~ada_catchpoint)
+       (should_stop_exception, print_one_exception)
+       (print_mention_exception, print_recreate_exception): Update.
+       (ada_get_next_arg): Remove.
+       (catch_ada_exception_command_split): Use std::string.  Change type
+       of "excep_string", "cond_string".
+       (catch_ada_exception_command): Update.
+       (create_ada_exception_catchpoint): Change type of excep_string.
+       (ada_exception_sal): Remove excep_string parameter.
+       (~ada_catchpoint): Remove.
+
+2018-05-21  Tom Tromey  <tom@tromey.com>
+
+       * ada-lang.c (ada_collect_symbol_completion_matches): Remove
+       cleanup.
+
+2018-05-21  Tom Tromey  <tom@tromey.com>
+
+       * ada-lang.c (ada_exception_message_1, ada_exception_message):
+       Return unique_xmalloc_ptr.
+       (print_it_exception): Update.
+
+2018-05-21  Tom Tromey  <tom@tromey.com>
+
+       * tracepoint.c (trace_dump_actions): Use std::string.
+
+2018-05-21  Tom Tromey  <tom@tromey.com>
+
+       * symfile.c (reread_symbols): Use std::string for original_name.
+
+2018-05-21  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
+       (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN.  Default
+       constructor.
+
+2018-05-20  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
+       instance to...
+       (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
+       * objfiles.c (get_objfile_bfd_data): Allocate
+       objfile_per_bfd_storage with obstack_new when allocating on
+       obstack.
+
+2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
+       OBSTACK_ZALLOC.
+       * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
+       * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
+       * mdebugread.c (mdebug_build_psymtabs): Likewise.
+       (add_pending): Likewise.
+       (parse_symbol): Likewise.
+       (parse_partial_symbols): Likewise.
+       (psymtab_to_symtab_1): Likewise.
+       (new_psymtab): Likewise.
+       (elfmdebug_build_psymtabs): Likewise.
+       * minsyms.c (terminate_minimal_symbol_table): Likewise.
+       * objfiles.c (get_objfile_bfd_data): Likewise.
+       (objfile_register_static_link): Likewise.
+       * psymtab.c (allocate_psymtab): Likewise.
+       * stabsread.c (read_member_functions): Likewise.
+       * xcoffread.c (xcoff_end_psymtab): Likewise.
+
+2018-05-20  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
+       compiler supports std::is_trivially_constructible.
+       * common/poison.h: Include obstack.h.
+       (IsMallocable): Define to is_trivially_constructible if the
+       compiler supports it, define to true_type otherwise.
+       (xobnew): New.
+       (XOBNEW): Redefine.
+       (xobnewvec): New.
+       (XOBNEWVEC): Redefine.
+       * gdb_obstack.h (obstack_zalloc): New.
+       (OBSTACK_ZALLOC): Redefine.
+       (obstack_calloc): New.
+       (OBSTACK_CALLOC): Redefine.
+       (obstack_new): New.
+       * gdbarch.sh: Include gdb_obstack in gdbarch.h.
+       (gdbarch_obstack): New declaration in gdbarch.h, definition in
+       gdbarch.c.
+       (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
+       obstack_calloc/obstack_zalloc.
+       (gdbarch_obstack_zalloc): Remove.
+       * target-descriptions.c (tdesc_data_init): Use obstack_new.
+
+2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * stack.c (backtrace_command_1): Remove useless variable int i.
+
+2018-05-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * stack.c (print_frame_info): Fix comment.
+
 2018-05-18  Tom Tromey  <tom@tromey.com>
 
        * dwarf2read.c (struct dwz_file): Add constructor, initializers.
This page took 0.03071 seconds and 4 git commands to generate.