gdb refactoring scripts