summaryrefslogtreecommitdiffstats
path: root/tapset-procfs.cxx
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-08-03 15:16:09 -0700
committerJosh Stone <jistone@redhat.com>2009-08-03 15:16:09 -0700
commit0164a29cfb80344dced2e1683df05f6b62fe6cb3 (patch)
treef1135402bc2f45e03718733eb8490cd1f9df52f6 /tapset-procfs.cxx
parent28ad563d57d03e0d21936e394061e3380607d83b (diff)
parent6fda2dff51c667a8c73545dd397b844108715310 (diff)
downloadsystemtap-steved-0164a29cfb80344dced2e1683df05f6b62fe6cb3.tar.gz
systemtap-steved-0164a29cfb80344dced2e1683df05f6b62fe6cb3.tar.xz
systemtap-steved-0164a29cfb80344dced2e1683df05f6b62fe6cb3.zip
Merge branch 'array_index'
Diffstat (limited to 'tapset-procfs.cxx')
-rw-r--r--tapset-procfs.cxx19
1 files changed, 1 insertions, 18 deletions
diff --git a/tapset-procfs.cxx b/tapset-procfs.cxx
index a996ee32..3302057c 100644
--- a/tapset-procfs.cxx
+++ b/tapset-procfs.cxx
@@ -358,24 +358,7 @@ procfs_var_expanding_visitor::visit_target_symbol (target_symbol* e)
throw semantic_error ("invalid target symbol for procfs probe, $value expected",
e->tok);
- if (e->components.size() > 0)
- {
- switch (e->components[0].first)
- {
- case target_symbol::comp_literal_array_index:
- throw semantic_error("procfs target variable '$value' may not be used as array",
- e->tok);
- break;
- case target_symbol::comp_struct_member:
- throw semantic_error("procfs target variable '$value' may not be used as a structure",
- e->tok);
- break;
- default:
- throw semantic_error ("invalid use of procfs target variable '$value'",
- e->tok);
- break;
- }
- }
+ e->assert_no_components("procfs");
bool lvalue = is_active_lvalue(e);
if (write_probe && lvalue)