6 lines · plain
1break set -f stop-hook-threads.cpp -p "Break here to set up the stop hook"2break set -f stop-hook-threads.cpp -p "Break here to test that the stop-hook"3run4target stop-hook add -x 2 -o "expr lldb_val += 1" -o "thread list"5target stop-hook add -G true -o "script print('Hit stop hook') 6