aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/tdesc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdbserver/tdesc.cc')
-rw-r--r--gdbserver/tdesc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdbserver/tdesc.cc b/gdbserver/tdesc.cc
index e639017..b7e6057 100644
--- a/gdbserver/tdesc.cc
+++ b/gdbserver/tdesc.cc
@@ -95,10 +95,10 @@ init_target_desc (struct target_desc *tdesc,
/* See gdbsupport/tdesc.h. */
-struct target_desc *
+target_desc_up
allocate_target_description (void)
{
- return new target_desc ();
+ return target_desc_up (new target_desc ());
}
/* See gdbsupport/tdesc.h. */