Signature Parsing/Ghidra 10 Update #3323
Replies: 2 comments 1 reply
-
What do you intend to do with the function information? If you aren't using it outside of Ghidra there should be no reason to be getting the function signature and re parsing it. That being said it definitely shouldn't fail to parse a signature that it created itself. |
Beta Was this translation helpful? Give feedback.
-
The signature string does not look like valid C syntax. Why the parens in the param declaration? e.g., |
Beta Was this translation helpful? Give feedback.
-
I'm wondering if you all could help. Upon upgrading to Ghidra 10, a few things broke in our application (as one would expect). We're obtaining decompiled function information with
ghidra.program.model.listing.Function.getSignature,
and using the following method to read this information:
ghidra.app.util.parser.FunctionSignatureParser.parse.
This worked ok for Ghidra 9.1, but now were hitting the exception ParseException("Can't find function name"). One example of a function the parser has trouble with is
ulong __memcmp_sse4_1(undefined (* param_1),undefined (* param_2),ulong param_3)
What changed that made the parser choke? Is it the parenthesis around the pointer declarations? There are other examples where the G10 version of the parser chokes. Is there a better way to generate/read decompiled function information?
Beta Was this translation helpful? Give feedback.
All reactions