summaryrefslogtreecommitdiffstats
path: root/dwarf_wrappers.h
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2009-08-19 16:48:53 -0700
committerJosh Stone <jistone@redhat.com>2009-08-19 16:48:53 -0700
commitf1c8f8a5c96229eee5d06e2eaccecfa7d714fbc9 (patch)
tree5ae11a198b05204453f66b515382c5d013a7bbf7 /dwarf_wrappers.h
parent966940426dbd5c44d7f25b0f2bd6b28cf829c384 (diff)
downloadsystemtap-steved-f1c8f8a5c96229eee5d06e2eaccecfa7d714fbc9.tar.gz
systemtap-steved-f1c8f8a5c96229eee5d06e2eaccecfa7d714fbc9.tar.xz
systemtap-steved-f1c8f8a5c96229eee5d06e2eaccecfa7d714fbc9.zip
Use dwarf_type_name in more places
* dwarf_wrappers.cxx (dwarf_type_name): Moved here from tapsets.cxx, and added a variant that returns a string for easier ostreaming. * dwflpp.cxx (dwflpp::print_members): Use dwarf_type_name for errors. (dwflpp::find_struct_member): Ditto. (dwflpp::translate_components): Ditto. (dwflpp::translate_final_fetch_or_store): Ditto. (dwflpp::literal_stmt_for_pointer): Ditto. * tapsets.cxx (dwarf_derived_probe::saveargs): Pass die to dwarf_type_name by pointer instead of reference. (uprobe_derived_probe::saveargs): Ditto. (resolve_tracepoint_arg_type): Ditto.
Diffstat (limited to 'dwarf_wrappers.h')
-rw-r--r--dwarf_wrappers.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dwarf_wrappers.h b/dwarf_wrappers.h
index 54ab8fd4..bc1cde2b 100644
--- a/dwarf_wrappers.h
+++ b/dwarf_wrappers.h
@@ -118,6 +118,11 @@ int dwarf_decl_line_integrate (Dwarf_Die *die, int *linep)
#endif // !_ELFUTILS_PREREQ(0, 143)
+// Resolve a full name for dwarf types
+bool dwarf_type_name(Dwarf_Die *type_die, std::string& type_name);
+std::string dwarf_type_name(Dwarf_Die *type_die);
+
+
#endif
/* vim: set sw=2 ts=8 cino=>4,n-2,{2,^-2,t0,(0,u0,w1,M1 : */