added thread_debug_regs function implemenation
added thread_debug_regs function implemenation

modeswitch/barrelfish,modeswitch/barrelfish,modeswitch/barrelfish,modeswitch/barrelfish,modeswitch/barrelfish