Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix for thread debugging in the presence of software single  step
@ 2006-11-28 18:42 Nitin Gupta
  2006-11-28 18:47 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Nitin Gupta @ 2006-11-28 18:42 UTC (permalink / raw)
  To: gdb; +Cc: Jim Blandy, Rob Quill

Following patch fixes for thread debugging in the presence of software 
single step:
  Only allow one thread to single-step if SOFTWARE_SINGLE_STEP_P ()

If it looks OK,  Could someone please check it in?

Index: gdb-6.5/gdb/infrun.c
===================================================================
--- gdb-6.5.orig/gdb/infrun.c
+++ gdb-6.5/gdb/infrun.c
@@ -618,10 +618,11 @@
        }

       if ((scheduler_mode == schedlock_on)
-         || (scheduler_mode == schedlock_step
-             && (step || singlestep_breakpoints_inserted_p)))
+         || (scheduler_mode == schedlock_step && step)
+         || singlestep_breakpoints_inserted_p)
        {
          /* User-settable 'scheduler' mode requires solo thread resume. */
+         /* Software single-step doesn't work right with multiple 
threads.  */
          resume_ptid = inferior_ptid;
        }


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

end of thread, other threads:[~2006-11-28 19:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-28 18:42 [PATCH] Fix for thread debugging in the presence of software single step Nitin Gupta
2006-11-28 18:47 ` Daniel Jacobowitz
2006-11-28 19:01   ` Ulrich Weigand

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