From 0fefb486c5965e371cb52f55548123233da85f72 Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 4 Mar 2005 20:10:09 +0000 Subject: 2005-03-04 Frank Ch. Eigler * parse.cxx (scan): Support '$' characters in identifiers. (parse_symbol): Support thread-> / process-> shorthand. * staptree.cxx (symresolution_info::find): Split up into find_scalar, find_array, find_function. (resolve_symbols): Call the above for symbol/arrayindex/functioncall. (find_scalar): Add stub support for synthetic builtin variables. * staptree.h: Corresponding changes. * testsuite/*: Some new tests. --- testsuite/parseko/four.stp | 5 +++++ testsuite/parseok/three.stp | 7 +++++++ testsuite/semok/six.stp | 7 +++++++ 3 files changed, 19 insertions(+) create mode 100755 testsuite/parseko/four.stp create mode 100755 testsuite/parseok/three.stp create mode 100755 testsuite/semok/six.stp (limited to 'testsuite') diff --git a/testsuite/parseko/four.stp b/testsuite/parseko/four.stp new file mode 100755 index 00000000..ad77239b --- /dev/null +++ b/testsuite/parseko/four.stp @@ -0,0 +1,5 @@ +#! semtest + +probe foo { + somethingawful->foo = 1; +} diff --git a/testsuite/parseok/three.stp b/testsuite/parseok/three.stp new file mode 100755 index 00000000..b2628d4d --- /dev/null +++ b/testsuite/parseok/three.stp @@ -0,0 +1,7 @@ +#! parsetest + +probe kernel:systemcall("foo") +{ + $a = a$a = a$a$ = 0; +} + diff --git a/testsuite/semok/six.stp b/testsuite/semok/six.stp new file mode 100755 index 00000000..53d69503 --- /dev/null +++ b/testsuite/semok/six.stp @@ -0,0 +1,7 @@ +#! parsetest + +probe foo +{ + thread->bar = 4; + process->baz = "5"; +} -- cgit