Package ghidra.test
Class ClassicSampleX86ProgramBuilder
- java.lang.Object
-
- ghidra.program.database.ProgramBuilder
-
- ghidra.test.ClassicSampleX86ProgramBuilder
-
public class ClassicSampleX86ProgramBuilder extends ProgramBuilder
-
-
Field Summary
-
Fields inherited from class ghidra.program.database.ProgramBuilder
_8051, _AARCH64, _ARM, _MIPS, _MIPS_6432, _PPC_32, _PPC_64, _PPC_6432, _SPARC64, _TOY, _TOY_BE, _TOY_BE_POSITIVE, _TOY_LANGUAGE_PREFIX, _TOY_LE, _TOY_WORDSIZE2_BE, _TOY_WORDSIZE2_LE, _TOY64_BE, _TOY64_LE, _X64, _X86, _X86_16_REAL_MODE
-
-
Constructor Summary
Constructors Constructor Description ClassicSampleX86ProgramBuilder()
Construct sample program builder using the x86 language and default compiler spec.ClassicSampleX86ProgramBuilder(boolean disableAnalysis)
Construct sample program builder using the x86 language and default compiler spec.ClassicSampleX86ProgramBuilder(java.lang.String name, boolean disableAnalysis)
Construct sample program builder using the x86 language and default compiler spec.ClassicSampleX86ProgramBuilder(java.lang.String name, boolean disableAnalysis, java.lang.Object consumer)
Construct sample program builder using the x86 language and default compiler spec.
-
Method Summary
-
Methods inherited from class ghidra.program.database.ProgramBuilder
addCategory, addDataType, addFunctionVariable, addr, addr, analyze, applyDataType, applyDataType, applyFixedLengthDataType, applyStringDataType, bindExternalLibrary, clearCodeUnits, createBookmark, createClassNamespace, createComment, createEmptyFunction, createEmptyFunction, createEmptyFunction, createEmptyFunction, createEmptyFunction, createEncodedString, createEntryPoint, createEquate, createExternalFunction, createExternalFunction, createExternalLibraries, createExternalReference, createExternalReference, createExternalReference, createFragment, createFunction, createFunctionComment, createLabel, createLabel, createLibrary, createLibrary, createLocalVariable, createMemory, createMemory, createMemory, createMemoryCallReference, createMemoryJumpReference, createMemoryReadReference, createMemoryReference, createMemoryReference, createNamespace, createNamespace, createNamespace, createOffsetMemReference, createOverlayMemory, createProgramTree, createRegisterReference, createRegisterReference, createStackReference, createString, createString, createUninitializedMemory, deleteReference, disassemble, disassemble, disassemble, disassemble, disassembleArm, dispose, endTransaction, endTransaction, getCompilerSpec, getLanguage, getNamespace, getNamespace, getOrCreateModule, getProgram, getRegister, setAnalysisEnabled, setAnalyzed, setBytes, setBytes, setBytes, setBytes, setChanged, setExecute, setFallthrough, setIntProperty, setName, setObjectProperty, setProperty, setRead, setRecordChanges, setRegisterValue, setStringProperty, setWrite, startTransaction, withTransaction
-
-
-
-
Constructor Detail
-
ClassicSampleX86ProgramBuilder
public ClassicSampleX86ProgramBuilder() throws java.lang.Exception
Construct sample program builder using the x86 language and default compiler spec. A set of predefined memory bytes, code units and functions will be added. This builder object will be the program consumer and must be disposed to properly release the program.- Throws:
java.lang.Exception
- if an unexpected exception happens
-
ClassicSampleX86ProgramBuilder
public ClassicSampleX86ProgramBuilder(boolean disableAnalysis) throws java.lang.Exception
Construct sample program builder using the x86 language and default compiler spec. A set of predefined memory bytes, code units and functions will be added. This builder object will be the program consumer and must be disposed to properly release the program.- Parameters:
disableAnalysis
- if true, the analysis manager will be disabled- Throws:
java.lang.Exception
- if an unexpected exception happens
-
ClassicSampleX86ProgramBuilder
public ClassicSampleX86ProgramBuilder(java.lang.String name, boolean disableAnalysis) throws java.lang.Exception
Construct sample program builder using the x86 language and default compiler spec. A set of predefined memory bytes, code units and functions will be added. This builder object will be the program consumer and must be disposed to properly release the program.- Parameters:
name
- program namedisableAnalysis
- if true, the analysis manager will be disabled- Throws:
java.lang.Exception
- if an unexpected exception happens
-
ClassicSampleX86ProgramBuilder
public ClassicSampleX86ProgramBuilder(java.lang.String name, boolean disableAnalysis, java.lang.Object consumer) throws java.lang.Exception
Construct sample program builder using the x86 language and default compiler spec. A set of predefined memory bytes, code units and functions will be added.- Parameters:
name
- program namedisableAnalysis
- if true, the analysis manager will be disabledconsumer
- program consumer (if null this builder will be used as consumer and must be disposed to release program)- Throws:
java.lang.Exception
-
-