More gdb::optional features
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 0f701f03c7af698fa7082efde02561332e66b486..f0001126db5ba1d898eeaec9a4d0ac5a861638f4 100644 (file)
@@ -1,3 +1,99 @@
+2017-04-18  Pedro Alves  <palves@redhat.com>
+
+       * common/gdb_optional.h: Include common/traits.h.
+       (in_place_t): New type.
+       (in_place): New constexpr variable.
+       (optional::optional): Remove member initialization of
+       m_instantiated.
+       (optional::optional(in_place_t...)): New constructor.
+       (optional::~optional): Use reset.
+       (optional::optional(const optional&)): New.
+       (optional::optional(const optional&&)): New.
+       (optional::optional(T &)): New.
+       (optional::optional(T &&)): New.
+       (operator::operator=(const optional &)): New.
+       (operator::operator=(optional &&)): New.
+       (operator::operator= (const T &))
+       (operator::operator= (T &&))
+       (operator::emplace (Args &&... args)): Return a T&.  Use reset.
+       (operator::reset): New.
+       (operator::m_instantiated):: Add in-class initializer.
+       * common/traits.h: Include <type_traits>.
+       (struct And): New types.
+
+2017-04-18  Pedro Alves  <palves@redhat.com>
+
+       * xml-support.c: Include <vector>.
+       (scope_level::scope_level(const gdb_xml_element *))
+       (scope_level::scope_level(scope_level&&)): New.
+       (scope_level::~scope_level): New.
+       (scope_level_s): Delete.
+       (gdb_xml_parser::scopes): Now a std::vector.
+       (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
+       Use std::vector.
+       (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
+       scope cleanup code.
+       (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
+       of the scopes member.  Use std::vector::emplace_back.
+
+2017-04-18  Pedro Alves  <palves@redhat.com>
+
+       * xml-support.c (gdb_xml_parser): Add ctor/dtor.  Make is_xinclude
+       a bool.
+       (gdb_xml_end_element): Change type of first parameter.
+       (gdb_xml_cleanup): Rename to ...
+       (gdb_xml_parser::~gdb_xml_parser): ... this.
+       (gdb_xml_create_parser_and_cleanup): Delete with ...
+       (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
+       to this new ctor.
+       (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
+       using gdb_xml_create_parser_and_cleanup.
+       (xinclude_parsing_data): Add ctor/dtor.
+       (xml_xinclude_cleanup): Delete.
+       (xml_process_xincludes): Create a local xinclude_parsing_data
+       instead of heap-allocating one.  Create a local gdb_xml_parser
+       instead of heap-allocating one with
+       gdb_xml_create_parser_and_cleanup.
+
+2017-04-18  John Baldwin  <jhb@FreeBSD.org>
+
+       PR threads/20743
+       * fbsd-nat.c (resume_one_thread_cb): Remove.
+       (resume_all_threads_cb): Remove.
+       (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
+       iterate_over_threads.
+
+2017-04-17  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Create a new section for the next release branch.
+       Rename the section of the current branch, now that it has
+       been cut.
+
+2017-04-17  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
+       * version.in: Bump version to 8.0.50.DATE-git.
+
+2017-04-13  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       PR gdb/21385
+       * windows-nat.c (windows_create_inferior): Declare 'allargs'
+       independently of the host, and fix build breakage on Cygwin.
+
+2017-04-13  Pedro Alves  <palves@redhat.com>
+
+       * inferior.c (free_inferior): Convert to ...
+       (inferior::~inferior): ... this dtor.
+       (inferior::inferior): New ctor, factored out from ...
+       (add_inferior_silent): ... here.  Allocate the inferior with a new
+       expression.
+       (delete_inferior): Call delete instead of free_inferior.
+       * inferior.h (gdb_environ, continuation): Forward declare.
+       (inferior): Now a class.  Add in-class initialization to all
+       members.  Make boolean fields bool, except 'detaching'.
+       (inferior::inferior): New explicit ctor.
+       (inferior::~inferior): New.
+
 2017-04-13  Pedro Alves  <palves@redhat.com>
 
        * inferior.c (init_inferior_list): Delete.
This page took 0.026308 seconds and 4 git commands to generate.