Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* lin-lwp.c fix
@ 2001-03-30 11:46 Mark Kettenis
  2001-04-02 21:50 ` Kevin Buettner
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Kettenis @ 2001-03-30 11:46 UTC (permalink / raw)
  To: gdb-patches; +Cc: kevinb

This patch fixes a problem in lin-lwp.c:lin_lwp_resume().  I think
this fixes the problem Kevin reported earlier this week (but I'd
appreciate it if you could check if that's really true Kevin), and
supersedes the patch given in my reply to his bug report.

Checked in.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
	we're absolutely sure we're going to resume it.

Index: lin-lwp.c
===================================================================
RCS file: /cvs/src/src/gdb/lin-lwp.c,v
retrieving revision 1.6
diff -u -p -r1.6 lin-lwp.c
--- lin-lwp.c 2001/03/01 01:39:21 1.6
+++ lin-lwp.c 2001/03/30 19:42:05
@@ -439,10 +439,6 @@ lin_lwp_resume (int pid, int step, enum 
     {
       pid = GET_LWP (lp->pid);
 
-      /* Mark LWP as not stopped to prevent it from being continued by
-	 resume_callback.  */
-      lp->stopped = 0;
-
       /* Remember if we're stepping.  */
       lp->step = step;
 
@@ -455,6 +451,10 @@ lin_lwp_resume (int pid, int step, enum 
 	  gdb_assert (signo == TARGET_SIGNAL_0);
 	  return;
 	}
+
+      /* Mark LWP as not stopped to prevent it from being continued by
+	 resume_callback.  */
+      lp->stopped = 0;
     }
 
   if (resume_all)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-02 21:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-30 11:46 lin-lwp.c fix Mark Kettenis
2001-04-02 21:50 ` Kevin Buettner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox