Debugger Class

Definition

Line 1560 of cmsxmdb/Debug.cm

Inheritance

Constructors & Destructor

public nothrow Debugger()

Member Functions

public void AddOutputLine(const String<uchar>& line, ulong address)
public override void Done()
public override bool Eof() const
public override void Exit(Process* process)
public void FindSymbolsMatchingPrefix(const String<uchar>& line, List<String<uchar>>& matches)
private uint GetInst(Process* process, ulong pc, long inst)
public ulong GetRegisterValue(byte regNumber)
public ulong GetSymbolValue(const String<char>& id)
public override void Init(Process* process)
public override String<char> ReadInputLine()
public ulong ReadMemoryContent(ulong address, byte size)
public String<uchar> ReadStringFromMemory(ulong address)
private long RemoveStepBreakpoints(Process* process, ulong address)
public override void ResetEof()
public void Run()
public override void Run(Process* process)
public void ShowAddress(ulong address)
private bool SkipStepBreakpoint(ulong address, ulong fp, Machine& machine)
public void StepInto()
public void StepOut()
public void StepOver()
public void ToggleBreakpoint(ulong address)
public void Trace(ulong count)
public override void WriteOutput(byte* buffer, long count)

Member Variables

private Breakpoints breakpoints
private CommandWindow commandWindow
private Disassembly disassembly
private bool eof
private InputWindow inputWindow
public long inst
public Machine* machine
private Memory memory
public ulong middle
public ulong numInstsInWindow
private Output output
public ulong pc
public Process* process
private ulong programEntryPoint
private UniquePtr<Screen> screen
public ulong start
private State state
private List<Breakpoint> stepBreakpoints
private SymbolTable* symbolTable

Constructor& Destructor Details

Debugger Constructor

public nothrow Debugger()

Definition
Line 1562 of cmsxmdb/Debug.cm


Member Function Details

AddOutputLine Member Function

public void AddOutputLine(const String<uchar>& line, ulong address)

Definition
Line 1816 of cmsxmdb/Debug.cm


Done Member Function

public override void Done()

Definition
Line 1697 of cmsxmdb/Debug.cm


Eof Member Function

public override bool Eof()

Definition
Line 1714 of cmsxmdb/Debug.cm


Exit Member Function

public override void Exit(Process* process)

Definition
Line 1701 of cmsxmdb/Debug.cm


FindSymbolsMatchingPrefix Member Function

public void FindSymbolsMatchingPrefix(const String<uchar>& line, List<String<uchar>>& matches)

Definition
Line 1957 of cmsxmdb/Debug.cm


GetInst Member Function

private uint GetInst(Process* process, ulong pc, long inst)

Definition
Line 1800 of cmsxmdb/Debug.cm


GetRegisterValue Member Function

public ulong GetRegisterValue(byte regNumber)

Definition
Line 1983 of cmsxmdb/Debug.cm


GetSymbolValue Member Function

public ulong GetSymbolValue(const String<char>& id)

Definition
Line 1929 of cmsxmdb/Debug.cm


Init Member Function

public override void Init(Process* process)

Definition
Line 1565 of cmsxmdb/Debug.cm


ReadInputLine Member Function

public override String<char> ReadInputLine()

Definition
Line 1722 of cmsxmdb/Debug.cm


ReadMemoryContent Member Function

public ulong ReadMemoryContent(ulong address, byte size)

Definition
Line 1999 of cmsxmdb/Debug.cm


ReadStringFromMemory Member Function

public String<uchar> ReadStringFromMemory(ulong address)

Definition
Line 1987 of cmsxmdb/Debug.cm


RemoveStepBreakpoints Member Function

private long RemoveStepBreakpoints(Process* process, ulong address)

Definition
Line 1786 of cmsxmdb/Debug.cm


ResetEof Member Function

public override void ResetEof()

Definition
Line 1718 of cmsxmdb/Debug.cm


Run Member Function

public void Run()

Definition
Line 1839 of cmsxmdb/Debug.cm


Run Member Function

public override void Run(Process* process)

Definition
Line 1601 of cmsxmdb/Debug.cm


ShowAddress Member Function

public void ShowAddress(ulong address)

Definition
Line 2041 of cmsxmdb/Debug.cm


SkipStepBreakpoint Member Function

private bool SkipStepBreakpoint(ulong address, ulong fp, Machine& machine)

Definition
Line 1768 of cmsxmdb/Debug.cm


StepInto Member Function

public void StepInto()

Definition
Line 1844 of cmsxmdb/Debug.cm


StepOut Member Function

public void StepOut()

Definition
Line 1893 of cmsxmdb/Debug.cm


StepOver Member Function

public void StepOver()

Definition
Line 1875 of cmsxmdb/Debug.cm


ToggleBreakpoint Member Function

public void ToggleBreakpoint(ulong address)

Definition
Line 1821 of cmsxmdb/Debug.cm


Trace Member Function

public void Trace(ulong count)

Definition
Line 2086 of cmsxmdb/Debug.cm


WriteOutput Member Function

public override void WriteOutput(byte* buffer, long count)

Definition
Line 1705 of cmsxmdb/Debug.cm