From 42bfe59e3a3fef26be6809168756f40740fac1d0 Mon Sep 17 00:00:00 2001 From: Tim Wiederhake Date: Tue, 30 May 2017 12:47:37 +0200 Subject: 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. --- gdb/btrace.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gdb/btrace.h') 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 -- cgit v1.1