btrace: Use std::vector in struct btrace_thread_information.
This commit is contained in:
parent
70c16c04ac
commit
2b51eddc55
3 changed files with 18 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue