From aab2b35fb1752b5a1118d4c4b3e43a0db20cccb8 Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 5 Aug 2005 17:04:29 +0000 Subject: 2005-08-05 Frank Ch. Eigler PR translator/1175 * translate.cxx (*): Added unlikely() markers to most emitted error checks. (mapvar::get,set): Handle NULL<->"" impedance mismatch. (itervar::get_key): Ditto. Use base index=1 for keys. * testsuite/buildok/one.stp: Extend. And it runs with -p5 too. * stap.1: Document use of ";" statament as mechanism for grammar ambiguity resolution. * stp_check.in: Set $prefix. * systemtap.spec.in: Prereq kernel-devel, kernel-debuginfo, and not tcl. * tapsets.cxx: Make slightly less verbose. * translate.cxx --- testsuite/buildok/one.stp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'testsuite/buildok/one.stp') diff --git a/testsuite/buildok/one.stp b/testsuite/buildok/one.stp index 1f4f8f9b..491d059e 100755 --- a/testsuite/buildok/one.stp +++ b/testsuite/buildok/one.stp @@ -1,15 +1,24 @@ #! stap -p4 -global foo, bar +global foo, bar, baz probe begin { x = 10 foo["hello"] = 25 foo["hello"]++ + foo["hello"] = 0; ++foo["hello"] x = foo["hello"] foo["yo"] *= bar[x, foo["hello"], "goodbye"]++; + bar[0, 0, ""] = 0 + + foreach ([m, o, p] in bar) baz[m] = p + + # empty string treatment + baz[10] = "" + q = baz[223] + printk("hello from systemtap") } -- cgit