X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fcommon%2Fnew-op.c;h=7c5dba0be6da571adf38a6af4c47807159ad8bf6;hb=94aeb44b001ab2d632806242a3bacb0a879abe15;hp=b230f111ae71924f9b2324ca3c36155d810c5f4c;hpb=680d7fd5fcff860a31021845389d4dfeb7b42e3c;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/common/new-op.c b/gdb/common/new-op.c index b230f111ae..7c5dba0be6 100644 --- a/gdb/common/new-op.c +++ b/gdb/common/new-op.c @@ -64,9 +64,9 @@ operator new (std::size_t sz) { malloc_failure (sz); } - catch (const gdb_exception &ex) + catch (gdb_exception &ex) { - throw gdb_quit_bad_alloc (ex); + throw gdb_quit_bad_alloc (std::move (ex)); } } return p;