Index: gdb-8.2/gdb/top.c =================================================================== --- gdb-8.2.orig/gdb/top.c +++ gdb-8.2/gdb/top.c @@ -1504,7 +1504,7 @@ kill_or_detach (struct inferior *inf, vo if (inf->pid == 0) return 0; - thread_info *thread = any_thread_of_inferior (inf); + struct thread_info *thread = any_thread_of_inferior (inf); if (thread != NULL) { switch_to_thread (thread);