mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
save and restore the current thread.
This commit is contained in:
parent
b3e4fda188
commit
f3fee4f762
1 changed files with 2 additions and 0 deletions
|
@ -60,6 +60,7 @@ public class CThread extends CObject implements ICDIThread {
|
|||
CommandFactory factory = mi.getCommandFactory();
|
||||
MIStackListFrames frames = factory.createMIStackListFrames();
|
||||
try {
|
||||
ICDIThread oldThread = getCTarget().getCurrentThread();
|
||||
getCTarget().setCurrentThread(this);
|
||||
mi.postCommand(frames);
|
||||
MIStackListFramesInfo info = frames.getMIStackListFramesInfo();
|
||||
|
@ -71,6 +72,7 @@ public class CThread extends CObject implements ICDIThread {
|
|||
for (int i = 0; i < stack.length; i++) {
|
||||
stack[i] = new StackFrame(this, miFrames[i]);
|
||||
}
|
||||
getCTarget().setCurrentThread(oldThread);
|
||||
return stack;
|
||||
} catch (MIException e) {
|
||||
//throw new CDIException(e.getMessage());
|
||||
|
|
Loading…
Add table
Reference in a new issue