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
commitb54b03bd874936ab3c91f23e5dff3a87153c4e36 (patch)
tree32bc9677f846652e9b651068f0613dd96be8de72 /gdb/btrace.h
parent8286623c113daf97a45cde5fc8ef9587b85c898b (diff)
downloadgdb-b54b03bd874936ab3c91f23e5dff3a87153c4e36.zip
gdb-b54b03bd874936ab3c91f23e5dff3a87153c4e36.tar.gz
gdb-b54b03bd874936ab3c91f23e5dff3a87153c4e36.tar.bz2
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.
Diffstat (limited to 'gdb/btrace.h')
-rw-r--r--gdb/btrace.h14
1 files changed, 3 insertions, 11 deletions
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<btrace_function *> functions;
/* The function level offset. When added to each function's LEVEL,