Single stepping and threads
Michael Snyder
Michael.Snyder@palmsource.com
Fri Dec 1 22:43:00 GMT 2006
On Thu, 2006-11-30 at 15:55 -0800, Joel Brobecker wrote:
> > Default on would be a disaster -- most threaded programs would
> > not behave even remotely the same under the debugger as they would
> > solo.
> >
> > In fact, many would deadlock almost immediately.
>
> Something just occured to me that was clear but maybe isn't. Is the
> scheduling affected when you do a "continue"? I assumed that, if you
> do a "run" or "continue", the actual scheduling policy is irrelevant,
> and all threads are resumed.
"Schedlock step" does not affect the continue behavior,
but "schedlock on" does. With "on", no other thread can
execute, period.
More information about the Gdb
mailing list