NationalSecurityAgency / ghidra

Ghidra is a software reverse engineering (SRE) framework
https://www.nsa.gov/ghidra
Apache License 2.0
52.06k stars 5.9k forks source link

Feature req: Fields in Structure editor or enable/disable conditional fields #2960

Open pabx06 opened 3 years ago

pabx06 commented 3 years ago

Is your feature request related to a problem? Please describe. Trying to reverse large structure from open source lib that use so many conditional compilation feature (#ifdef) ie: image

Describe the solution you'd like

Describe alternatives you've considered Delete field look ant the code then retype them if need : error prone workflow than to just enable disable feature flag. not doable for structure that has very large amount of conditionals

Additional context the structure has 10 conditionals #ifdef : make it like 1098765432 =3628800 flavor of the same structure

ghidra1 commented 2 months ago

You may want to write a script that leverages the CParser or use the CPArser GUI to create such structures