mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
GP-4682 cleanup eBPF analyzers and BPF helper function identification
This commit is contained in:
parent
2a03e142bc
commit
eb5e6a323a
8 changed files with 558 additions and 1183 deletions
|
@ -1243,7 +1243,8 @@ abstract public class DataTypeManagerDB implements DataTypeManager {
|
|||
sourceArchive.getArchiveType() == ArchiveType.BUILT_IN) {
|
||||
resolvedDataType = resolveBuiltIn(dataType);
|
||||
}
|
||||
else if (sourceArchive == null || dataType.getUniversalID() == null) {
|
||||
else if (sourceArchive == null || dataType.getUniversalID() == null ||
|
||||
sourceArchive.getArchiveType() == ArchiveType.TEMPORARY) {
|
||||
// if the dataType has no source or it has no ID (datatypes with no ID are
|
||||
// always local i.e. pointers)
|
||||
resolvedDataType = resolveDataTypeNoSource(dataType);
|
||||
|
|
|
@ -21,7 +21,7 @@ public enum ArchiveType {
|
|||
FILE,
|
||||
PROJECT,
|
||||
PROGRAM,
|
||||
TEST;
|
||||
TEMPORARY;
|
||||
//@formatter:on
|
||||
|
||||
public boolean isBuiltIn() {
|
||||
|
|
|
@ -923,7 +923,7 @@ public class StandAloneDataTypeManager extends DataTypeManagerDB implements Clos
|
|||
|
||||
@Override
|
||||
public ArchiveType getType() {
|
||||
return ArchiveType.TEST;
|
||||
return ArchiveType.TEMPORARY;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue