From 493ee2241e4f16b196bbe320bba997c9c3df081d Mon Sep 17 00:00:00 2001 From: dsmith Date: Thu, 13 Jul 2006 20:41:00 +0000 Subject: 2006-07-13 David Smith * 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. --- testsuite/parseok/seventeen.stp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 testsuite/parseok/seventeen.stp (limited to 'testsuite/parseok') 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) +} -- cgit