This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
DW_FORM_block / VLAs / Fortran dynamic arrays support patch
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: archer at sourceware dot org
- Date: Wed, 8 Oct 2008 18:57:27 +0200
- Subject: DW_FORM_block / VLAs / Fortran dynamic arrays support patch
Hi,
from the confcall - DW_FORM_block* is currently supported only for
DW_AT_location. But recent GCC changes for C VLAs (variable-length-arrays
- char array[varname], PR debug/34037) or Fortran dynamic arrays (PR
debug/22244) require DW_FORM_block* support even for DW_TAG_subrange_type
(arrays) and DW_TAG_string_type and their DW_AT_lower_bound,
DW_AT_upper_bound, DW_AT_count, DW_AT_byte_stride, DW_AT_string_length.
Sample DWARF at:
http://sourceware.org/ml/gdb-patches/2008-09/msg00126.html
Patch at:
http://people.redhat.com/jkratoch/vla/
(it obsoletes Fedora gdb-6.8-bz377541-fortran-dynamic-arrays.patch)
Based on upstream CVS HEAD but right now it needs a rebase due to:
http://sourceware.org/ml/gdb-cvs/2008-10/msg00099.html
Regards,
Jan