Pedro Alves wrote: > To be a bit clearer -- > > you've said that the pid was left as 42000 (I assume you meant > inferior_ptid, but that find_inferior no longer finds that inferior. > Where is the current inferior getting it's pid cleared out? Why > aren't we clearing inferior_ptid as well? OK, right. remote_close calls discard_all_inferiors -- it should also set inferior_ptid to null_ptid at the same time. How's this patch?