aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorLancelot Six <lancelot.six@amd.com>2023-09-14 11:13:24 +0000
committerLancelot Six <lancelot.six@amd.com>2023-11-21 11:52:35 +0000
commit6b62451ad08056f0ba02e192ec34ef67c4294ef4 (patch)
tree761f6e5a19e9e16d87ec955929aecd025166e335 /gdb/python
parent1367eeec2cbd1bb14b89030e199d06fc676ffc49 (diff)
downloadbinutils-6b62451ad08056f0ba02e192ec34ef67c4294ef4.zip
binutils-6b62451ad08056f0ba02e192ec34ef67c4294ef4.tar.gz
binutils-6b62451ad08056f0ba02e192ec34ef67c4294ef4.tar.bz2
gdb: Use C++17's std::make_unique instead of gdb::make_unique
gdb::make_unique is a wrapper around std::make_unique when compiled with C++17. Now that C++17 is required, use std::make_unique directly in the codebase, and remove gdb::make_unique. Change-Id: I80b615e46e4b7c097f09d78e579a9bdce00254ab Approved-By: Tom Tromey <tom@tromey.com> Approved-By: Pedro Alves <pedro@palves.net
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-mi.c2
-rw-r--r--gdb/python/py-varobj.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-mi.c b/gdb/python/py-mi.c
index a7b4f4f..aaa225d 100644
--- a/gdb/python/py-mi.c
+++ b/gdb/python/py-mi.c
@@ -290,7 +290,7 @@ gdbpy_execute_mi_command (PyObject *self, PyObject *args, PyObject *kw)
try
{
scoped_restore save_uiout = make_scoped_restore (&current_uiout, &uiout);
- auto parser = gdb::make_unique<mi_parse> (std::move (mi_command),
+ auto parser = std::make_unique<mi_parse> (std::move (mi_command),
std::move (arg_strings));
mi_execute_command (parser.get ());
}
diff --git a/gdb/python/py-varobj.c b/gdb/python/py-varobj.c
index 98603ce..3401cf2 100644
--- a/gdb/python/py-varobj.c
+++ b/gdb/python/py-varobj.c
@@ -170,5 +170,5 @@ py_varobj_get_iterator (struct varobj *var, PyObject *printer,
error (_("Could not get children iterator"));
}
- return gdb::make_unique<py_varobj_iter> (var, std::move (iter), opts);
+ return std::make_unique<py_varobj_iter> (var, std::move (iter), opts);
}