[Issue 21157] New: DWARF: DW_TAG_decl_file and DW_TAG_decl_line are not produced
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 13 15:15:49 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21157
Issue ID: 21157
Summary: DWARF: DW_TAG_decl_file and DW_TAG_decl_line are not
produced
Product: D
Version: D2
Hardware: All
OS: Linux
Status: NEW
Severity: minor
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: lucien.perregaux at gmail.com
... for any symbol other than DW_TAG_subprogram
Example with DW_TAG_variable:
---
module bar;
int i;
void main()
{
}
---
DMD:
---
0x00000082: DW_TAG_variable
DW_AT_name ("_D3bar1ii")
DW_AT_type (0x0000007b "int")
DW_AT_external (0x01)
DW_AT_location (DW_OP_const8u 0x10,
DW_OP_GNU_push_tls_address)
---
LDC:
---
0x0000002f: DW_TAG_variable
DW_AT_name ("i")
DW_AT_type (0x000000a2 "int")
DW_AT_external (true)
DW_AT_decl_file ("src/main.d")
DW_AT_decl_line (3)
DW_AT_location (DW_OP_const8u 0x0,
DW_OP_GNU_push_tls_address)
DW_AT_linkage_name ("_D3bar1ii")
---
--
More information about the Digitalmars-d-bugs
mailing list