diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-03-31 09:59:34 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-03-31 09:59:34 -0400 |
commit | f53dd4b2cdd92275dc88630bf531c2ba99b7872b (patch) | |
tree | e849ef9f8633e3aed50f6959f28eddf8a685306f /translate.cxx | |
parent | 1efbb40ada67f968d14fdc14dc51473fc4b270d0 (diff) | |
parent | 1e00cfb1b6caa8b8ac343fac8e3d08f2d6a5d785 (diff) | |
download | systemtap-steved-f53dd4b2cdd92275dc88630bf531c2ba99b7872b.tar.gz systemtap-steved-f53dd4b2cdd92275dc88630bf531c2ba99b7872b.tar.xz systemtap-steved-f53dd4b2cdd92275dc88630bf531c2ba99b7872b.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
* 'master' of ssh://sources.redhat.com/git/systemtap:
2008-03-27 Frank Ch. Eigler <fche@elastic.org>
2008-03-27 Frank Ch. Eigler <fche@elastic.org>
2008-03-26 Frank Ch. Eigler <fche@elastic.org>
Revert "dummy commit"
dummy commit
Conflicts:
ChangeLog
testsuite/ChangeLog
Diffstat (limited to 'translate.cxx')
-rw-r--r-- | translate.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/translate.cxx b/translate.cxx index 2bfacefc..f30fca7b 100644 --- a/translate.cxx +++ b/translate.cxx @@ -1360,6 +1360,9 @@ c_unparser::emit_function (functiondecl* v) o->newline() << "#define THIS l"; o->newline() << "if (0) goto out;"; // make sure out: is marked used + // set this, in case embedded-c code sets last_error but doesn't otherwise identify itself + o->newline() << "c->last_stmt = " << lex_cast_qstring(*v->tok) << ";"; + // check/increment nesting level o->newline() << "if (unlikely (c->nesting+2 >= MAXNESTING)) {"; o->newline(1) << "c->last_error = \"MAXNESTING exceeded\";"; |