summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2010-02-23 14:40:18 -0600
committerDavid Smith <dsmith@redhat.com>2010-02-23 14:40:18 -0600
commit4d3c480990cdbbd3e0c405be03a195a040b4dc4a (patch)
tree702508955f221140bd4d0197119132fd2356c483
parenta50de93955fe1272731dccfb3520514a9545f434 (diff)
downloadsystemtap-steved-4d3c480990cdbbd3e0c405be03a195a040b4dc4a.tar.gz
systemtap-steved-4d3c480990cdbbd3e0c405be03a195a040b4dc4a.tar.xz
systemtap-steved-4d3c480990cdbbd3e0c405be03a195a040b4dc4a.zip
Removed rvalue operator check.
* tapset-procfs.cxx (procfs_var_expanding_visitor::visit_target_symbol): Removed unneeded rvalue operator check.
-rw-r--r--tapset-procfs.cxx16
1 files changed, 4 insertions, 12 deletions
diff --git a/tapset-procfs.cxx b/tapset-procfs.cxx
index d05ab52c..1926582b 100644
--- a/tapset-procfs.cxx
+++ b/tapset-procfs.cxx
@@ -386,19 +386,11 @@ procfs_var_expanding_visitor::visit_target_symbol (target_symbol* e)
if (! lvalue)
{
- if (*op == "=")
- {
- fname = "_procfs_value_get";
- ec->code = string(" struct _stp_procfs_data *data = (struct _stp_procfs_data *)(") + locvalue + string("); /* pure */\n")
+ fname = "_procfs_value_get";
+ ec->code = string(" struct _stp_procfs_data *data = (struct _stp_procfs_data *)(") + locvalue + string("); /* pure */\n")
- + string(" _stp_copy_from_user(THIS->__retvalue, data->buffer, data->count);\n")
- + string(" THIS->__retvalue[data->count] = '\\0';\n");
- }
- else
- {
- throw semantic_error ("Operator-assign expressions on procfs write"
- " target variables not implemented", e->tok);
- }
+ + string(" _stp_copy_from_user(THIS->__retvalue, data->buffer, data->count);\n")
+ + string(" THIS->__retvalue[data->count] = '\\0';\n");
}
else // lvalue
{