Single stepping and threads

Joel Brobecker brobecker@adacore.com
Thu Nov 30 23:31:00 GMT 2006


> That's correct.  GDB is unavoidably intrusive when it comes to
> thread scheduling.  The default behavior ("off"), is the least
> intrusive, and somewhat randomly, unpredictably intrusive.
> 
> "Step" would be more intrusive, and non-randomly so.  It will
> cause the "current" thread to be strongly preferred, and other
> threads will probably starve.
> 
> "On" is the most intrusive -- no other threads can run, and
> if there are any synchronization issues, the program will 
> eventually deadlock.

I personally am a big fan of "on", btw. Your points make me like
it even more...

-- 
Joel



More information about the Gdb mailing list