[PATCH] Fix return code in _bfd_dwarf2_find_nearest_line().

Nick Clifton nickc@redhat.com
Tue Mar 22 15:33:40 GMT 2022


Hi Steinar,

> +++ b/bfd/dwarf2.c
> @@ -5602,7 +5602,11 @@ _bfd_dwarf2_find_nearest_line (bfd *abfd,
>   
>    done:
>     if (functionname_ptr && function && function->is_linkage)
> -    *functionname_ptr = function->name;
> +    {
> +      *functionname_ptr = function->name;
> +      if (!found)
> +        found = 2;
> +    }
>     else if (functionname_ptr
>   	   && (!*functionname_ptr
>   	       || (function && !function->is_linkage)))

Patch approved and applied.  Thanks for fixing this!

Cheers
   Nick



More information about the Binutils mailing list