diff options
| author | Mark Wielaard <[email protected]> | 2011-02-23 19:59:41 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2011-03-16 12:41:13 +0100 |
| commit | 17a29217e9145989ca15479132f8d6d8f80f0258 (patch) | |
| tree | 0a5f8ad2c402afa9c15e1a369b6baebb8dc1e21b | |
| parent | 35727d56106182c7513c1d4c5f784cb087d2f4ec (diff) | |
Add the *info () hack in dwarf_output, so we can rely on it for now.
| -rw-r--r-- | libdw/c++/dwarf_output | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libdw/c++/dwarf_output b/libdw/c++/dwarf_output index 9d0f6782..ac546267 100644 --- a/libdw/c++/dwarf_output +++ b/libdw/c++/dwarf_output @@ -151,6 +151,12 @@ namespace elfutils friend class dwarf_output; friend class dwarf_output_collector; + __attribute__((used)) die_info_pair *info () const + { + return reinterpret_cast<die_info_pair *> + (const_cast<debug_info_entry *> (this)); + } + public: class attributes_type : public dwarf_data::attributes_type<dwarf_output, value> |
