aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/new-op.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/common/new-op.c')
-rw-r--r--gdb/common/new-op.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/common/new-op.c b/gdb/common/new-op.c
index b230f11..7c5dba0 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;