Module Name:    src
Committed By:   christos
Date:           Sat Apr 21 00:16:35 UTC 2012

Modified Files:
        src/external/gpl3/gdb/dist/gdb: nbsd-thread.c

Log Message:
If we are asked to step on ptid(-1,0,0), then step on our inferior_thread
instead, which is the main thread instead of the currently executing thread
which is not what we want, since we've been running and nother thread might
have just started.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gdb/dist/gdb/nbsd-thread.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-thread.c
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-thread.c:1.15 src/external/gpl3/gdb/dist/gdb/nbsd-thread.c:1.16
--- src/external/gpl3/gdb/dist/gdb/nbsd-thread.c:1.15	Wed Apr 11 17:41:59 2012
+++ src/external/gpl3/gdb/dist/gdb/nbsd-thread.c	Fri Apr 20 20:16:35 2012
@@ -241,6 +241,8 @@ nbsd_thread_resume (struct target_ops *o
      isn't anything we can do but pass it down to the ptrace call;
      given the flexibility of the LWP-to-thread mapping, this might or
      might not accomplish what the user wanted. */
+  if (ptid_get_pid(ptid) == -1)
+    ptid = inferior_ptid;
   beneath->to_resume (beneath, ptid, step, signo);
 
   cached_thread = minus_one_ptid;

Reply via email to