]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/python/py-record-btrace.c
btrace: Store btrace_insn in an std::vector
[thirdparty/binutils-gdb.git] / gdb / python / py-record-btrace.c
index cd2be9fa97bbc377f30cea9ebf6b95492ee39cd2..220990b33caa99a91fc9781c7219b6f55f8e97b7 100644 (file)
@@ -376,7 +376,7 @@ recpy_bt_func_instructions (PyObject *self, void *closure)
   if (func == NULL)
     return NULL;
 
-  len = VEC_length (btrace_insn_s, func->insn);
+  len = func->insn.size ();
 
   /* Gaps count as one instruction.  */
   if (len == 0)