Package ghidra.program.model.pcode
Class HighParamID
java.lang.Object
ghidra.program.model.pcode.PcodeSyntaxTree
ghidra.program.model.pcode.HighParamID
- All Implemented Interfaces:
PcodeFactory
High-level abstraction associated with a low level function made up of assembly instructions.
Based on information the decompiler has produced after working on a function.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHighParamID
(Function function, Language language, CompilerSpec compilerSpec, PcodeDataTypeManager dtManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static ErrorHandler
getErrorHandler
(Object errOriginator, String targetName) getInput
(int i) int
int
getOutput
(int i) void
storeParametersToDatabase
(boolean storeDataTypes, SourceType srctype) Update any parameters for this Function from parameters defined in this map.void
storeReturnToDatabase
(boolean storeDataTypes, SourceType srctype) Update any parameters for this Function from parameters defined in this map.Methods inherited from class ghidra.program.model.pcode.PcodeSyntaxTree
buildStorage, clear, delete, findInputVarnode, findVarnode, findVarnode, getAddressFactory, getBasicBlocks, getDataTypeManager, getJoinAddress, getJoinStorage, getNumVarnodes, getOpRef, getPcodeOp, getPcodeOps, getPcodeOps, getRef, getSymbol, getVarnodes, getVarnodes, getVarnodes, insertAfter, insertBefore, locRange, newOp, newVarnode, newVarnode, setAddrTied, setDataType, setInput, setInput, setMergeGroup, setOpcode, setOutput, setPersistent, setUnaffected, setVolatile, unInsert, unlink, unSetInput, unSetOutput
-
Field Details
-
DECOMPILER_TAG_MAP
- See Also:
-
-
Constructor Details
-
HighParamID
public HighParamID(Function function, Language language, CompilerSpec compilerSpec, PcodeDataTypeManager dtManager) - Parameters:
function
- function associated with the higher level function abstraction.language
- language parser used to disassemble/get info on the language.compilerSpec
- the compiler spec.dtManager
- data type manager.
-
-
Method Details
-
getFunctionName
- Returns:
- get the name of the function
-
getFunctionAddress
- Returns:
- get the Address of the function
-
getModelName
- Returns:
- get the name of the model
-
getProtoExtraPop
- Returns:
- get the prototype extrapop information
-
getFunction
- Returns:
- get the associated low level function
-
getNumInputs
public int getNumInputs()- Returns:
- the number of inputs for functionparams
-
getInput
- Parameters:
i
- is the specific index to return- Returns:
- the specific input for functionparams
-
getNumOutputs
public int getNumOutputs()- Returns:
- the number of outputs for functionparams
-
getOutput
- Parameters:
i
- is the index of the specific output- Returns:
- the specific of output for functionparams
-
decode
- Overrides:
decode
in classPcodeSyntaxTree
- Throws:
DecoderException
-
getErrorHandler
-
storeReturnToDatabase
Update any parameters for this Function from parameters defined in this map.- Parameters:
storeDataTypes
- is true if data-types are getting storedsrctype
- function signature source
-
storeParametersToDatabase
Update any parameters for this Function from parameters defined in this map. Originally from LocalSymbolMap, but being modified.- Parameters:
storeDataTypes
- is true if data-types are being storedsrctype
- function signature source
-