diff options
Diffstat (limited to 'gold/dwarf_reader.cc')
-rw-r--r-- | gold/dwarf_reader.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gold/dwarf_reader.cc b/gold/dwarf_reader.cc index d07e3e7..e3e1963 100644 --- a/gold/dwarf_reader.cc +++ b/gold/dwarf_reader.cc @@ -630,7 +630,7 @@ Sized_dwarf_line_info<size, big_endian>::do_addr2line(unsigned int shndx, // If we found an exact match, great, otherwise find the last entry // before the passed-in offset. - if (it->offset > offset) + if (it == offsets->end() || it->offset > offset) { if (it == offsets->begin()) return ""; @@ -673,10 +673,6 @@ Sized_dwarf_line_info<size, big_endian>::do_addr2line(unsigned int shndx, // Dwarf_line_info routines. -// Note: this routine instantiates the appropriate -// Sized_dwarf_line_info templates for this config, so we don't have -// to have a separte instantiation section for them. - std::string Dwarf_line_info::one_addr2line(Object* object, unsigned int shndx, off_t offset) |