diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-03-04 11:55:56 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-03-04 11:55:56 +0100 |
commit | cd1db1dd034141535648a66d9896db6c5e74dd9e (patch) | |
tree | 74d83c6785aa4b1348ea89a0d7f7fa8f6e641a2f /testsuite/systemtap.base/overflow_error.stp | |
parent | 46cfaf7b18b1d8dfa3e827f3b32d0e8f66e8399f (diff) | |
download | systemtap-steved-cd1db1dd034141535648a66d9896db6c5e74dd9e.tar.gz systemtap-steved-cd1db1dd034141535648a66d9896db6c5e74dd9e.tar.xz systemtap-steved-cd1db1dd034141535648a66d9896db6c5e74dd9e.zip |
PR9919: Set last_stmt for array (scalar or statistical) assignments.
* translate.cxx (visit_arrayindex): Update last_stmt.
Diffstat (limited to 'testsuite/systemtap.base/overflow_error.stp')
-rw-r--r-- | testsuite/systemtap.base/overflow_error.stp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/overflow_error.stp b/testsuite/systemtap.base/overflow_error.stp new file mode 100644 index 00000000..f5a3e917 --- /dev/null +++ b/testsuite/systemtap.base/overflow_error.stp @@ -0,0 +1,22 @@ +# overflow some stuff to see if error message point to the correct thing. +global count; +global overflow1[3]; +global overflow2[5]; + +probe timer.ms(10) +{ + if (count <= 3) + { + overflow1[count++] = gettimeofday_ns(); + } + else + { + overflow2[count++] <<< gettimeofday_ns(); + } +} + +probe timer.s(3) +{ + exit(); +} + |