Skip to content

Does Ghidra's type system directly support inheritance, polymorphism, and/or multiple inheritance? #2368

Answered by emteere
RolfRolles asked this question in Q&A
Discussion options

You must be logged in to vote

@RolfRolles we currently don't support true inheritance as well as mixing structure definitions with class methods directly as a Class data type. They have been on the books to do for quite a while. There have been various attempts to add general support for a class mostly in the form of namespaces as Classes, and Class folders in the datatypes with various definitions for class components. These generally fall short because they are conventions and are not enforced nor do they affect things like the debugger in the correct way. In addition, conventions don't work well if you are trying to RE something where you are recovering the hierarchy where methods signatures will be edited, new cla…

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@0xBEEEF
Comment options

Answer selected by RolfRolles
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #2368 on December 17, 2020 21:37.