diff options
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/linux-btrace.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/common/linux-btrace.c b/gdb/common/linux-btrace.c index ef240f7..0d36ea5 100644 --- a/gdb/common/linux-btrace.c +++ b/gdb/common/linux-btrace.c @@ -520,6 +520,9 @@ linux_read_btrace (struct btrace_target_info *tinfo, { data_head = header->data_head; + /* Delete any leftover trace from the previous iteration. */ + VEC_free (btrace_block_s, btrace); + /* If there's new trace, let's read it. */ if (data_head != tinfo->data_head) { |