[Bug translator/10025] wildcards lose when embedded in conditional %( %) expressions
dsmith at redhat dot com
sourceware-bugzilla@sourceware.org
Thu May 13 19:07:00 GMT 2010
------- 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.
More information about the Systemtap
mailing list