Skip to main content
summaryrefslogtreecommitdiffstats
path: root/dsf
diff options
context:
space:
mode:
authorPawel Piech2009-03-19 17:38:58 +0000
committerPawel Piech2009-03-19 17:38:58 +0000
commit7a3355c0fb51935facd0fec31676fa3da077d006 (patch)
treed4ead3ffee4be6268cdb97670182529bf4bcb0f5 /dsf
parent057fdbe4a520985d199af0b41f5f33d223a4c9bd (diff)
downloadorg.eclipse.cdt-7a3355c0fb51935facd0fec31676fa3da077d006.tar.gz
org.eclipse.cdt-7a3355c0fb51935facd0fec31676fa3da077d006.tar.xz
org.eclipse.cdt-7a3355c0fb51935facd0fec31676fa3da077d006.zip
Add a threads sample.
Diffstat (limited to 'dsf')
-rw-r--r--dsf/org.eclipse.cdt.examples.dsf.pda/samples/threads.pda23
1 files changed, 23 insertions, 0 deletions
diff --git a/dsf/org.eclipse.cdt.examples.dsf.pda/samples/threads.pda b/dsf/org.eclipse.cdt.examples.dsf.pda/samples/threads.pda
new file mode 100644
index 00000000000..336a251d9ab
--- /dev/null
+++ b/dsf/org.eclipse.cdt.examples.dsf.pda/samples/threads.pda
@@ -0,0 +1,23 @@
+push 5
+:thread_create
+exec foo
+dec
+dup
+branch_not_zero thread_create
+push finished
+output
+halt
+:foo
+push thread_created
+output
+call inner
+halt
+:inner
+var b
+call inner2
+push 2
+return
+:inner2
+var c
+push 3
+return

Back to the top