gdb: Use vector::emplace_back
authorPedro Alves <palves@redhat.com>
Wed, 9 Nov 2016 14:53:58 +0000 (14:53 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 9 Nov 2016 14:53:58 +0000 (14:53 +0000)
commit7a63494a0df60cf71b9cf03c4eb8f24719d03e66
tree5b59f39a837aaa33f12ddb718499ad44c8a1650f
parent8c84bffb45ac63b98fffc5c1a492c2eb7e4f27e2
gdb: Use vector::emplace_back

Now that we require C++11, we can use vector::emplace_back to
construct elements in place instead of constructing and then copying.

gdb/ChangeLog:
2016-11-09  Pedro Alves  <palves@redhat.com>

* main.c (struct cmdarg): Add constructor.
(captured_main_1): Use vector::emplace_back.
* tracepoint.c (collection_list::add_memrange): Likewise.
gdb/ChangeLog
gdb/main.c
gdb/tracepoint.c