mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 04:15:35 +02:00
Send an update when resetting the stackframe or the thread id.
This commit is contained in:
parent
b739b9bde4
commit
51e4d9609a
2 changed files with 15 additions and 1 deletions
|
@ -102,6 +102,12 @@ public class CTarget implements ICDITarget {
|
|||
} catch (MIException e) {
|
||||
throw new CDIException(e.getMessage());
|
||||
}
|
||||
|
||||
// Resetting threads may change the value of
|
||||
// some variables like Register. Send an update
|
||||
// To generate changeEvents.
|
||||
VariableManager varMgr = session.getVariableManager();
|
||||
varMgr.update();
|
||||
}
|
||||
|
||||
// We should be allright now.
|
||||
|
|
|
@ -93,7 +93,8 @@ public class CThread extends CObject implements ICDIThread {
|
|||
}
|
||||
|
||||
public void setCurrentStackFrame(StackFrame stackframe) throws CDIException {
|
||||
MISession mi = getCTarget().getCSession().getMISession();
|
||||
CSession session = getCTarget().getCSession();
|
||||
MISession mi = session.getMISession();
|
||||
CommandFactory factory = mi.getCommandFactory();
|
||||
int frameNum = 0;
|
||||
if (stackframe != null) {
|
||||
|
@ -109,6 +110,13 @@ public class CThread extends CObject implements ICDIThread {
|
|||
throw new CDIException("No answer");
|
||||
}
|
||||
currentFrame = stackframe;
|
||||
|
||||
// Resetting threads may change the value of
|
||||
// some variables like Register. Send an update
|
||||
// To generate changeEvents.
|
||||
VariableManager varMgr = session.getVariableManager();
|
||||
varMgr.update();
|
||||
|
||||
} catch (MIException e) {
|
||||
throw new CDIException(e.getMessage());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue