This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10025] wildcards lose when embedded in conditional %( %) expressions
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 13 May 2010 17:16:13 -0000
- Subject: [Bug translator/10025] wildcards lose when embedded in conditional %( %) expressions
- References: <20090402151723.10025.eteo@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.