From 51db370890a1d637175ce846053ca32e3e5a519e Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 8 Dec 2000 22:50:07 +0000 Subject: Generalize DWARF2 and COFF support. --- bfd/coffgen.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'bfd/coffgen.c') diff --git a/bfd/coffgen.c b/bfd/coffgen.c index d16c577abb6..35ac1b97cc2 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; -- cgit v1.2.1