[PATCH] [gas] Emit v2 .debug_line for -gdwarf-2

Andreas Schwab schwab@suse.de
Tue Jan 31 11:55:12 GMT 2023


On Jan 31 2023, Tom de Vries via Binutils wrote:

> Fix this by emitting a v3 .debug_line contribution instead.

s/v3/v2/?

> diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
> index c7d9e8ef72f..e6c411426af 100644
> --- a/gas/dwarf2dbg.c
> +++ b/gas/dwarf2dbg.c
> @@ -88,7 +88,7 @@
>  
>  /* This implementation outputs version 3 .debug_line information.  */
>  #ifndef DWARF2_LINE_VERSION
> -#define DWARF2_LINE_VERSION (dwarf_level > 3 ? dwarf_level : 3)
> +#define DWARF2_LINE_VERSION dwarf_level

Seems like the comment is no longer accurate.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Binutils mailing list