partly support gdb
Merge branch 'gdb-support'