Use std::unique_ptr in reg_buffer
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index d0c43027d6e45278723cfdad1c0ef67a56e39bf0..160023214dc750ea05776279de8955eec46fe2b2 100644 (file)
@@ -1,3 +1,261 @@
+2018-06-09  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
+       <m_registers, m_register_status>: Change type to
+       std::unique_ptr.
+       * regcache.c (reg_buffer::reg_buffer): Use new instead of
+       XCNEWVEC.
+
+2018-06-09  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * common/common-regcache.h (enum register_status): Add
+       underlying type "signed char".
+       * regcache.h (reg_buffer) <m_register_status>: 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  <tom@tromey.com>
+
+       * source.c (reverse_search_command, forward_search_command): Use
+       scoped_fd.
+
+2018-06-09  Tom Tromey  <tom@tromey.com>
+
+       * 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  <tom@tromey.com>
+
+       * dwarf2read.c (process_cu_includes): Update.
+       (process_full_comp_unit): Update.
+       * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
+       std::vector.
+
+2018-06-08  Paul Koning  <paul_koning@dell.com>
+
+       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 <gbenson@redhat.com>
+
+       * 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  <tom@tromey.com>
+
+       * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
+       now a method.
+
+2018-06-08  Tom Tromey  <tom@tromey.com>
+
+       * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
+
+2018-06-08  Tom Tromey  <tom@tromey.com>
+
+       * common/btrace-common.h (struct btrace_data): Add constructor,
+       destructor, move assignment operator.
+       <empty, clear, fini>: New methods.
+       <format>: 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  <palves@redhat.com>
+
+       * target.h (target_ops) <beneath>: 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  <palves@redhat.com>
+
+       * 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  <palves@redhat.com>
+
+       * target.h (target_ops) <beneath>: Now a method.  All references
+       updated.
+       (target_ops) <m_beneath>: 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  <palves@redhat.com>
+
+       * 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  <tom@tromey.com>
+
+       * 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  <alan.hayward@arm.com>
+
+        * 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  <sergiodj@redhat.com>
+
+        * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
+        (sve_vl_from_vq): Likewise.
+
+2018-06-05  Tom Tromey  <tom@tromey.com>
+
+       * 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  <dmalcolm@redhat.com>
+
+       * common/enum-flags.h: Add trailing semicolon to example in
+       comment.
+
+2018-06-05  Tom Tromey <tom@tromey.com>
+
+       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  <tom@tromey.com>
+
+       * 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  <brobecker@adacore.com>
+
+       * 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  <simon.marchi@ericsson.com>
 
        * Makefile.in (config.status): Add configure.nat as a
This page took 0.028021 seconds and 4 git commands to generate.