diff options
author | Tim Wiederhake <tim.wiederhake@intel.com> | 2017-05-30 12:47:37 +0200 |
---|---|---|
committer | Tim Wiederhake <tim.wiederhake@intel.com> | 2017-05-30 12:49:25 +0200 |
commit | f158f208759703b94dbfc6de2222ae7740420faf (patch) | |
tree | d0018075f05ed63d7f54083d22b99f73d5a18adb /gdb/record-btrace.c | |
parent | 521103fd00e593c08a6bedb619c5a9f8f7cc5a91 (diff) | |
download | binutils-f158f208759703b94dbfc6de2222ae7740420faf.zip binutils-f158f208759703b94dbfc6de2222ae7740420faf.tar.gz binutils-f158f208759703b94dbfc6de2222ae7740420faf.tar.bz2 |
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.
Diffstat (limited to 'gdb/record-btrace.c')
-rw-r--r-- | gdb/record-btrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |