diff options
Diffstat (limited to 'gdb/btrace.c')
-rw-r--r-- | gdb/btrace.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/btrace.c b/gdb/btrace.c index d3ad0ab..7d75d22 100644 --- a/gdb/btrace.c +++ b/gdb/btrace.c @@ -2003,11 +2003,9 @@ btrace_clear (struct thread_info *tp) void btrace_free_objfile (struct objfile *objfile) { - struct thread_info *tp; - DEBUG ("free objfile"); - ALL_NON_EXITED_THREADS (tp) + for (thread_info *tp : all_non_exited_threads ()) btrace_clear (tp); } |