more full featured dump file parsing

Sourced originally from:
http://sourceforge.net/p/openocd/mailman/message/28344173/

Minor tweaks to make the output a little more readable.  This is
generally superior in every way to the existing swodecoder.py