Gdb Script Loop While Python Break Function Javascript Code