aboutsummaryrefslogtreecommitdiff
path: root/gdb/btrace.h
diff options
context:
space:
mode:
authorTim Wiederhake <tim.wiederhake@intel.com>2017-05-30 12:47:37 +0200
committerTim Wiederhake <tim.wiederhake@intel.com>2017-05-30 12:49:25 +0200
commit2b51eddc5503ea84d48c5b3b3ec3388eba440451 (patch)
tree5e46647cbf2fcfb71e0c57491a0fdbf2d4fc1878 /gdb/btrace.h
parent70c16c04ac76a90f18e920aaea1026bde90c493c (diff)
downloadgdb-2b51eddc5503ea84d48c5b3b3ec3388eba440451.zip
gdb-2b51eddc5503ea84d48c5b3b3ec3388eba440451.tar.gz
gdb-2b51eddc5503ea84d48c5b3b3ec3388eba440451.tar.bz2
btrace: Use std::vector in struct btrace_thread_information.
Diffstat (limited to 'gdb/btrace.h')
-rw-r--r--gdb/btrace.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/btrace.h b/gdb/btrace.h
index 07ed10c..ab739ec 100644
--- a/gdb/btrace.h
+++ b/gdb/btrace.h
@@ -34,6 +34,8 @@
# include <intel-pt.h>
#endif
+#include <vector>
+
struct thread_info;
struct btrace_function;
@@ -187,9 +189,6 @@ struct btrace_function
btrace_function_flags flags;
};
-typedef struct btrace_function *btrace_fun_p;
-DEF_VEC_P (btrace_fun_p);
-
/* A branch trace instruction iterator. */
struct btrace_insn_iterator
{
@@ -342,7 +341,7 @@ struct btrace_thread_info
/* Vector of pointer to decoded function segments. These are in execution
order with the first element == BEGIN and the last element == END. */
- VEC (btrace_fun_p) *functions;
+ std::vector<btrace_function *> functions;
/* The function level offset. When added to each function's LEVEL,
this normalizes the function levels such that the smallest level