hugsy / gef-extras

Extra goodies for GEF to (try to) make GDB suck even less
https://hugsy.github.io/gef-extras
MIT License
149 stars 50 forks source link

improve retdec decompilation output #42

Closed caprinux closed 2 years ago

caprinux commented 2 years ago

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. image

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.

image

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 :)