How to loop in a GDB script till program is finished?

Viewed 27798
define traverse
    while(CONDITION)
        if $start == 0
            set $start = 1
            print_node
            print_rss_item
        else
            continue
            print_node
            print_rss_item
        end
    end
end

What condition do I need to stop the loop if the program is finished?

2 Answers
Related