check for valid location of zero length dwarf block forms?

Jan Kratochvil jan.kratochvil@redhat.com
Sun Nov 22 20:22:00 GMT 2009


On Sat, 21 Nov 2009 04:42:58 +0100, Jack Howarth wrote:
> ...as dwarf debug info containing an AT_location with
> any block form having a zero length.

It is correct and equivalent according to the DWARF spec. and for gcc it seems
to differentiate a case of known optimized-out value (=empty) vs. the case of
gcc failed to describe the variable location (=missing).
	dwarflint: DW_AT_location being empty vs. missing check
	https://fedorahosted.org/pipermail/elfutils-devel/2009-March/000179.html
	https://fedorahosted.org/pipermail/elfutils-devel/2009-March/000180.html


Regards,
Jan



More information about the Gdb mailing list