I was wondering if there was a technique for understanding a huge code
that was written about a decade back, has no coding conventions
followed and has bad variable/function names.
GDB/DDD are fine but I do not want to dig into each and every function
and find out what is the meaning of each
and every variable.
The code uses a few structs also with a good deal of data put into
each.
Re-writing the entire code is not a possibility.
I need something to understand-ablify the existing code.
At the least, how can I write a macro/function that will print all the
contents of a structure given
an instance of the structure.