some IO fixes (break gdb todo fix!)

added thumb rev
fixed creating thumb thread