pdbgen icon indicating copy to clipboard operation
pdbgen copied to clipboard

Ghidra's BuiltinTypes values may be wrong

Open aseciwa opened this issue 2 years ago • 1 comments

How did you find the Ghidra BuiltInTypes (e.g., key BuiltInTypes:/uint in function initalizeTypeDefs in PDBGen.java) that are predefined by CodeView? I found that BuiltInTypes:/uint's value is may actually be 0x0074.

aseciwa avatar Jan 15 '24 23:01 aseciwa

They are manually mapped and could be off... however looking at clang's source code, seems like they think it should be 0x0075. https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/DebugInfo/CodeView/TypeIndex.h#L49.

If this is causing an issue, then post some detail about what is happening with an example and I'll take a look.

wandel avatar Jan 18 '24 19:01 wandel