This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: check for valid location of zero length dwarf block forms?
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- Cc: gdb at sourceware dot org
- Date: Sun, 22 Nov 2009 12:02:59 +0100
- Subject: Re: check for valid location of zero length dwarf block forms?
- References: <20091121034258.GA6166@bromo.med.uc.edu>
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