diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-11-28 12:06:27 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-11-28 12:06:27 -0500 |
commit | 1ad820e32419c6ff9237962ec911e9c4eee79c4a (patch) | |
tree | f30826abe997f75ac590c03c88718d3b89ec1a45 /parse.cxx | |
parent | 29bdbdb17f088a997b772415d57c37258576f0f5 (diff) | |
download | systemtap-steved-1ad820e32419c6ff9237962ec911e9c4eee79c4a.tar.gz systemtap-steved-1ad820e32419c6ff9237962ec911e9c4eee79c4a.tar.xz systemtap-steved-1ad820e32419c6ff9237962ec911e9c4eee79c4a.zip |
PR5376: probe alias parsing tweaks
Diffstat (limited to 'parse.cxx')
-rw-r--r-- | parse.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1073,6 +1073,8 @@ parser::parse_probe (std::vector<probe *> & probe_ret, if (equals_ok && t && 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); aliases.push_back(pp); next (); continue; @@ -1080,6 +1082,8 @@ parser::parse_probe (std::vector<probe *> & probe_ret, else if (equals_ok && t && 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); aliases.push_back(pp); epilogue_alias = 1; next (); |