Module Name: src
Committed By: christos
Date: Fri Dec 1 22:22:40 UTC 2017
Modified Files:
src/external/gpl3/gdb/dist/gdb: nbsd-nat.c
Log Message:
don't suspend other threads if we are resuming.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gdb/dist/gdb/nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.3 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.4
--- src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.3 Fri Dec 1 17:20:44 2017
+++ src/external/gpl3/gdb/dist/gdb/nbsd-nat.c Fri Dec 1 17:22:40 2017
@@ -556,7 +556,12 @@ nbsd_resume (struct target_ops *ops,
ptid_get_tid (ptid));
if (ptid_lwp_p (ptid))
{
- /* If ptid is a specific LWP, suspend all other LWPs in the process. */
+ /* FreeBSD: If ptid is a specific LWP, suspend all other LWPs in the
+ * process.
+ */
+ /* NetBSD, this function is about resuming so we only deal with
+ * the thread we've been asked to work with
+ */
struct thread_info *tp;
int request;
@@ -567,8 +572,10 @@ nbsd_resume (struct target_ops *ops,
if (ptid_get_lwp (tp->ptid) == ptid_get_lwp (ptid))
request = PT_RESUME;
+#ifndef __NetBSD__
else
request = PT_SUSPEND;
+#endif
if (ptrace (request, ptid_get_pid (tp->ptid), NULL,
ptid_get_lwp (tp->ptid)) == -1)