diff options
author | Pawel Piech | 2009-03-19 17:38:58 +0000 |
---|---|---|
committer | Pawel Piech | 2009-03-19 17:38:58 +0000 |
commit | 7a3355c0fb51935facd0fec31676fa3da077d006 (patch) | |
tree | d4ead3ffee4be6268cdb97670182529bf4bcb0f5 /dsf | |
parent | 057fdbe4a520985d199af0b41f5f33d223a4c9bd (diff) | |
download | org.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.pda | 23 |
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 |