diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gnu-nat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 1d3b5f1..9c53e3c 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -1603,7 +1603,10 @@ rewait: available thread. */ else - ptid = inferior_ptid; /* let wait_for_inferior handle exit case */ + { + /* The process exited. */ + ptid = ptid_t (inf->pid); + } } if (thread |