Class DebugDump
- java.lang.Object
-
- org.eclipse.cdt.utils.debug.tools.DebugDump
-
- All Implemented Interfaces:
IDebugEntryRequestor
public class DebugDump extends java.lang.Object implements IDebugEntryRequestor
DebugDump
-
-
Constructor Summary
Constructors Constructor Description DebugDump(java.io.OutputStream stream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacceptCaughtException(java.lang.String name, DebugType type, long address)Caught Exception.voidacceptFloatConst(java.lang.String name, double value)floating point constant.voidacceptIntegerConst(java.lang.String name, int value)Integer constant.voidacceptParameter(java.lang.String name, DebugType type, DebugParameterKind kind, long offset)Accept a parameter for the current function.voidacceptStatement(int line, long address)Statement in the compilation unit with a given address.voidacceptTypeConst(java.lang.String name, DebugType type, int value)Type constant: "const b = 0", b is a type enum.voidacceptTypeDef(java.lang.String name, DebugType type)Type definition.voidacceptVariable(java.lang.String name, DebugType type, DebugVariableKind kind, long address)Record a variable.voidenterCodeBlock(long offset)Enter a code block in a function.voidenterCompilationUnit(java.lang.String name, long address)Entering a compilation unit.voidenterFunction(java.lang.String name, DebugType type, boolean isGlobal, long address)Enter a function.voidenterInclude(java.lang.String name)Entering new include file in a compilation unit.voidexitCodeBlock(long offset)Exit of the current code block.voidexitCompilationUnit(long address)Exit the current compilation unit.voidexitFunction(long address)Exit the current function.voidexitInclude()Exit the current include file.static voidmain(java.lang.String[] args)
-
-
-
Method Detail
-
enterCompilationUnit
public void enterCompilationUnit(java.lang.String name, long address)Description copied from interface:IDebugEntryRequestorEntering a compilation unit.- Specified by:
enterCompilationUnitin interfaceIDebugEntryRequestoraddress- start of address of the cu.
-
exitCompilationUnit
public void exitCompilationUnit(long address)
Description copied from interface:IDebugEntryRequestorExit the current compilation unit.- Specified by:
exitCompilationUnitin interfaceIDebugEntryRequestor- Parameters:
address- end of compilation unit.
-
enterInclude
public void enterInclude(java.lang.String name)
Description copied from interface:IDebugEntryRequestorEntering new include file in a compilation unit.- Specified by:
enterIncludein interfaceIDebugEntryRequestor
-
exitInclude
public void exitInclude()
Description copied from interface:IDebugEntryRequestorExit the current include file.- Specified by:
exitIncludein interfaceIDebugEntryRequestor
-
enterFunction
public void enterFunction(java.lang.String name, DebugType type, boolean isGlobal, long address)Description copied from interface:IDebugEntryRequestorEnter a function.- Specified by:
enterFunctionin interfaceIDebugEntryRequestor- Parameters:
name- of the function/methodtype- type of the return value.isGlobal- return the visiblity of the function.address- the start address of the function.
-
exitFunction
public void exitFunction(long address)
Description copied from interface:IDebugEntryRequestorExit the current function.- Specified by:
exitFunctionin interfaceIDebugEntryRequestor- Parameters:
address- the address where the function ends.
-
enterCodeBlock
public void enterCodeBlock(long offset)
Description copied from interface:IDebugEntryRequestorEnter a code block in a function.- Specified by:
enterCodeBlockin interfaceIDebugEntryRequestor- Parameters:
offset- address of the block starts relative to the current function.
-
exitCodeBlock
public void exitCodeBlock(long offset)
Description copied from interface:IDebugEntryRequestorExit of the current code block.- Specified by:
exitCodeBlockin interfaceIDebugEntryRequestor- Parameters:
offset- the address of which the blocks ends relative to the current function.
-
acceptStatement
public void acceptStatement(int line, long address)Description copied from interface:IDebugEntryRequestorStatement in the compilation unit with a given address.- Specified by:
acceptStatementin interfaceIDebugEntryRequestor- Parameters:
line- lineno of the statement relative to the current compilation unit.address- address of the statement relative to the current function.
-
acceptIntegerConst
public void acceptIntegerConst(java.lang.String name, int value)Description copied from interface:IDebugEntryRequestorInteger constant.- Specified by:
acceptIntegerConstin interfaceIDebugEntryRequestor
-
acceptFloatConst
public void acceptFloatConst(java.lang.String name, double value)Description copied from interface:IDebugEntryRequestorfloating point constant.- Specified by:
acceptFloatConstin interfaceIDebugEntryRequestor
-
acceptTypeConst
public void acceptTypeConst(java.lang.String name, DebugType type, int value)Description copied from interface:IDebugEntryRequestorType constant: "const b = 0", b is a type enum.- Specified by:
acceptTypeConstin interfaceIDebugEntryRequestor
-
acceptParameter
public void acceptParameter(java.lang.String name, DebugType type, DebugParameterKind kind, long offset)Description copied from interface:IDebugEntryRequestorAccept a parameter for the current function.- Specified by:
acceptParameterin interfaceIDebugEntryRequestor- Parameters:
name- of the parametertype- of the parameterkind- of the parameteroffset- address of the parameter relative to the current function.
-
acceptVariable
public void acceptVariable(java.lang.String name, DebugType type, DebugVariableKind kind, long address)Description copied from interface:IDebugEntryRequestorRecord a variable.- Specified by:
acceptVariablein interfaceIDebugEntryRequestor
-
acceptCaughtException
public void acceptCaughtException(java.lang.String name, DebugType type, long address)Description copied from interface:IDebugEntryRequestorCaught Exception.- Specified by:
acceptCaughtExceptionin interfaceIDebugEntryRequestor
-
acceptTypeDef
public void acceptTypeDef(java.lang.String name, DebugType type)Description copied from interface:IDebugEntryRequestorType definition. IDebugEntryRequestor- Specified by:
acceptTypeDefin interfaceIDebugEntryRequestor- Parameters:
name- new name
-
main
public static void main(java.lang.String[] args)
-
-