Let's say I have a file system.hin which I have the following structures
typedef struct Foo {
int count;
uint32 world;
Temp id;
} Foo;
typedef struct Temp {
uint64 id;
} Temp;
Foo bar;
Now I need a macro, something like DUMP_STRUCT(bar), which recursively prints all the elements of a bar (like Foo).
Is there any parser / script (preferably in php / python) that can parse a C file or get information from a dwarf from an executable and create a function similar to DUMP_STRUCT?
source
share