diff options
author | Nick Clifton <nickc@redhat.com> | 2000-12-08 22:50:07 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-12-08 22:50:07 +0000 |
commit | 51db370890a1d637175ce846053ca32e3e5a519e (patch) | |
tree | 458fd7fb2d8e363e6f2067212d3686db60fccf71 /bfd/coffgen.c | |
parent | 88496bb5c69c7702ab2016f0d1997caf1042cbdb (diff) | |
download | gdb-51db370890a1d637175ce846053ca32e3e5a519e.zip gdb-51db370890a1d637175ce846053ca32e3e5a519e.tar.gz gdb-51db370890a1d637175ce846053ca32e3e5a519e.tar.bz2 |
Generalize DWARF2 and COFF support.
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r-- | bfd/coffgen.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c index d16c577..35ac1b9 100644 --- a/bfd/coffgen.c +++ b/bfd/coffgen.c @@ -2185,9 +2185,17 @@ coff_find_nearest_line (abfd, section, symbols, offset, filename_ptr, if (! _bfd_stab_section_find_nearest_line (abfd, symbols, section, offset, &found, filename_ptr, functionname_ptr, line_ptr, - &coff_data (abfd)->line_info)) + &coff_data(abfd)->line_info)) return false; - if (found) + + /* Also try examining DWARF2 debugging information. */ + if (_bfd_dwarf2_find_nearest_line (abfd, section, symbols, offset, + filename_ptr, functionname_ptr, + line_ptr, 0, + &coff_data(abfd)->dwarf2_find_line_info)) + return true; + +if (found) return true; *filename_ptr = 0; |