summaryrefslogtreecommitdiffstats
path: root/elaborate.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 /elaborate.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 'elaborate.cxx')
-rw-r--r--elaborate.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/elaborate.cxx b/elaborate.cxx
index 626db280..c1465e97 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -372,7 +372,7 @@ match_node::find_and_build (systemtap_session& s,
throw semantic_error (string("probe point truncated at position ") +
lex_cast (pos) +
- " (follow:" + alternatives + ")", loc->tok);
+ " (follow:" + alternatives + ")", loc->components.back()->tok);
}
map<string, literal *> param_map;
@@ -452,7 +452,7 @@ match_node::find_and_build (systemtap_session& s,
lex_cast (pos) +
" (alternatives:" + alternatives + ")" +
" didn't find any wildcard matches",
- loc->tok);
+ loc->components[pos]->tok);
}
}
else
@@ -465,10 +465,11 @@ match_node::find_and_build (systemtap_session& s,
for (sub_map_iterator_t i = sub.begin(); i != sub.end(); i++)
alternatives += string(" ") + i->first.str();
+
throw semantic_error (string("probe point mismatch at position ") +
lex_cast (pos) +
" (alternatives:" + alternatives + ")",
- loc->tok);
+ loc->components[pos]->tok);
}
match_node* subnode = i->second;
@@ -534,7 +535,7 @@ alias_expansion_builder
// Don't build the alias expansion if infinite recursion is detected.
if (checkForRecursiveExpansion (use)) {
stringstream msg;
- msg << "Recursive loop in alias expansion of " << *location << " at " << location->tok->location;
+ msg << "Recursive loop in alias expansion of " << *location << " at " << location->components.front()->tok->location;
// semantic_errors thrown here are ignored.
sess.print_error (semantic_error (msg.str()));
return;
@@ -558,7 +559,7 @@ alias_expansion_builder
}
// the token location of the alias,
- n->tok = location->tok;
+ n->tok = location->components.front()->tok;
// and statements representing the concatenation of the alias'
// body with the use's.