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 /tapset-procfs.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 'tapset-procfs.cxx')
-rw-r--r-- | tapset-procfs.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tapset-procfs.cxx b/tapset-procfs.cxx index fd8ad62a..aa75af42 100644 --- a/tapset-procfs.cxx +++ b/tapset-procfs.cxx @@ -479,30 +479,30 @@ procfs_builder::build(systemtap_session & sess, // Make sure it doesn't start with '/'. if (end_pos == 0) throw semantic_error ("procfs path cannot start with a '/'", - location->tok); + location->components.front()->tok); component = path.substr(start_pos, end_pos - start_pos); // Make sure it isn't empty. if (component.size() == 0) throw semantic_error ("procfs path component cannot be empty", - location->tok); + location->components.front()->tok); // Make sure it isn't relative. else if (component == "." || component == "..") - throw semantic_error ("procfs path cannot be relative (and contain '.' or '..')", location->tok); + throw semantic_error ("procfs path cannot be relative (and contain '.' or '..')", location->components.front()->tok); start_pos = end_pos + 1; } component = path.substr(start_pos); // Make sure it doesn't end with '/'. if (component.size() == 0) - throw semantic_error ("procfs path cannot end with a '/'", location->tok); + throw semantic_error ("procfs path cannot end with a '/'", location->components.front()->tok); // Make sure it isn't relative. else if (component == "." || component == "..") - throw semantic_error ("procfs path cannot be relative (and contain '.' or '..')", location->tok); + throw semantic_error ("procfs path cannot be relative (and contain '.' or '..')", location->components.front()->tok); } if (!(has_read ^ has_write)) - throw semantic_error ("need read/write component", location->tok); + throw semantic_error ("need read/write component", location->components.front()->tok); finished_results.push_back(new procfs_derived_probe(sess, base, location, path, has_write)); |