aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-svr4.c
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/solib-svr4.c
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/solib-svr4.c')
-rw-r--r--gdb/solib-svr4.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 8a5ad59..5882a4e 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -213,7 +213,7 @@ lm_info_read (CORE_ADDR lm_addr)
type *ptr_type
= builtin_type (current_inferior ()->arch ())->builtin_data_ptr;
- lm_info = gdb::make_unique<lm_info_svr4> ();
+ lm_info = std::make_unique<lm_info_svr4> ();
lm_info->lm_addr = lm_addr;
lm_info->l_addr_inferior = extract_typed_address (&lm[lmo->l_addr_offset],
@@ -1001,7 +1001,7 @@ so_list_from_svr4_sos (const std::vector<svr4_so> &sos)
newobj->so_name = so.name;
newobj->so_original_name = so.name;
- newobj->lm_info = gdb::make_unique<lm_info_svr4> (*so.lm_info);
+ newobj->lm_info = std::make_unique<lm_info_svr4> (*so.lm_info);
dst.push_back (*newobj);
}
@@ -1032,7 +1032,7 @@ library_list_start_library (struct gdb_xml_parser *parser,
ULONGEST *l_ldp
= (ULONGEST *) xml_find_attribute (attributes, "l_ld")->value.get ();
- lm_info_svr4_up li = gdb::make_unique<lm_info_svr4> ();
+ lm_info_svr4_up li = std::make_unique<lm_info_svr4> ();
li->lm_addr = *lmp;
li->l_addr_inferior = *l_addrp;
li->l_ld = *l_ldp;
@@ -1190,7 +1190,7 @@ svr4_default_sos (svr4_info *info)
return {};
shobj *newobj = new shobj;
- auto li = gdb::make_unique<lm_info_svr4> ();
+ auto li = std::make_unique<lm_info_svr4> ();
/* Nothing will ever check the other fields if we set l_addr_p. */
li->l_addr = li->l_addr_inferior = info->debug_loader_offset;