|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.croesch.micro_debug.console.TraceManager
public final class TraceManager
Console view for the com.github.croesch.micro_debug.micro_debug.mic1.Mic1.
| Constructor Summary | |
|---|---|
TraceManager(IReadableMemory mem)
A manager that is able to trace some things of the processors current state. |
|
| Method Summary | |
|---|---|
boolean |
isTracing(Register r)
Returns whether the given Register is currently traced. |
boolean |
isTracingLocalVariable(int varNum)
Returns whether we are tracing the value of the local variable with the given number. |
boolean |
isTracingMacro()
Returns whether the macro code is currently traced. |
boolean |
isTracingMicro()
Returns whether the micro code is currently traced. |
void |
listAllRegisters()
Lists the values of all Registers. |
void |
listRegister(Register r)
Lists the value of a single Register. |
void |
traceLocalVariable(int varNum)
Start tracing the value of the local variable with the given number. |
void |
traceMacro()
Performs to trace the micro code. |
void |
traceMicro()
Performs to trace the micro code. |
void |
traceRegister()
Performs to trace all Registers. |
void |
traceRegister(Register r)
Performs to trace the given Register. |
void |
untraceLocalVariable(int varNum)
Ends tracing the value of the local variable with the given number. |
void |
untraceMacro()
Performs to not trace the macro code anymore. |
void |
untraceMicro()
Performs to not trace the micro code anymore. |
void |
untraceRegister()
Performs to not trace any Register. |
void |
untraceRegister(Register r)
Performs to not trace the given Register anymore. |
void |
update(MicroInstruction currentInstruction,
String macroCodeLine)
Tells the view to update itself. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TraceManager(IReadableMemory mem)
mem - the main memory of the processor, mustn't be null| Method Detail |
|---|
public void listAllRegisters()
Registers.
public void listRegister(Register r)
Register.
r - the Register to print with its value.public void traceRegister()
Registers.
public void traceRegister(Register r)
Register.
r - the Register to trace.public void untraceRegister()
Register.
public void untraceRegister(Register r)
Register anymore.
r - the Register not being traced anymore.public boolean isTracing(Register r)
Register is currently traced.
r - the Register to check, if it's traced
true, if the Register is currently tracedfalse otherwise.public void traceMicro()
public void untraceMicro()
public void traceMacro()
public void untraceMacro()
public boolean isTracingMicro()
true, if the micro code is currently tracedfalse otherwise.public boolean isTracingMacro()
true, if the macro code is currently tracedfalse otherwise.
public void update(MicroInstruction currentInstruction,
String macroCodeLine)
currentInstruction - the instruction that is now executedmacroCodeLine - the formatted macro code line being executed, or null if no new macro code line
has been reachedpublic void traceLocalVariable(int varNum)
varNum - the local number of this variable as an offset to the LV.public void untraceLocalVariable(int varNum)
varNum - the local number of this variable as an offset to the LV.public boolean isTracingLocalVariable(int varNum)
varNum - the local number of this variable as an offset to the LV.
true if we are tracing the local variable with the given number in the current macro code
method,false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||