From b54b03bd874936ab3c91f23e5dff3a87153c4e36 Mon Sep 17 00:00:00 2001 From: Tim Wiederhake Date: Tue, 30 May 2017 12:47:37 +0200 Subject: btrace: Remove struct btrace_thread_info::{begin,end}. These are no longer needed and might hold invalid addresses once we change the vector of function segment pointers into a vector of function segment objects where a reallocation of the vector changes the address of its elements. --- gdb/btrace.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'gdb/btrace.h') diff --git a/gdb/btrace.h b/gdb/btrace.h index 9dc92b7..08dd880 100644 --- a/gdb/btrace.h +++ b/gdb/btrace.h @@ -331,17 +331,9 @@ struct btrace_thread_info /* The raw branch trace data for the below branch trace. */ struct btrace_data data; - /* The current branch trace for this thread (both inclusive). - - The last instruction of END is the current instruction, which is not - part of the execution history. - Both will be NULL if there is no branch trace available. If there is - branch trace available, both will be non-NULL. */ - struct btrace_function *begin; - struct btrace_function *end; - - /* Vector of pointer to decoded function segments. These are in execution - order with the first element == BEGIN and the last element == END. */ + /* Vector of pointer to decoded function segments in execution flow order. + Note that the numbering for btrace function segments starts with 1, so + function segment i will be at index (i - 1). */ std::vector functions; /* The function level offset. When added to each function's LEVEL, -- cgit v1.1