Index: gdb-8.2/gdb/infcall.c =================================================================== --- gdb-8.2.orig/gdb/infcall.c +++ gdb-8.2/gdb/infcall.c @@ -422,7 +422,7 @@ static struct value * get_call_return_value (struct call_return_meta_info *ri) { struct value *retval = NULL; - thread_info *thr = inferior_thread (); + struct thread_info *thr = inferior_thread (); bool stack_temporaries = thread_stack_temporaries_enabled_p (thr); if (TYPE_CODE (ri->value_type) == TYPE_CODE_VOID)