diff options
author | Jim Ingham <jingham@apple.com> | 2019-02-23 00:13:25 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2019-02-23 00:13:25 +0000 |
commit | ff8c7a0947663ce7515f0b8ee52b9d0fe8883bc3 (patch) | |
tree | aa2c285e2f294cc7b0620c84c9f4f726677c8a21 /lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-2.lldbinit | |
parent | 275d15ecf3476b7f884174e1c85f4894fb815bf1 (diff) | |
download | bcm5719-llvm-ff8c7a0947663ce7515f0b8ee52b9d0fe8883bc3.tar.gz bcm5719-llvm-ff8c7a0947663ce7515f0b8ee52b9d0fe8883bc3.zip |
Make sure that stop-hooks run asynchronously.
They aren't designed to nest recursively, so this will prevent that.
Also add a --auto-continue flag, putting "continue" in the stop hook makes
the stop hooks fight one another in multi-threaded programs.
Also allow more than one -o options so you can make more complex stop hooks w/o
having to go into the editor.
<rdar://problem/48115661>
Differential Revision: https://reviews.llvm.org/D58394
llvm-svn: 354706
Diffstat (limited to 'lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-2.lldbinit')
-rw-r--r-- | lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-2.lldbinit | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-2.lldbinit b/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-2.lldbinit index 467f60b1e1e..3b7d23953c3 100644 --- a/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-2.lldbinit +++ b/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-2.lldbinit @@ -1,4 +1,5 @@ +break set -f stop-hook-threads.cpp -p "Break here to set up the stop hook" break set -f stop-hook-threads.cpp -p "Break here to test that the stop-hook" run -target stop-hook add -x 2 -o "frame variable thread_index" -target stop-hook add -o continue +target stop-hook add -x 2 -o "expr lldb_val += 1" -o "thread list" +target stop-hook add -G true -o "script print('Hit stop hook') |