Class BuildIdDebugInfo
java.lang.Object
ghidra.app.util.bin.format.dwarf.external.BuildIdDebugInfo
- All Implemented Interfaces:
ExternalDebugInfo
Represents
ExternalDebugInfo found in a build-id property embedded in an ELF file.-
Constructor Summary
ConstructorsConstructorDescriptionBuildIdDebugInfo(byte[] buildId) Creates a newBuildIdDebugInfofrom the bytes of its hash digestBuildIdDebugInfo(byte[] buildId, ObjectType objectType, String extra) Creates a newBuildIdDebugInfofrom the bytes of its hash digest, a specifier for the type of the object being pointed to, and an optional path used ObjectType.SOURCE instances. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic BuildIdDebugInfofromProgram(Program program) Return the build-id.getExtra()Returns extra info used by ObjectTypes that need it.Returns ObjectType that this build-id specifier points to.inthashCode()toString()withType(ObjectType newObjectType, String newExtra) Returns a new BuildIdDebugInfo instance, pointing to the same build-id hash but an alternate object associated with the base debug file.
-
Constructor Details
-
BuildIdDebugInfo
public BuildIdDebugInfo(byte[] buildId) Creates a newBuildIdDebugInfofrom the bytes of its hash digest- Parameters:
buildId- bytes of the hash digest
-
BuildIdDebugInfo
Creates a newBuildIdDebugInfofrom the bytes of its hash digest, a specifier for the type of the object being pointed to, and an optional path used ObjectType.SOURCE instances.- Parameters:
buildId- build-id hash digest found in ".note.gnu.build-id" sectionobjectType-ObjectTypespecifies what kind of debug file is specified by the other infoextra- additional information used byObjectType.SOURCE
-
-
Method Details
-
fromProgram
-
getBuildIdHexString
-
getObjectType
Returns ObjectType that this build-id specifier points to.- Returns:
- ObjectType that this build-id specifier points to
-
getExtra
Returns extra info used by ObjectTypes that need it.- Returns:
- extra info used by ObjectTypes that need it
-
withType
Returns a new BuildIdDebugInfo instance, pointing to the same build-id hash but an alternate object associated with the base debug file.- Parameters:
newObjectType- the newObjectTypenewExtra- extra information used by the ObjectType to find the target file- Returns:
- a new BuildIdDebugInfo instance, pointing to the same build-id hash but an alternate object associated with the base debug file
-
hashCode
-
equals
-
toString
-