diff options
Diffstat (limited to 'gdb/btrace.c')
-rw-r--r-- | gdb/btrace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/btrace.c b/gdb/btrace.c index 632ebe10cbb..ba87e1633d1 100644 --- a/gdb/btrace.c +++ b/gdb/btrace.c @@ -765,6 +765,10 @@ btrace_clear (struct thread_info *tp) DEBUG ("clear thread %d (%s)", tp->num, target_pid_to_str (tp->ptid)); + /* Make sure btrace frames that may hold a pointer into the branch + trace data are destroyed. */ + reinit_frame_cache (); + btinfo = &tp->btrace; it = btinfo->begin; |