summaryrefslogtreecommitdiff
path: root/gdb/btrace.h
diff options
context:
space:
mode:
authorTim Wiederhake <tim.wiederhake@intel.com>2017-05-30 12:47:37 +0200
committerTim Wiederhake <tim.wiederhake@intel.com>2017-05-30 12:49:25 +0200
commita0f1b963327b9cc349a1e6b4c543a29fbee68fba (patch)
treef0ce2f62b4a6eead169d19e36feb9e09b1c53dfc /gdb/btrace.h
parentf158f208759703b94dbfc6de2222ae7740420faf (diff)
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.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/btrace.h b/gdb/btrace.h
index 8fefc84da3..9dc92b7cf5 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. */