Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C types - SDB properties #7710

Open
1 of 3 tasks
XVilka opened this issue Jun 9, 2017 · 5 comments
Open
1 of 3 tasks

C types - SDB properties #7710

XVilka opened this issue Jun 9, 2017 · 5 comments
Labels
enhancement RAnal types Parsing, propagating and inferring simple and complex types

Comments

@XVilka
Copy link
Contributor

XVilka commented Jun 9, 2017

  • Add support for bitfields
  • Add support for alignment property of the type
  • Support for C++ objects
@XVilka XVilka added RAnal enhancement types Parsing, propagating and inferring simple and complex types labels Jun 9, 2017
@radare
Copy link
Collaborator

radare commented Jun 9, 2017 via email

@XVilka
Copy link
Contributor Author

XVilka commented Jul 4, 2017

@radare yes, not sure how to do that, but I think we need to support more complex types, for languages like C++/D, Rust and Go, Haskell, etc.

@XVilka
Copy link
Contributor Author

XVilka commented Apr 25, 2018

For this we need to think/discuss first how it should be done exactly @sivaramaaa

@XVilka
Copy link
Contributor Author

XVilka commented May 7, 2018

@sivaramaaa for your information - in tcc parser and SDB database some metainformation about type stored in "meta" field, which can be enhanced, e.g. used as a bitfield to store more different properties (you can grep shlr/tcc/tccgen.c for "meta" keyword to see the code creating it).

@thestr4ng3r
Copy link
Contributor

thestr4ng3r commented Dec 25, 2018

About C++ types, currently I am implementing the anal classes completely separate from types to be saved in sdb under the anal/classes namespace. The reason is that classes are quite independent of actual types in many cases (static methods, vtables, rtti, etc.).
The idea would be to later add references between types (structs) and classes to for example describe the memory layout of a class.
However I am open for suggestions if anybody has a better idea.

@XVilka XVilka assigned HoundThe and unassigned sivaramaaa May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement RAnal types Parsing, propagating and inferring simple and complex types
Projects
None yet
Development

No branches or pull requests

5 participants