[Dwarf-Discuss] line/dir tables and indexes from a few compilers

David Anderson davea42@linuxmail.org
Thu Feb 20 22:30:11 GMT 2020


I? inspected the details of the line table and indexes for a few examples.

I don't know if anyone will be able to read this sensibly.

The IRIX cases are, of course very old.

even the oldest compilers shown here decided to put the source-file-name
into file[0],
probably because the V2 standard does not give the file[o] enry any
special meaning
wo why not?

I can email the testing directory if anyone wants it.
 ?(or email the libreoffce spreadsheet)

Extracting the info below is an entirely manual process, don't expect
too much).
You will need latest dwarfdump source from sourceforge to build a dwarfdump
that will report the details of dwarf5 line table headers.

Hope this is of some use.
David Anderson

decsr 	dwarf V 	anydirs? 	dirbase 	filebase 	File-to-dir 	Zero-index
present 	dir has bld 	File [0] source









Clang 9.0.0 	4 	no 	Seems 1-base 	[0] has sourecename 	Index 0 means
none 	yes 	no 	yes
Clang 9.0.0 	5 	0 has blddir 	1-base 	[0] has sourecename 	Index 0 means
blddir 	yes 	yes 	yes









Gcc 7.4.0 Line table V2 	2 	yes 	1-base 	[0] has sourecename 	Index 0
means none 	yes 	no 	yes
Gcc 7.4.0 Line table V2 	3 	yes 	1-base 	[0] has sourecename 	Index 0
means none 	yes 	no 	yes
Gcc 7.4.0 Line table V2 	4 	yes 	1-base 	[0] has sourecename 	Index 0
means none 	yes 	no 	yes
Gcc 7.4.0 Line table V2 	5 	yes 	1-base 	[0] has sourecename 	Index 0
means none 	yes 	no 	yes









Clang 6.0.0 Line Table V2 	2 	no 	1-base 	[0] has sourecename 	Index 0
means none 	yes 	no 	yes
Clang 6.0.0 Line table v3 	3 	no 	1-base 	[0] has sourecename 	Index 0
means none 	yes 	no 	yes
Clang 6.0.0 Line Table V4 	4 	no 	1-base 	[0] has sourecename 	Index 0
means none 	yes 	no 	yes
Clang 6.0.0 Line Table V5 	5 	0 has blddir 	0-base 	[0] has sourcename
Index 0 means blddir 	yes 	yes 	yes









IRIX n32(2006) Line TabV2 	2 	0 not blddir? 	1-base 	[0] has sourecename
	Index 0 means none 	yes 	no 	yes
IRIX 64(2006) Line TabV2 	2 	0 not blddir? 	1-base 	[0] has sourecename
Index 0 means none 	no 	no 	yes




More information about the Dwarf-discuss mailing list