From 2b51eddc5503ea84d48c5b3b3ec3388eba440451 Mon Sep 17 00:00:00 2001 From: Tim Wiederhake Date: Tue, 30 May 2017 12:47:37 +0200 Subject: btrace: Use std::vector in struct btrace_thread_information. --- gdb/btrace.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gdb/btrace.h') 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 #endif +#include + 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 functions; /* The function level offset. When added to each function's LEVEL, this normalizes the function levels such that the smallest level -- cgit v1.1