Gdb Script Loop While Python Break Function In C