summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-11-10 14:26:34 -0500
committerDave Brolley <brolley@redhat.com>2009-11-10 14:26:34 -0500
commitb513cd75dac185ac258dc8260a01891c30be6251 (patch)
treeb8e44de21178425a34e3b0d2f749b730f20d9610 /parse.cxx
parentfd212bd5d99abc3518cf523eb7af2fea5ae206ba (diff)
parentf94baaeed17aba11aa46e9b46f0564217fc9978c (diff)
downloadsystemtap-steved-b513cd75dac185ac258dc8260a01891c30be6251.tar.gz
systemtap-steved-b513cd75dac185ac258dc8260a01891c30be6251.tar.xz
systemtap-steved-b513cd75dac185ac258dc8260a01891c30be6251.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/parse.cxx b/parse.cxx
index cfefa12d..74d7c634 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -1085,7 +1085,7 @@ parser::parse_probe (std::vector<probe *> & probe_ret,
&& t->type == tok_operator && t->content == "=")
{
if (pp->optional || pp->sufficient)
- throw parse_error ("probe point alias name cannot be optional nor sufficient", pp->tok);
+ throw parse_error ("probe point alias name cannot be optional nor sufficient", pp->components.front()->tok);
aliases.push_back(pp);
next ();
continue;
@@ -1094,7 +1094,7 @@ parser::parse_probe (std::vector<probe *> & probe_ret,
&& t->type == tok_operator && t->content == "+=")
{
if (pp->optional || pp->sufficient)
- throw parse_error ("probe point alias name cannot be optional nor sufficient", pp->tok);
+ throw parse_error ("probe point alias name cannot be optional nor sufficient", pp->components.front()->tok);
aliases.push_back(pp);
epilogue_alias = 1;
next ();
@@ -1402,10 +1402,10 @@ parser::parse_probe_point ()
|| t->type == tok_keyword))
throw parse_error ("expected identifier or '*'");
- if (pl->tok == 0) pl->tok = t;
probe_point::component* c = new probe_point::component;
c->functor = t->content;
+ c->tok = t;
pl->components.push_back (c);
// NB we may add c->arg soon
@@ -1430,7 +1430,7 @@ parser::parse_probe_point ()
continue;
}
- // We only fall through here at the end of a probe point (past
+ // We only fall through here at the end of a probe point (past
// all the dotted/parametrized components).
if (t && t->type == tok_operator &&