Broken GAS DWARF tests

Nick Clifton nickc@redhat.com
Thu Jul 30 15:21:17 GMT 2020
Hi Tom,

> Nick> 	* as.c (dwatf_level): Default to level 3 in case version is not
> Nick> 	set on the command line.
> 
> I understand not wanting to pick DWARF 5 as a default, since it still
> isn't fully supported in gdb; but why not DWARF 4 as the default?

Simplicity.  Setting the default to 4 broke lots of tests (in the assembler
and binutils directories).  Setting the default to 3 does not break the tests.

Plus, and this is very minor, version 4 DWARF line number tables are 
actually bigger than version 3 tables, because of the addition of the
Maximum Ops Per Instruction field in the table header.

But if there is a consensus that version 4 is the way to go, then I can
change the default and update the tests.

Cheers
  Nick




More information about the Binutils mailing list