1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-01 13:25:45 +02:00

Send an update when resetting the stackframe or the thread id.

This commit is contained in:
Alain Magloire 2002-09-20 19:21:20 +00:00
parent b739b9bde4
commit 51e4d9609a
2 changed files with 15 additions and 1 deletions

View file

@ -102,6 +102,12 @@ public class CTarget implements ICDITarget {
} catch (MIException e) { } catch (MIException e) {
throw new CDIException(e.getMessage()); 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. // We should be allright now.

View file

@ -93,7 +93,8 @@ public class CThread extends CObject implements ICDIThread {
} }
public void setCurrentStackFrame(StackFrame stackframe) throws CDIException { public void setCurrentStackFrame(StackFrame stackframe) throws CDIException {
MISession mi = getCTarget().getCSession().getMISession(); CSession session = getCTarget().getCSession();
MISession mi = session.getMISession();
CommandFactory factory = mi.getCommandFactory(); CommandFactory factory = mi.getCommandFactory();
int frameNum = 0; int frameNum = 0;
if (stackframe != null) { if (stackframe != null) {
@ -109,6 +110,13 @@ public class CThread extends CObject implements ICDIThread {
throw new CDIException("No answer"); throw new CDIException("No answer");
} }
currentFrame = stackframe; 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) { } catch (MIException e) {
throw new CDIException(e.getMessage()); throw new CDIException(e.getMessage());
} }