This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29635] New: debug info of modules
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Oct 2006 14:02:25 -0000
- Subject: [Bug fortran/29635] New: debug info of modules
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ cat a.f90
module foo
integer i
end module foo
use foo
print *, i
end
$ ifort -g -c a.f90
$ readelf -wi a.o
The section .debug_info contains:
Compilation Unit @ offset 0x0:
Length: 167
Version: 2
Abbrev Offset: 0
Pointer Size: 4
<0><b>: Abbrev Number: 1 (DW_TAG_compile_unit)
DW_AT_comp_dir : /tmp
DW_AT_language : 14 (Fortran 95)
DW_AT_name : a.f90
DW_AT_producer : Intel (R) Fortran Compiler Fixes RangesRelative
DW_AT_stmt_list : 0
<1><4d>: Abbrev Number: 2 (DW_TAG_module)
DW_AT_decl_line : 1
DW_AT_decl_column : 7
DW_AT_decl_file : 1
DW_AT_name : FOO
<2><55>: Abbrev Number: 3 (DW_TAG_variable)
DW_AT_decl_line : 2
DW_AT_decl_column : 11
DW_AT_decl_file : 1
DW_AT_accessibility: 1 (public)
DW_AT_name : i
DW_AT_type : <68>
DW_AT_location : 5 byte block: 3 0 0 0 0 (DW_OP_addr: 0)
DW_AT_external : 1
<1><68>: Abbrev Number: 4 (DW_TAG_base_type)
DW_AT_byte_size : 4
DW_AT_encoding : 5 (signed)
DW_AT_name : INTEGER(4)
<1><76>: Abbrev Number: 4 (DW_TAG_base_type)
DW_AT_byte_size : 0
DW_AT_encoding : 5 (signed)
DW_AT_name : void
<1><7e>: Abbrev Number: 5 (DW_TAG_subprogram)
DW_AT_decl_line : 6
DW_AT_decl_column : 1
DW_AT_decl_file : 1
DW_AT_calling_convention: 2 (program)
DW_AT_accessibility: 1 (public)
DW_AT_name : main$a_$BLK
DW_AT_type : <76>
DW_AT_prototyped : 0
DW_AT_high_pc : 0x6a
DW_AT_low_pc : 0x6
DW_AT_external : 1
<2><9e>: Abbrev Number: 6 (DW_TAG_imported_declaration)
DW_AT_decl_line : 6
DW_AT_decl_column : 1
DW_AT_decl_file : 1
DW_AT_import : <55>
--
Summary: debug info of modules
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: wrong-debug
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fxcoudert at gcc dot gnu dot org
OtherBugsDependingO 24546
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29635