semi working gdb