This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/10025] wildcards lose when embedded in conditional %( %) expressions


------- Additional Comments From dsmith at redhat dot com  2010-05-13 17:16 -------
Here's a "band-aid" patch that seems to work, but doesn't really fix the
underlying issues:

diff --git a/parse.cxx b/parse.cxx
index 37e0762..93a7d2e 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -1526,7 +1526,9 @@ parser::parse_probe_point ()
       const token* t = next (true); // wildcard scanning here
       if (! (t->type == tok_identifier
 	     // we must allow ".return" and ".function", which are keywords
-	     || t->type == tok_keyword))
+	     || t->type == tok_keyword
+	     // sometimes "*" is treated like an operator
+	     || (t->type == tok_operator && t->content == "*")))
         throw parse_error ("expected identifier or '*'");
 


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10025

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]