Index: gdb-8.2/gdb/target.c =================================================================== --- gdb-8.2.orig/gdb/target.c +++ gdb-8.2/gdb/target.c @@ -2025,7 +2025,7 @@ target_pre_inferior (int from_tty) static int dispose_inferior (struct inferior *inf, void *args) { - thread_info *thread = any_thread_of_inferior (inf); + struct thread_info *thread = any_thread_of_inferior (inf); if (thread != NULL) { switch_to_thread (thread);