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 | a0f1b963327b9cc349a1e6b4c543a29fbee68fba (patch) | |
tree | f0ce2f62b4a6eead169d19e36feb9e09b1c53dfc /gdb/btrace.h | |
parent | f158f208759703b94dbfc6de2222ae7740420faf (diff) | |
download | gdb-a0f1b963327b9cc349a1e6b4c543a29fbee68fba.zip gdb-a0f1b963327b9cc349a1e6b4c543a29fbee68fba.tar.gz gdb-a0f1b963327b9cc349a1e6b4c543a29fbee68fba.tar.bz2 |
btrace: Use function segment index in insn iterator.
Remove FUNCTION pointer in struct btrace_insn_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 8fefc84..9dc92b7 100644 --- a/gdb/btrace.h +++ b/gdb/btrace.h @@ -195,12 +195,11 @@ struct btrace_insn_iterator /* The branch trace information for this thread. Will never be NULL. */ const struct btrace_thread_info *btinfo; - /* The branch trace function segment containing the instruction. - Will never be NULL. */ - const struct btrace_function *function; + /* The index of the function segment in BTINFO->FUNCTIONS. */ + unsigned int call_index; /* The index into the function segment's instruction vector. */ - unsigned int index; + unsigned int insn_index; }; /* A branch trace function call iterator. */ |