summaryrefslogtreecommitdiff
path: root/bfd/coffgen.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-02-07 23:50:04 +0000
committerNick Clifton <nickc@redhat.com>2001-02-07 23:50:04 +0000
commit4f59f135eb9ce3b7e25c5447b12df4762f4089b1 (patch)
treef96650e75075cf44ccec78553538dd9c09de94b1 /bfd/coffgen.c
parent240b56f2d37518734f9b8d0c9c42a9a305560d32 (diff)
downloadgdb-4f59f135eb9ce3b7e25c5447b12df4762f4089b1.tar.gz
If stabs info is successfully found, do not attempt to find dwarf2 info
before returning.
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r--bfd/coffgen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index 49b43edbd75..35e8f718e6a 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -2188,6 +2188,9 @@ coff_find_nearest_line (abfd, section, symbols, offset, filename_ptr,
&coff_data(abfd)->line_info))
return false;
+ if (found)
+ return true;
+
/* Also try examining DWARF2 debugging information. */
if (_bfd_dwarf2_find_nearest_line (abfd, section, symbols, offset,
filename_ptr, functionname_ptr,
@@ -2195,9 +2198,6 @@ coff_find_nearest_line (abfd, section, symbols, offset, filename_ptr,
&coff_data(abfd)->dwarf2_find_line_info))
return true;
-if (found)
- return true;
-
*filename_ptr = 0;
*functionname_ptr = 0;
*line_ptr = 0;