PR 1972.
* tapsets.cxx (var_expanding_copy_visitor::visit_target_symbol):
Produce error message for $var access within .return probes.
* testsuite/semko/thirtyfour.stp: New test.
+2006-01-10 Frank Ch. Eigler <fche@redhat.com>
+
+ PR 1972.
+ * tapsets.cxx (var_expanding_copy_visitor::visit_target_symbol):
+ Produce error message for $var access within .return probes.
+ * testsuite/semko/thirtyfour.stp: New test.
+
2006-01-10 Frank Ch. Eigler <fche@redhat.com>
PR 2060.
bool lvalue = is_active_lvalue(e);
if (lvalue && !q.sess.guru_mode)
- throw semantic_error("Illegal target variable access", e->tok);
+ throw semantic_error("write to target variable not permitted", e->tok);
string fname = (string(lvalue ? "set" : "get")
+ "_" + e->base_name.substr(1)
+ "_" + lex_cast<string>(tick++));
+ if (q.has_return)
+ throw semantic_error ("target variables not available to .return probes");
+
try
{
ec->code = q.dw.literal_stmt_for_local (scope_die,
--- /dev/null
+#! stap -p2
+
+probe kernel.function("sys_open").return { $filename }