diff options
author | Charley Wang <chwang@redhat.com> | 2009-11-10 12:22:18 -0500 |
---|---|---|
committer | Charley Wang <chwang@redhat.com> | 2009-11-10 12:22:18 -0500 |
commit | f1a0157a5bacc6c7f739a621ee86fec2be9b0080 (patch) | |
tree | 5be55af0801b2553afdf905524f7924219aec88d /elaborate.cxx | |
parent | 7885012ba0a7c1d7c974dd9528afa90aeed916a6 (diff) | |
download | systemtap-steved-f1a0157a5bacc6c7f739a621ee86fec2be9b0080.tar.gz systemtap-steved-f1a0157a5bacc6c7f739a621ee86fec2be9b0080.tar.xz systemtap-steved-f1a0157a5bacc6c7f739a621ee86fec2be9b0080.zip |
PR10877: Give token* to each component instead of each probe_point
Diffstat (limited to 'elaborate.cxx')
-rw-r--r-- | elaborate.cxx | 11 |
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. |