While waiting for clang to compile (http://xkcd.com/303/) I started hacking on the text output of llvm-dwarfdump, specifically I added colored syntax highlighting. The color scheme is the one that Greg's colorize script for dwarfdump on Darwin is using.
This patch starts by colorizing the .debug_info output. Adding more sections and syntax elements should be trivial.
Do we want this?
I'm not too fond of all the extra scopes, dunno what others think.
If this could be implemented too look like:
I think I'd prefer that (not sure if just adding a conversion operator from WithColor to raw_ostream would do the trick).