]> sourceware.org Git - systemtap.git/commit
plt: Throw an appropriate error for missing $var
authorJosh Stone <jistone@redhat.com>
Fri, 28 Oct 2011 21:42:23 +0000 (14:42 -0700)
committerJosh Stone <jistone@redhat.com>
Fri, 28 Oct 2011 21:42:23 +0000 (14:42 -0700)
commit3d69c03f37c05136a01481994e239f1287138f6a
treeb2a9fe154a975d733007c4f45ecc1f54e3e7e0c3
parent93ee09d508e10d054465c63553b30539d70e0c4b
plt: Throw an appropriate error for missing $var

* tapsets.cxx (plt_expanding_visitor::visit_target_symbol): Throw a
  semantic_error for missing $var, so it may be caught and chained for
  later.  This ensures that the visitor always has a provide() too.
* testsuite/semko/plt1.stp: New, check that missing $var is an error.
* testsuite/semok/plt1.stp: New, check that $$name works, as does
  @defined on a missing $var.
tapsets.cxx
testsuite/semko/plt1.stp [new file with mode: 0755]
testsuite/semok/plt1.stp [new file with mode: 0755]
This page took 0.030844 seconds and 5 git commands to generate.