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:
parent
21a8a0e8d8
commit
dce9fa5722
1 changed files with 6 additions and 6 deletions
|
@ -67,7 +67,7 @@ public class CThread extends CObject implements ICDIThread {
|
||||||
MIStackListFrames frames = factory.createMIStackListFrames();
|
MIStackListFrames frames = factory.createMIStackListFrames();
|
||||||
try {
|
try {
|
||||||
ICDIThread oldThread = getCTarget().getCurrentThread();
|
ICDIThread oldThread = getCTarget().getCurrentThread();
|
||||||
getCTarget().setCurrentThread(this);
|
getCTarget().setCurrentThread(this, false);
|
||||||
mi.postCommand(frames);
|
mi.postCommand(frames);
|
||||||
MIStackListFramesInfo info = frames.getMIStackListFramesInfo();
|
MIStackListFramesInfo info = frames.getMIStackListFramesInfo();
|
||||||
if (info == null) {
|
if (info == null) {
|
||||||
|
@ -78,7 +78,7 @@ public class CThread extends CObject implements ICDIThread {
|
||||||
for (int i = 0; i < stack.length; i++) {
|
for (int i = 0; i < stack.length; i++) {
|
||||||
stack[i] = new StackFrame(this, miFrames[i]);
|
stack[i] = new StackFrame(this, miFrames[i]);
|
||||||
}
|
}
|
||||||
getCTarget().setCurrentThread(oldThread);
|
getCTarget().setCurrentThread(oldThread, false);
|
||||||
return stack;
|
return stack;
|
||||||
} catch (MIException e) {
|
} catch (MIException e) {
|
||||||
//throw new CDIException(e.getMessage());
|
//throw new CDIException(e.getMessage());
|
||||||
|
@ -100,13 +100,13 @@ public class CThread extends CObject implements ICDIThread {
|
||||||
MIStackInfoDepth depth = factory.createMIStackInfoDepth();
|
MIStackInfoDepth depth = factory.createMIStackInfoDepth();
|
||||||
try {
|
try {
|
||||||
ICDIThread oldThread = getCTarget().getCurrentThread();
|
ICDIThread oldThread = getCTarget().getCurrentThread();
|
||||||
getCTarget().setCurrentThread(this);
|
getCTarget().setCurrentThread(this, false);
|
||||||
mi.postCommand(depth);
|
mi.postCommand(depth);
|
||||||
MIStackInfoDepthInfo info = depth.getMIStackInfoDepthInfo();
|
MIStackInfoDepthInfo info = depth.getMIStackInfoDepthInfo();
|
||||||
if (info == null) {
|
if (info == null) {
|
||||||
throw new CDIException("No answer");
|
throw new CDIException("No answer");
|
||||||
}
|
}
|
||||||
getCTarget().setCurrentThread(oldThread);
|
getCTarget().setCurrentThread(oldThread, false);
|
||||||
return info.getDepth();
|
return info.getDepth();
|
||||||
} catch (MIException e) {
|
} catch (MIException e) {
|
||||||
throw new MI2CDIException(e);
|
throw new MI2CDIException(e);
|
||||||
|
@ -126,7 +126,7 @@ public class CThread extends CObject implements ICDIThread {
|
||||||
MIStackListFrames frames = factory.createMIStackListFrames(low, high);
|
MIStackListFrames frames = factory.createMIStackListFrames(low, high);
|
||||||
try {
|
try {
|
||||||
ICDIThread oldThread = getCTarget().getCurrentThread();
|
ICDIThread oldThread = getCTarget().getCurrentThread();
|
||||||
getCTarget().setCurrentThread(this);
|
getCTarget().setCurrentThread(this, false);
|
||||||
mi.postCommand(frames);
|
mi.postCommand(frames);
|
||||||
MIStackListFramesInfo info = frames.getMIStackListFramesInfo();
|
MIStackListFramesInfo info = frames.getMIStackListFramesInfo();
|
||||||
if (info == null) {
|
if (info == null) {
|
||||||
|
@ -137,7 +137,7 @@ public class CThread extends CObject implements ICDIThread {
|
||||||
for (int i = 0; i < stack.length; i++) {
|
for (int i = 0; i < stack.length; i++) {
|
||||||
stack[i] = new StackFrame(this, miFrames[i]);
|
stack[i] = new StackFrame(this, miFrames[i]);
|
||||||
}
|
}
|
||||||
getCTarget().setCurrentThread(oldThread);
|
getCTarget().setCurrentThread(oldThread, false);
|
||||||
return stack;
|
return stack;
|
||||||
} catch (MIException e) {
|
} catch (MIException e) {
|
||||||
//throw new CDIException(e.getMessage());
|
//throw new CDIException(e.getMessage());
|
||||||
|
|
Loading…
Add table
Reference in a new issue