diff options
author | fche <fche> | 2008-03-26 21:22:26 +0000 |
---|---|---|
committer | fche <fche> | 2008-03-26 21:22:26 +0000 |
commit | 0301cfe75d47bc8e26607ef8372c76239a487113 (patch) | |
tree | 2a2d3cd225cce5689347f8fbff61a67e3aad2c15 /tapsets.cxx | |
parent | 9b9d592ebd99522606996202a22e6382e7945752 (diff) | |
download | systemtap-steved-0301cfe75d47bc8e26607ef8372c76239a487113.tar.gz systemtap-steved-0301cfe75d47bc8e26607ef8372c76239a487113.tar.xz systemtap-steved-0301cfe75d47bc8e26607ef8372c76239a487113.zip |
2008-03-26 Frank Ch. Eigler <fche@elastic.org>
* translate.cxx (emit_function): Set context last_stmt, in case
an error occurs during the function.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index a9db3717..39aa60ad 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -1587,6 +1587,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) |