mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-5050 - PDB fixup typedef namespaces
This commit is contained in:
parent
977e6be67f
commit
59ac60b91f
1 changed files with 4 additions and 2 deletions
|
@ -21,6 +21,7 @@ import ghidra.app.util.bin.format.pdb2.pdbreader.symbol.AbstractMsSymbol;
|
||||||
import ghidra.app.util.bin.format.pdb2.pdbreader.symbol.AbstractUserDefinedTypeMsSymbol;
|
import ghidra.app.util.bin.format.pdb2.pdbreader.symbol.AbstractUserDefinedTypeMsSymbol;
|
||||||
import ghidra.app.util.bin.format.pdb2.pdbreader.type.AbstractComplexMsType;
|
import ghidra.app.util.bin.format.pdb2.pdbreader.type.AbstractComplexMsType;
|
||||||
import ghidra.app.util.bin.format.pdb2.pdbreader.type.AbstractMsType;
|
import ghidra.app.util.bin.format.pdb2.pdbreader.type.AbstractMsType;
|
||||||
|
import ghidra.app.util.pdb.PdbNamespaceUtils;
|
||||||
import ghidra.program.model.data.*;
|
import ghidra.program.model.data.*;
|
||||||
import ghidra.util.exception.AssertException;
|
import ghidra.util.exception.AssertException;
|
||||||
import ghidra.util.exception.CancelledException;
|
import ghidra.util.exception.CancelledException;
|
||||||
|
@ -116,6 +117,7 @@ public class TypedefSymbolApplier extends MsSymbolApplier
|
||||||
}
|
}
|
||||||
|
|
||||||
SymbolPath symbolPath = new SymbolPath(name);
|
SymbolPath symbolPath = new SymbolPath(name);
|
||||||
|
symbolPath = PdbNamespaceUtils.convertToGhidraPathName(symbolPath);
|
||||||
CategoryPath categoryPath =
|
CategoryPath categoryPath =
|
||||||
applicator.getTypedefsCategory(applicator.getCurrentModuleNumber(), symbolPath);
|
applicator.getTypedefsCategory(applicator.getCurrentModuleNumber(), symbolPath);
|
||||||
DataType typedef = new TypedefDataType(categoryPath.getParent(), categoryPath.getName(),
|
DataType typedef = new TypedefDataType(categoryPath.getParent(), categoryPath.getName(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue