aboutsummaryrefslogtreecommitdiff
path: root/gdb/progspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/progspace.c')
-rw-r--r--gdb/progspace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/progspace.c b/gdb/progspace.c
index 1ee4fe3..8735343 100644
--- a/gdb/progspace.c
+++ b/gdb/progspace.c
@@ -174,7 +174,7 @@ program_space::free_all_objfiles ()
/* See progspace.h. */
void
-program_space::add_objfile (std::shared_ptr<objfile> &&objfile,
+program_space::add_objfile (std::unique_ptr<objfile> &&objfile,
struct objfile *before)
{
if (before == nullptr)
@@ -182,7 +182,7 @@ program_space::add_objfile (std::shared_ptr<objfile> &&objfile,
else
{
auto iter = std::find_if (objfiles_list.begin (), objfiles_list.end (),
- [=] (const std::shared_ptr<::objfile> &objf)
+ [=] (const std::unique_ptr<::objfile> &objf)
{
return objf.get () == before;
});
@@ -203,7 +203,7 @@ program_space::remove_objfile (struct objfile *objfile)
reinit_frame_cache ();
auto iter = std::find_if (objfiles_list.begin (), objfiles_list.end (),
- [=] (const std::shared_ptr<::objfile> &objf)
+ [=] (const std::unique_ptr<::objfile> &objf)
{
return objf.get () == objfile;
});