[Bug fortran/17905] allocated arrays not visible with gdb

woodzltc at sources dot redhat dot com gcc-bugzilla@gcc.gnu.org
Thu Jun 30 08:48:00 GMT 2005


------- Additional Comments From woodzltc at sources dot redhat dot com  2005-06-30 08:48 -------
For array, ifc will output the following debuginfo:

 <2><7e>: Abbrev Number: 4 (DW_TAG_variable)   ====>  TAG for variable "array"
     DW_AT_decl_line   : 2
     DW_AT_decl_column : 42
     DW_AT_decl_file   : 1
     DW_AT_accessibility: 1     (public)
     DW_AT_name        : array
     DW_AT_type        : <99>    ====> next TAG, indicating that it is an array
     DW_AT_location    : 5 byte block: 3 50 23 9 8      (DW_OP_addr: 8092350)
     DW_AT_external    : 0
     DW_AT_start_scope : 26

 <1><99>: Abbrev Number: 5 (DW_TAG_array_type)
     DW_AT_ordering    : 1      (column major)
     DW_AT_type        : <cb>
     DW_AT_data_location: 2 byte block: 97 6    (DW_OP_push_object_address;
DW_OP_deref)
     DW_AT_allocated   : 11 byte block: 97 10 c 22 6 c 1 0 0 0 1a      
(DW_OP_push_object_address; DW_OP_constu: 12; DW_OP_plus; DW_OP_deref;
DW_OP_const4u: 1; DW_OP_and)

If gfortran could output similar debuginfo, gdb could handle it correctly. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |woodzltc at sources dot
                   |                            |redhat dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17905



More information about the Gcc-bugs mailing list