mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
1b681e44e0
commit
e46fae884d
1 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue