X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fbreak-catch-throw.c;h=b5322fc8fa3fc3f7d3219a31e03634439048f67e;hb=b270e6f9e09814c82e198859f218b37118eaf098;hp=5318e5f9a653eec49dc720ed13161ec4f2e980f8;hpb=2f5404b3581d125a96f14d92c4a7985e8156d1d6;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/break-catch-throw.c b/gdb/break-catch-throw.c index 5318e5f9a6..b5322fc8fa 100644 --- a/gdb/break-catch-throw.c +++ b/gdb/break-catch-throw.c @@ -387,8 +387,7 @@ handle_gnu_v3_exceptions (int tempflag, std::string &&except_rx, re_set_exception_catchpoint (cp.get ()); - install_breakpoint (0, cp.get (), 1); - cp.release (); + install_breakpoint (0, std::move (cp), 1); } /* Look for an "if" token in *STRING. The "if" token must be preceded