add dump_stack support

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>