Differences between revisions 4 and 5
Revision 4 as of 2013-07-22 09:37:39
Size: 1515
Editor: 134
Comment: VLA is not Fortran specific
Revision 5 as of 2013-07-22 09:38:08
Size: 1511
Editor: 134
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
 * Changes in the dwarf handling  * Changes in dwarf handling

The project was most recently described in this email.

Goal

This project aims to fix Fortran variable length arrays handling in gdb. It allows the user to evaluate VLA used in Fortran, C99, and Ada.

Plan

  • Changes in dwarf handling
    • Parse new dwarf attributes DW_AT_allocated, DW_AT_associated, and DW_AT_data_location in dwarf2.c and store them in struct main_type

    • Update copy_type_recursive to copy the newly added attributed

    • Dispatch new dwarf expression opcode DW_OP_push_object_address similar to DW_OP_GNU_push_tls_address in dwarf2expr.c

    • Extend read_array_type to parse attributes DW_AT_allocated, DW_AT_associated, DW_AT_bit_offset, DW_AT_bit_size, DW_AT_byte_size, DW_AT_count, DW_AT_lower_bound, DW_AT_byte_stride, {{{DW_AT_bit_stride, DW_AT_upper_bound, DW_AT_string_length as references and dwarf expressions in addition to constants.

Ongoing Development

Current development is done on github branch vla.

Known implementations

There are at least two VLA implementations known to work with Fortran arrays/characters.


OngoingWork

None: VariableLengthArray (last edited 2013-10-23 13:01:34 by 134)

All content (C) 2008 Free Software Foundation. For terms of use, redistribution, and modification, please see the WikiLicense page.