aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-11-09 12:49:43 +0000
committerPedro Alves <palves@redhat.com>2016-11-09 14:57:55 +0000
commit6c73cd95f96d37dbf6092a87c8ba0f35277223a5 (patch)
tree1df7a0ca6bc434f553e705850b9bbd1d08fc0532 /gdb/tracepoint.h
parent7a63494a0df60cf71b9cf03c4eb8f24719d03e66 (diff)
downloadgdb-6c73cd95f96d37dbf6092a87c8ba0f35277223a5.zip
gdb-6c73cd95f96d37dbf6092a87c8ba0f35277223a5.tar.gz
gdb-6c73cd95f96d37dbf6092a87c8ba0f35277223a5.tar.bz2
agent_expr_up: gdb::unique_ptr -> std::unique_ptr
Now that we require C++11, use std::unique_ptr directly. This allows simplifying collection_list a bit by placing unique pointers in the vector directly, making the vector own its elements. gdb/ChangeLog: 2016-11-09 Pedro Alves <palves@redhat.com> * ax-gdb.c (agent_eval_command_one): Use std::move instead of gdb::move. * ax.h (agent_expr_up): Use std::unique_ptr instead of gdb::unique_ptr. * breakpoint.c (parse_cond_to_aexpr): Use std::move instead of gdb::move. * tracepoint.c (collection_list::collect_symbol): Likewise. (collection_list::~collection_list): Delete. (encode_actions_1): Use std::move instead of gdb::move. (collection_list::add_aexpr): Use std::move instead of unique_ptr::release. * tracepoint.h (collection_list) <~collection_list>: Delete declaration. <m_aexprs>: Now a vector of agent_ptr_up.
Diffstat (limited to 'gdb/tracepoint.h')
-rw-r--r--gdb/tracepoint.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/tracepoint.h b/gdb/tracepoint.h
index 7dfd8cc..855bb1d 100644
--- a/gdb/tracepoint.h
+++ b/gdb/tracepoint.h
@@ -243,7 +243,6 @@ class collection_list
{
public:
collection_list ();
- ~collection_list ();
void add_wholly_collected (const char *print_name);
@@ -282,8 +281,7 @@ private:
std::vector<memrange> m_memranges;
- /* Vector owns pointers. */
- std::vector<agent_expr *> m_aexprs;
+ std::vector<agent_expr_up> m_aexprs;
/* True is the user requested a collection of "$_sdata", "static
tracepoint data". */