If stabs info is successfully found, do not attempt to find dwarf2 info
before returning.
This commit is contained in:
parent
7da9d88fe4
commit
4ca29a6acf
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
|
||||||
|
|
||||||
|
* coffgen.c (coff_find_nearest_line): If stabs info is successfully
|
||||||
|
found, do not attempt to find dwarf2 info before returning.
|
||||||
|
|
||||||
2001-02-07 Jakub Jelinek <jakub@redhat.com>
|
2001-02-07 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* elflink.h (is_global_symbol_definition): Rename to
|
* elflink.h (is_global_symbol_definition): Rename to
|
||||||
|
|
|
@ -2188,6 +2188,9 @@ coff_find_nearest_line (abfd, section, symbols, offset, filename_ptr,
|
||||||
&coff_data(abfd)->line_info))
|
&coff_data(abfd)->line_info))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (found)
|
||||||
|
return true;
|
||||||
|
|
||||||
/* Also try examining DWARF2 debugging information. */
|
/* Also try examining DWARF2 debugging information. */
|
||||||
if (_bfd_dwarf2_find_nearest_line (abfd, section, symbols, offset,
|
if (_bfd_dwarf2_find_nearest_line (abfd, section, symbols, offset,
|
||||||
filename_ptr, functionname_ptr,
|
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))
|
&coff_data(abfd)->dwarf2_find_line_info))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (found)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
*filename_ptr = 0;
|
*filename_ptr = 0;
|
||||||
*functionname_ptr = 0;
|
*functionname_ptr = 0;
|
||||||
*line_ptr = 0;
|
*line_ptr = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue