aboutsummaryrefslogtreecommitdiff
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
commit4ca29a6acf8ea8917ce12bd7435dff7afbdc2ba6 (patch)
tree4c6fed6255dea756f644995e5a948a1bb53ccd4e /bfd/coffgen.c
parent7da9d88fe4efed1e933fd0a1dbf681199b9c27bb (diff)
downloadfsf-binutils-gdb-4ca29a6acf8ea8917ce12bd7435dff7afbdc2ba6.zip
fsf-binutils-gdb-4ca29a6acf8ea8917ce12bd7435dff7afbdc2ba6.tar.gz
fsf-binutils-gdb-4ca29a6acf8ea8917ce12bd7435dff7afbdc2ba6.tar.bz2
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 49b43ed..35e8f71 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;