summaryrefslogtreecommitdiffstats
path: root/lldb/lit/ExecControl/StopHook/Inputs
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-11-19 15:06:10 +0000
committerZachary Turner <zturner@google.com>2018-11-19 15:06:10 +0000
commit28d0131d40584898a8a5800206b28ecfbd118a98 (patch)
tree2e42303c4a655515ebc907e509a141f29f3c3143 /lldb/lit/ExecControl/StopHook/Inputs
parenta1dca3553ef4e429ce38e56c8dded33f62788dda (diff)
downloadbcm5719-llvm-28d0131d40584898a8a5800206b28ecfbd118a98.tar.gz
bcm5719-llvm-28d0131d40584898a8a5800206b28ecfbd118a98.zip
Don't use -O in lit tests.
Because of different shell quoting rules, and the fact that LLDB commands often contain spaces, -O is not portable for writing command lines. Instead, we should use explicit lldbinit files. Differential Revision: https://reviews.llvm.org/D54680 llvm-svn: 347213
Diffstat (limited to 'lldb/lit/ExecControl/StopHook/Inputs')
-rw-r--r--lldb/lit/ExecControl/StopHook/Inputs/stop-hook-1.lldbinit1
-rw-r--r--lldb/lit/ExecControl/StopHook/Inputs/stop-hook-2.lldbinit1
-rw-r--r--lldb/lit/ExecControl/StopHook/Inputs/stop-hook-3.lldbinit3
-rw-r--r--lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-1.lldbinit7
-rw-r--r--lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-2.lldbinit4
5 files changed, 16 insertions, 0 deletions
diff --git a/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-1.lldbinit b/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-1.lldbinit
new file mode 100644
index 00000000000..4ab5d56f036
--- /dev/null
+++ b/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-1.lldbinit
@@ -0,0 +1 @@
+target stop-hook add -n b -o "expr ptr"
diff --git a/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-2.lldbinit b/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-2.lldbinit
new file mode 100644
index 00000000000..906c18b004d
--- /dev/null
+++ b/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-2.lldbinit
@@ -0,0 +1 @@
+target stop-hook add -f stop-hook.c -l 30 -e 34 -o "expr ptr" \ No newline at end of file
diff --git a/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-3.lldbinit b/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-3.lldbinit
new file mode 100644
index 00000000000..98ed59ca46b
--- /dev/null
+++ b/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-3.lldbinit
@@ -0,0 +1,3 @@
+target stop-hook add -f stop-hook.c -l 30 -e 34
+expr ptr
+DONE \ No newline at end of file
diff --git a/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-1.lldbinit b/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-1.lldbinit
new file mode 100644
index 00000000000..f192d9952e9
--- /dev/null
+++ b/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-1.lldbinit
@@ -0,0 +1,7 @@
+break set -f stop-hook-threads.cpp -p "Break here to test that the stop-hook"
+run
+target stop-hook add
+frame variable --show-globals g_val
+thread list
+continue
+DONE
diff --git a/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-2.lldbinit b/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-2.lldbinit
new file mode 100644
index 00000000000..467f60b1e1e
--- /dev/null
+++ b/lldb/lit/ExecControl/StopHook/Inputs/stop-hook-threads-2.lldbinit
@@ -0,0 +1,4 @@
+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
OpenPOWER on IntegriCloud