summaryrefslogtreecommitdiffstats
path: root/testsuite/parseok
diff options
context:
space:
mode:
authordsmith <dsmith>2006-07-13 20:41:00 +0000
committerdsmith <dsmith>2006-07-13 20:41:00 +0000
commit493ee2241e4f16b196bbe320bba997c9c3df081d (patch)
tree9e92b57b1dea188cf670621a2fdb6138cd722b8b /testsuite/parseok
parent4eb3a7f59e23c9342fc40db9206d6ac98c2f7ca3 (diff)
downloadsystemtap-steved-493ee2241e4f16b196bbe320bba997c9c3df081d.tar.gz
systemtap-steved-493ee2241e4f16b196bbe320bba997c9c3df081d.tar.xz
systemtap-steved-493ee2241e4f16b196bbe320bba997c9c3df081d.zip
2006-07-13 David Smith <dsmith@redhat.com>
* parse.cxx (parser::expect_unknown2): New function that looks for 2 possible token types. * parse.cxx (parser::expect_ident_or_keyword): New function that calls parser::expect_unknown2. * parse.cxx (parser::parse_symbol): Calls parser::expect_ident_or_keyword to allow keywords to appear when expanding target symbols (Bugzilla #2913). * parse.h: Added prototypes for parser::expect_unknown2 and parser::expect_ident_or_keyword. * testsuite/parseok/seventeen.stp: New test to check for allowing keywords when expanding target symbols.
Diffstat (limited to 'testsuite/parseok')
-rwxr-xr-xtestsuite/parseok/seventeen.stp8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/parseok/seventeen.stp b/testsuite/parseok/seventeen.stp
new file mode 100755
index 00000000..395b29aa
--- /dev/null
+++ b/testsuite/parseok/seventeen.stp
@@ -0,0 +1,8 @@
+#! stap -p1
+
+# Make sure you can use keywords in target symbol structure
+# references (Bugzilla 2193).
+
+probe kernel.function("add_timer_on") {
+ printf("%x\n", $timer->function)
+}