make gdb works