- addr2line(unsigned int shndx, off_t offset)
- { return do_addr2line(shndx, offset); }
-
- // A helper function for a single addr2line lookup. It uses
- // parameters() to figure out the size and endianness. This is less
- // efficient than using the templatized size and endianness, so only
- // call this from an un-templatized context.
+ addr2line(unsigned int shndx, off_t offset,
+ std::vector<std::string>* other_lines)
+ { return this->do_addr2line(shndx, offset, other_lines); }
+
+ // A helper function for a single addr2line lookup. It also keeps a
+ // cache of the last CACHE_SIZE Dwarf_line_info objects it created;
+ // set to 0 not to cache at all. The larger CACHE_SIZE is, the more
+ // chance this routine won't have to re-create a Dwarf_line_info
+ // object for its addr2line computation; such creations are slow.
+ // NOTE: Not thread-safe, so only call from one thread at a time.