btrace: Use binary search to find instruction.
[deliverable/binutils-gdb.git] / gdb / btrace.h
index 1c0b6b38969be8ac52bc355d1d6bc548a89d3f9d..07ed10c6ad6c07d622d3bdf8ccc8c0e3a659b107 100644 (file)
@@ -187,6 +187,9 @@ struct btrace_function
   btrace_function_flags flags;
 };
 
+typedef struct btrace_function *btrace_fun_p;
+DEF_VEC_P (btrace_fun_p);
+
 /* A branch trace instruction iterator.  */
 struct btrace_insn_iterator
 {
@@ -337,6 +340,10 @@ struct btrace_thread_info
   struct btrace_function *begin;
   struct btrace_function *end;
 
+  /* Vector of pointer to decoded function segments.  These are in execution
+     order with the first element == BEGIN and the last element == END.  */
+  VEC (btrace_fun_p) *functions;
+
   /* The function level offset.  When added to each function's LEVEL,
      this normalizes the function levels such that the smallest level
      becomes zero.  */
This page took 0.024073 seconds and 4 git commands to generate.