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. --- staptree.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'staptree.h') diff --git a/staptree.h b/staptree.h index a95d9f05..b38221bc 100644 --- a/staptree.h +++ b/staptree.h @@ -209,7 +209,9 @@ struct symresolution_info vector& f, stapfile* cfil); - vardecl* find (const string& name); + vardecl* find_scalar (const string& name); + vardecl* find_array (const string& name, const vector&); + functiondecl* find_function (const string& name, const vector&); void unresolved (const token* tok); unsigned num_unresolved; @@ -257,6 +259,11 @@ struct vardecl: public symboldecl }; +struct vardecl_builtin: public vardecl +{ +}; + + struct block; struct functiondecl: public symboldecl { -- cgit