prepare gdb enviroment