Replies: 1 comment
-
It's not perfect, but I have two different approaches for doing this, depending on whether or not you care about the reads/writes directly to the object's instance variables (like Approach 1: you don't need ivar infoIf you don't care then I've made do by creating typedefs of Approach 2: you want to debug ivarsIn the Data Type Manager, I would right click, "New", "Structure". I would give it the name like To check that I got them correct, I would find setter methods like With the wealth of runtime metadata that's already baked into the binaries, this seems like something that could highly automated on import. Would be nice! |
Beta Was this translation helpful? Give feedback.
-
I'm reverse-engineering a binary with some Objective-C classes. Ghidra correctly find that much out and puts them in the symbol tree. However, there are places where a function takes in an instance of one of these classes as a parameter. Is there a way to create a data type that is an instance of one of these classes? Looking at how it's used, I can be fairly certain where one of the static members lives on the instance, so it seems each instance should have a defined structure. Can Ghidra automatically determine this?
Beta Was this translation helpful? Give feedback.
All reactions