diff options
author | Alan Hayward <alan.hayward@arm.com> | 2019-01-28 16:21:00 +0000 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2019-01-28 16:21:00 +0000 |
commit | 9ee194135535acbd7b786d685666badbb59e536a (patch) | |
tree | 516c75ece762925dd65d2e467fb2e32616b28bac /gdb | |
parent | 453f8e1e4918171bc12e4d03aab7ee8360dfcfef (diff) | |
download | gdb-9ee194135535acbd7b786d685666badbb59e536a.zip gdb-9ee194135535acbd7b786d685666badbb59e536a.tar.gz gdb-9ee194135535acbd7b786d685666badbb59e536a.tar.bz2 |
Revert "gdbserver: When attaching, add process before lwps"
This reverts commit f084d335110408aa08ea06c7cb217ae19697db3d.
Accidently pushed. Reverted.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/linux-low.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index c6d9417..44016d2 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -1188,8 +1188,6 @@ linux_attach (unsigned long pid) ptid_t ptid = ptid_t (pid, pid, 0); int err; - proc = linux_add_process (pid, 1); - /* Attach to PID. We will check for other threads soon. */ err = linux_attach_lwp (ptid); @@ -1200,6 +1198,8 @@ linux_attach (unsigned long pid) error ("Cannot attach to process %ld: %s", pid, reason.c_str ()); } + proc = linux_add_process (pid, 1); + /* Don't ignore the initial SIGSTOP if we just attached to this process. It will be collected by wait shortly. */ initial_thread = find_thread_ptid (ptid_t (pid, pid, 0)); |