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
commit42bfe59e3a3fef26be6809168756f40740fac1d0 (patch)
tree0a4dba01a7aa394ffd8190f12303b97d17e40830 /gdb/btrace.h
parentb54b03bd874936ab3c91f23e5dff3a87153c4e36 (diff)
downloadgdb-42bfe59e3a3fef26be6809168756f40740fac1d0.zip
gdb-42bfe59e3a3fef26be6809168756f40740fac1d0.tar.gz
gdb-42bfe59e3a3fef26be6809168756f40740fac1d0.tar.bz2
btrace: Replace struct btrace_function::up.
This used to hold a function segment pointer. Change it to hold an index into the vector of function segments instead.
Diffstat (limited to 'gdb/btrace.h')
-rw-r--r--gdb/btrace.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/btrace.h b/gdb/btrace.h
index 08dd880..8323887 100644
--- a/gdb/btrace.h
+++ b/gdb/btrace.h
@@ -154,8 +154,10 @@ struct btrace_function
/* The previous and next function in control flow order. */
struct btrace_func_link flow;
- /* The directly preceding function segment in a (fake) call stack. */
- struct btrace_function *up;
+ /* The function segment number of the directly preceding function segment in
+ a (fake) call stack. Will be zero if there is no such function segment in
+ the record. */
+ unsigned int up;
/* The instructions in this function segment.
The instruction vector will be empty if the function segment