summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-03-31 09:59:34 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-03-31 09:59:34 -0400
commitf53dd4b2cdd92275dc88630bf531c2ba99b7872b (patch)
treee849ef9f8633e3aed50f6959f28eddf8a685306f /translate.cxx
parent1efbb40ada67f968d14fdc14dc51473fc4b270d0 (diff)
parent1e00cfb1b6caa8b8ac343fac8e3d08f2d6a5d785 (diff)
downloadsystemtap-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.cxx3
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\";";