aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-08-11 10:14:16 -0600
committerTom Tromey <tom@tromey.com>2017-08-14 08:24:15 -0600
commit2f5404b3581d125a96f14d92c4a7985e8156d1d6 (patch)
tree8a4973610c65c8fcf5a0e730284c563209414c50
parent0c54f69295208331faab9bc5e995111a35672f9b (diff)
downloadgdb-2f5404b3581d125a96f14d92c4a7985e8156d1d6.zip
gdb-2f5404b3581d125a96f14d92c4a7985e8156d1d6.tar.gz
gdb-2f5404b3581d125a96f14d92c4a7985e8156d1d6.tar.bz2
Use std::move in a few places
This patch adds std::move to few spots where it seems to be missing. Regression tested by the buildbot. ChangeLog 2017-08-14 Tom Tromey <tom@tromey.com> * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move. * break-catch-syscall.c (create_syscall_event_catchpoint): Use std::move. * break-catch-sig.c (create_signal_catchpoint): Use std::move.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/break-catch-sig.c2
-rw-r--r--gdb/break-catch-syscall.c2
-rw-r--r--gdb/break-catch-throw.c2
4 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c588291..384d4d3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2017-08-14 Tom Tromey <tom@tromey.com>
+
+ * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
+ * break-catch-syscall.c (create_syscall_event_catchpoint): Use
+ std::move.
+ * break-catch-sig.c (create_signal_catchpoint): Use std::move.
+
2017-08-11 Pedro Alves <palves@redhat.com>
* infrun.c (process_event_stop_test): Adjust
diff --git a/gdb/break-catch-sig.c b/gdb/break-catch-sig.c
index c8529de..98888c9 100644
--- a/gdb/break-catch-sig.c
+++ b/gdb/break-catch-sig.c
@@ -322,7 +322,7 @@ create_signal_catchpoint (int tempflag, std::vector<gdb_signal> &&filter,
c = new signal_catchpoint ();
init_catchpoint (c, gdbarch, tempflag, NULL, &signal_catchpoint_ops);
- c->signals_to_be_caught = filter;
+ c->signals_to_be_caught = std::move (filter);
c->catch_all = catch_all;
install_breakpoint (0, c, 1);
diff --git a/gdb/break-catch-syscall.c b/gdb/break-catch-syscall.c
index 58fc279..701645e 100644
--- a/gdb/break-catch-syscall.c
+++ b/gdb/break-catch-syscall.c
@@ -375,7 +375,7 @@ create_syscall_event_catchpoint (int tempflag, std::vector<int> &&filter,
c = new syscall_catchpoint ();
init_catchpoint (c, gdbarch, tempflag, NULL, ops);
- c->syscalls_to_be_caught = filter;
+ c->syscalls_to_be_caught = std::move (filter);
install_breakpoint (0, c, 1);
}
diff --git a/gdb/break-catch-throw.c b/gdb/break-catch-throw.c
index e71a885..5318e5f 100644
--- a/gdb/break-catch-throw.c
+++ b/gdb/break-catch-throw.c
@@ -382,7 +382,7 @@ handle_gnu_v3_exceptions (int tempflag, std::string &&except_rx,
the right thing. */
cp->type = bp_breakpoint;
cp->kind = ex_event;
- cp->exception_rx = except_rx;
+ cp->exception_rx = std::move (except_rx);
cp->pattern = std::move (pattern);
re_set_exception_catchpoint (cp.get ());