Package ghidra.program.model.lang
Class InjectPayloadCallfixup
java.lang.Object
ghidra.program.model.lang.InjectPayloadSleigh
ghidra.program.model.lang.InjectPayloadCallfixup
- All Implemented Interfaces:
InjectPayload
- Direct Known Subclasses:
InjectPayloadCallfixupError
-
Nested Class Summary
Nested classes/interfaces inherited from interface ghidra.program.model.lang.InjectPayload
InjectPayload.InjectParameter
-
Field Summary
Fields inherited from class ghidra.program.model.lang.InjectPayloadSleigh
name, source, type
Fields inherited from interface ghidra.program.model.lang.InjectPayload
CALLFIXUP_TYPE, CALLMECHANISM_TYPE, CALLOTHERFIXUP_TYPE, EXECUTABLEPCODE_TYPE
-
Constructor Summary
ModifierConstructorDescriptionprotected
InjectPayloadCallfixup
(ConstructTpl pcode, InjectPayloadCallfixup failedPayload) Constructor for a partial clone of a payload whose p-code failed to parse.protected
InjectPayloadCallfixup
(ConstructTpl pcode, String nm) Construct a dummy payloadInjectPayloadCallfixup
(String sourceName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Encode configuration parameters as a<pcode>
element to streamboolean
Determine if this InjectPayload and another instance are equivalent (have the same name and generate the same p-code)void
restoreXml
(XmlPullParser parser, SleighLanguage language) Restore the payload from an XML stream.Methods inherited from class ghidra.program.model.lang.InjectPayloadSleigh
getDummyPcode, getInput, getName, getOutput, getParamShift, getPcode, getSource, getType, inject, isErrorPlaceholder, isFallThru, isIncidentalCopy, orderParameters, setInputParameters, setOutputParameters, setTemplate
-
Field Details
-
targetSymbolNames
-
-
Constructor Details
-
InjectPayloadCallfixup
Constructor for a partial clone of a payload whose p-code failed to parse.- Parameters:
pcode
- is the p-code to substitutefailedPayload
- is the failed callfixup
-
InjectPayloadCallfixup
Construct a dummy payload- Parameters:
pcode
- is the dummy p-code sequence to usenm
- is the name of the payload
-
InjectPayloadCallfixup
-
-
Method Details
-
getTargets
-
encode
Description copied from interface:InjectPayload
Encode configuration parameters as a<pcode>
element to stream- Specified by:
encode
in interfaceInjectPayload
- Overrides:
encode
in classInjectPayloadSleigh
- Parameters:
encoder
- is the stream encoder- Throws:
IOException
- for errors writing to the underlying stream
-
restoreXml
Description copied from interface:InjectPayload
Restore the payload from an XML stream. The root expected document is the<pcode>
tag, which may be wrapped with another tag by the derived class.- Specified by:
restoreXml
in interfaceInjectPayload
- Overrides:
restoreXml
in classInjectPayloadSleigh
- Parameters:
parser
- is the XML streamlanguage
- is used to resolve registers and address spaces- Throws:
XmlParseException
- for badly formed XML
-
isEquivalent
Description copied from interface:InjectPayload
Determine if this InjectPayload and another instance are equivalent (have the same name and generate the same p-code)- Specified by:
isEquivalent
in interfaceInjectPayload
- Overrides:
isEquivalent
in classInjectPayloadSleigh
- Parameters:
obj
- is the other payload- Returns:
- true if they are equivalent
-