diff options
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 2097cb9..e2601e0 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -2085,6 +2085,10 @@ linux_handle_extended_wait (struct lwp_info *lp, int status, ourstatus->value.execd_pathname = xstrdup (linux_child_pid_to_exec_file (NULL, pid)); + /* The thread that execed must have been resumed, but, when a + thread execs, it changes its tid to the tgid, and the old + tgid thread might have not been resumed. */ + lp->resumed = 1; return 0; } |