gdbsupport: allow passing format string to scoped_debug_start_end
[deliverable/binutils-gdb.git] / gdbserver / tdesc.cc
index d21688b932b875a4beda8ea0d6d6aca68f9af2cf..099e73c722062a91b866080846f219f8066a11ce 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2012-2020 Free Software Foundation, Inc.
+/* Copyright (C) 2012-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -93,10 +93,20 @@ init_target_desc (struct target_desc *tdesc,
 #endif
 }
 
-struct target_desc *
+/* See gdbsupport/tdesc.h.  */
+
+target_desc_up
 allocate_target_description (void)
 {
-  return new target_desc ();
+  return target_desc_up (new target_desc ());
+}
+
+/* See gdbsupport/tdesc.h.  */
+
+void
+target_desc_deleter::operator() (struct target_desc *target_desc) const
+{
+  delete target_desc;
 }
 
 #ifndef IN_PROCESS_AGENT
This page took 0.023088 seconds and 4 git commands to generate.