summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-03-31 21:20:19 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-03-31 21:20:19 -0400
commit52e1ee435f702c6b613eec2c2ee3db0baae3b6b4 (patch)
tree633271c63f67f7bf6c89d499893e0d2ba8642fdd /tapsets.cxx
parentb45613ad2a9740217ad3050adc6fcd038286ce88 (diff)
parentd783589ee2b7511b8bed0fa3549b2a6a84277b9b (diff)
downloadsystemtap-steved-52e1ee435f702c6b613eec2c2ee3db0baae3b6b4.tar.gz
systemtap-steved-52e1ee435f702c6b613eec2c2ee3db0baae3b6b4.tar.xz
systemtap-steved-52e1ee435f702c6b613eec2c2ee3db0baae3b6b4.zip
Merge branch 'master' into unwind
* master: Revert "Just a test commit" Just a test commit bump autoconf* version numbers to 0.7 replace mentions of CVS with GIT in docuemntation files 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
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx10
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)