Upon running retdec -a, it outputs some rather ugly, un-indented code that is all crammed together, making it extremely hard to read. Especially for more complicated programs.
However, I noticed that despite the ugly output, it actually saves a nice pretty version of the indented code with useful comments to /tmp/gef/binary.c.
Perhaps we could modify it a little to print nicer code so there is no need for the user to struggle to read the whole chunk of crammed code or take the extra step to read from the binary.c file that the prettified code was saved to.
I may make a PR on this if no one else does when I have the time :)
Upon running
retdec -a
, it outputs some rather ugly, un-indented code that is all crammed together, making it extremely hard to read. Especially for more complicated programs.However, I noticed that despite the ugly output, it actually saves a nice pretty version of the indented code with useful comments to /tmp/gef/binary.c.
Perhaps we could modify it a little to print nicer code so there is no need for the user to struggle to read the whole chunk of crammed code or take the extra step to read from the binary.c file that the prettified code was saved to.
I may make a PR on this if no one else does when I have the time :)