]> sourceware.org Git - systemtap.git/commit - elaborate.cxx
PR11004: try / catch error-handling script syntax
authorFrank Ch. Eigler <fche@elastic.org>
Wed, 3 Mar 2010 05:28:22 +0000 (00:28 -0500)
committerFrank Ch. Eigler <fche@elastic.org>
Wed, 3 Mar 2010 05:33:43 +0000 (00:33 -0500)
commitf4fe2e932cc8f445e9e1bc52863e11b669e3afc9
treeba062952c0a37f02ebcf0eb2f533d44ee41fdb25
parentd105f6642677bd9ef1b20d1ba180ba0163cb0fa6
PR11004: try / catch error-handling script syntax

* parse.h (try_block): New class.  Update basic visitors.
* staptree.cxx: Implement basic visitors.
* parse.cxx (expect_kw): Fix to actually look for keywords.
  (parse_try_block): New function.
  (lexer ctor): Designate 'try' and 'catch' as keywords.
* elaborate.cxx (dead_assignment_remover, dead_statmtexpr_remover): Optimize.
  (other visitors): Implement.
* translate.cxx (c_unparser): Implement via super-handy __local__ labels.
  (emit_probe, emit_function): Make outer out: label also __local__.
* testsuite/buildok/fortyone.stp, semko/fortynine.stp,
  systemtap.base/trycatch.exp: Test it.
* NEWS, doc/langref.txt, stap.1.in: Document it.
13 files changed:
NEWS
doc/langref.tex
elaborate.cxx
elaborate.h
parse.cxx
parse.h
stap.1.in
staptree.cxx
staptree.h
testsuite/buildok/fortyone.stp [new file with mode: 0755]
testsuite/semko/fortynine.stp [new file with mode: 0755]
testsuite/systemtap.base/trycatch.exp [new file with mode: 0644]
translate.cxx
This page took 0.030506 seconds and 5 git commands to generate.