Index: gdb-8.2/gdb/corelow.c =================================================================== --- gdb-8.2.orig/gdb/corelow.c +++ gdb-8.2/gdb/corelow.c @@ -452,7 +452,7 @@ core_target_open (const char *arg, int f which was the "main" thread. The latter case shouldn't usually happen, but we're dealing with input here, which can always be broken in different ways. */ - thread_info *thread = first_thread_of_inferior (current_inferior ()); + struct thread_info *thread = first_thread_of_inferior (current_inferior ()); if (thread == NULL) {