Ide/Debuggers/Gdb_MI2 : stop ALL threads after a breakpoint is hit instead of letting other threads run

git-svn-id: svn://ultimatepp.org/upp/trunk@4882 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
micio 2012-04-30 08:32:05 +00:00
parent 1b681e44e0
commit e46fae884d

View file

@ -109,7 +109,16 @@ void Gdb_MI2::Run()
}
Unlock();
if(stopped)
{
CheckStopReason();
// as we are in non-stop mode, to allow async break to work
// we shall stop ALL running threads here, otherwise we'll have
// problems when single stepping a gui MT app
// single step will be done so for a single thread, while other
// are idle. Maybe we could make this behaviour optional
MICmd("exec-interrupt --all");
}
started = stopped = false;
firstRun = false;