forked from Imagelibrary/binutils-gdb
Fix return code in _bfd_dwarf2_find_nearest_line().
* dwarf2.c (_bfd_dwarf2_find_nearest_line): if a function name is found, but no line number info, then return a result of 2.
This commit is contained in:
committed by
Nick Clifton
parent
25209e2c69
commit
86ed2a5eae
@@ -1,3 +1,8 @@
|
||||
2022-03-22 Steiner H Gunderson <steinar+sourceware@gunderson.no>
|
||||
|
||||
* dwarf2.c (_bfd_dwarf2_find_nearest_line): if a function name is
|
||||
found, but no line number info, then return a result of 2.
|
||||
|
||||
2022-03-21 Steiner H Gunderson <steinar+sourceware@gunderson.no>
|
||||
|
||||
PR 28978
|
||||
|
||||
@@ -5267,7 +5267,11 @@ _bfd_dwarf2_find_nearest_line (bfd *abfd,
|
||||
|
||||
done:
|
||||
if (functionname_ptr && function && function->is_linkage)
|
||||
{
|
||||
*functionname_ptr = function->name;
|
||||
if (!found)
|
||||
found = 2;
|
||||
}
|
||||
else if (functionname_ptr
|
||||
&& (!*functionname_ptr
|
||||
|| (function && !function->is_linkage)))
|
||||
|
||||
Reference in New Issue
Block a user