aboutsummaryrefslogtreecommitdiff
path: root/gdb/break-catch-load.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/break-catch-load.c')
-rw-r--r--gdb/break-catch-load.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/break-catch-load.c b/gdb/break-catch-load.c
index 440b428..94d8b42 100644
--- a/gdb/break-catch-load.c
+++ b/gdb/break-catch-load.c
@@ -230,9 +230,8 @@ add_solib_catchpoint (const char *arg, bool is_load, bool is_temp, bool enabled)
if (*arg == '\0')
arg = nullptr;
- std::unique_ptr<solib_catchpoint> c (new solib_catchpoint (gdbarch, is_temp,
- nullptr,
- is_load, arg));
+ auto c = gdb::make_unique<solib_catchpoint> (gdbarch, is_temp, nullptr,
+ is_load, arg);
c->enable_state = enabled ? bp_enabled : bp_disabled;