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/btrace.h | |
parent | 521103fd00e593c08a6bedb619c5a9f8f7cc5a91 (diff) | |
download | gdb-f158f208759703b94dbfc6de2222ae7740420faf.zip gdb-f158f208759703b94dbfc6de2222ae7740420faf.tar.gz gdb-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/btrace.h')
-rw-r--r-- | gdb/btrace.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/btrace.h b/gdb/btrace.h index e567ef7..8fefc84 100644 --- a/gdb/btrace.h +++ b/gdb/btrace.h @@ -172,7 +172,7 @@ struct btrace_function segment in control-flow order. */ unsigned int insn_offset; - /* The function number in control-flow order. + /* The 1-based function number in control-flow order. If INSN is empty indicating a gap in the trace due to a decode error, we still count the gap as a function. */ unsigned int number; @@ -209,9 +209,8 @@ struct btrace_call_iterator /* The branch trace information for this thread. Will never be NULL. */ const struct btrace_thread_info *btinfo; - /* The branch trace function segment. - This will be NULL for the iterator pointing to the end of the trace. */ - const struct btrace_function *function; + /* The index of the function segment in BTINFO->FUNCTIONS. */ + unsigned int index; }; /* Branch trace iteration state for "record instruction-history". */ |