parsing il2cpp_ghidra.h from il2cppdumper in ghidra fails

783 Views Asked by At

when i use il2cppdumper, get il2cpp.h, then run il2cpp_header_to_ghidra.py and after that trying to open il2cpp_ghidra.h with ghidra (File > Parse C source > add il2cpp_ghidra.h to list > parse program) i'm getting error in il2cpp_ghidra.h:

Error: Encountered " " * " "* "" at line 9916, column 37.
Was expecting one of:
<VOLATILE> ...
"static" ...
<CONST> ...
<CDECL> ...
"__declspec" ...
"__readableTo" ...
etc...

9916 line in il2cpp_ghidra.h is

struct System_Reflection_RuntimeConstructorInfo_o* m_serializationCtor;

i use newest versions of both ghidra and il2cppdumper. maybe downgrading to some other version of the ghidra or il2cppdumper will help? (i don't know to which version)

1

There are 1 best solutions below

1
Simsalabimson On

I got the same error when using a default parsing configuration. I fixed it, by creating my own parsing config with empty "Include Paths" and "Parse Options" and selecting the il2cpp_ghidra.h file in "Source files to parse". Hope this helps!