* infrun.c (wait_for_inferior): Mark registers as invalid when