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 /tapsets.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 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index a9db3717..079d87e8 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -201,6 +201,7 @@ common_probe_entryfn_prologue (translator_output* o, string statestr, o->newline() << "goto probe_epilogue;"; o->newline(-1) << "}"; o->newline(); + o->newline() << "c->last_stmt = 0;"; o->newline() << "c->last_error = 0;"; o->newline() << "c->nesting = 0;"; o->newline() << "c->regs = 0;"; @@ -1587,6 +1588,15 @@ struct dwflpp unsigned i = 0; while (i < components.size()) { + /* XXX: This would be desirable, but we don't get the target_symbol token, + and printing that gives us the file:line number too early anyway. */ +#if 0 + // Emit a marker to note which field is being access-attempted, to give + // better error messages if deref() fails. + string piece = string(...target_symbol token...) + string ("#") + stringify(components[i].second); + obstack_printf (pool, "c->last_stmt = %s;", lex_cast_qstring(piece).c_str()); +#endif + die = dwarf_formref_die (attr_mem, die_mem); const int typetag = dwarf_tag (die); switch (typetag) |