1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Use setCurrentFrame() with event disable.

This commit is contained in:
Alain Magloire 2003-01-09 20:55:34 +00:00
parent 21a8a0e8d8
commit dce9fa5722

View file

@ -67,7 +67,7 @@ public class CThread extends CObject implements ICDIThread {
MIStackListFrames frames = factory.createMIStackListFrames();
try {
ICDIThread oldThread = getCTarget().getCurrentThread();
getCTarget().setCurrentThread(this);
getCTarget().setCurrentThread(this, false);
mi.postCommand(frames);
MIStackListFramesInfo info = frames.getMIStackListFramesInfo();
if (info == null) {
@ -78,7 +78,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);
getCTarget().setCurrentThread(oldThread, false);
return stack;
} catch (MIException e) {
//throw new CDIException(e.getMessage());
@ -100,13 +100,13 @@ public class CThread extends CObject implements ICDIThread {
MIStackInfoDepth depth = factory.createMIStackInfoDepth();
try {
ICDIThread oldThread = getCTarget().getCurrentThread();
getCTarget().setCurrentThread(this);
getCTarget().setCurrentThread(this, false);
mi.postCommand(depth);
MIStackInfoDepthInfo info = depth.getMIStackInfoDepthInfo();
if (info == null) {
throw new CDIException("No answer");
}
getCTarget().setCurrentThread(oldThread);
getCTarget().setCurrentThread(oldThread, false);
return info.getDepth();
} catch (MIException e) {
throw new MI2CDIException(e);
@ -126,7 +126,7 @@ public class CThread extends CObject implements ICDIThread {
MIStackListFrames frames = factory.createMIStackListFrames(low, high);
try {
ICDIThread oldThread = getCTarget().getCurrentThread();
getCTarget().setCurrentThread(this);
getCTarget().setCurrentThread(this, false);
mi.postCommand(frames);
MIStackListFramesInfo info = frames.getMIStackListFramesInfo();
if (info == null) {
@ -137,7 +137,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);
getCTarget().setCurrentThread(oldThread, false);
return stack;
} catch (MIException e) {
//throw new CDIException(e.getMessage());