Description
Hello!
I've been playing around with Ghidra's C header parser and while I do find it interesting, I've ran into many issues with it. I am trying to feed it a macOS SDK.
One of the very first things it ran up against was a in cdefs.h
, on this line in particular.
Specifically, it complains about the opening parentheses, but I believe the double-colon might also be playing a factor as removing it results in another parse error (but further down the file). Commenting lines 592-608 got me more progress, and I found myself needing to define macros enough to fake being Apple Clang (or similar).
Ultimately though, it isn't enough (I just keep running into parser errors), and I'm wondering if Ghidra's C parsing is just not cut out for this yet, or if I'm using it wrong.
Finally the line number and/or file where the it claims the parsing error originated will, on occasion, make no real sense (i.e. there is no token (or even a line) as described at that spot). This makes fixing the parsing errors all the more difficult.
Activity