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
public class InjectPayloadCallfixup extends InjectPayloadSleigh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ghidra.program.model.lang.InjectPayload
InjectPayload.InjectParameter
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
targetSymbolNames
-
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
Constructors Modifier Constructor Description protected
InjectPayloadCallfixup(ConstructTpl pcode, InjectPayloadCallfixup failedPayload)
Constructor for a partial clone of a payload whose p-code failed to parse.protected
InjectPayloadCallfixup(ConstructTpl pcode, java.lang.String nm)
Construct a dummy payloadInjectPayloadCallfixup(java.lang.String sourceName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<java.lang.String>
getTargets()
int
hashCode()
void
restoreXml(XmlPullParser parser, SleighLanguage language)
Restore the payload from an XML stream.void
saveXml(java.lang.StringBuilder buffer)
Write out configuration parameters as a \XML tag -
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
-
-
-
-
Constructor Detail
-
InjectPayloadCallfixup
protected InjectPayloadCallfixup(ConstructTpl pcode, InjectPayloadCallfixup failedPayload)
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
protected InjectPayloadCallfixup(ConstructTpl pcode, java.lang.String nm)
Construct a dummy payload- Parameters:
pcode
- is the dummy p-code sequence to usenm
- is the name of the payload
-
InjectPayloadCallfixup
public InjectPayloadCallfixup(java.lang.String sourceName)
-
-
Method Detail
-
getTargets
public java.util.List<java.lang.String> getTargets()
-
saveXml
public void saveXml(java.lang.StringBuilder buffer)
Description copied from interface:InjectPayload
Write out configuration parameters as a \XML tag - Specified by:
saveXml
in interfaceInjectPayload
- Overrides:
saveXml
in classInjectPayloadSleigh
- Parameters:
buffer
- is the stream to write to
-
restoreXml
public void restoreXml(XmlPullParser parser, SleighLanguage language) throws XmlParseException
Description copied from interface:InjectPayload
Restore the payload from an XML stream. The root expected document is the \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
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classInjectPayloadSleigh
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classInjectPayloadSleigh
-
-