Use std::unique_ptr in reg_buffer
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index a8da90b47ae7511ec62977276ce59a129daab605..160023214dc750ea05776279de8955eec46fe2b2 100644 (file)
@@ -1,3 +1,103 @@
+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.
         (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.
This page took 0.026667 seconds and 4 git commands to generate.