From f158f208759703b94dbfc6de2222ae7740420faf Mon Sep 17 00:00:00 2001 From: Tim Wiederhake Date: Tue, 30 May 2017 12:47:37 +0200 Subject: btrace: Use function segment index in call iterator. Remove FUNCTION pointer in struct btrace_call_iterator and use an index into the list of function segments instead. --- gdb/record-btrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/record-btrace.c') diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index d4f1bcf..86a4b1e 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -1101,8 +1101,8 @@ record_btrace_call_history (struct target_ops *self, int size, int int_flags) replay = btinfo->replay; if (replay != NULL) { - begin.function = replay->function; begin.btinfo = btinfo; + begin.index = replay->function->number - 1; } else btrace_call_end (&begin, btinfo); -- cgit v1.1