← Back to index
|
Original Bugzilla link
Bug 21157 – DWARF: DW_TAG_decl_file and DW_TAG_decl_line are not produced
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2020-08-13T15:15:49Z
Last change time
2021-10-31T00:37:49Z
Assigned to
No Owner
Creator
LucienPe
Comments
Comment #0
by lucien.perregaux — 2020-08-13T15:15:49Z
... 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") ---
Comment #1
by contact — 2021-10-18T22:44:52Z
*** Issue 22424 has been marked as a duplicate of this issue. ***
Comment #2
by dlang-bot — 2021-10-19T17:16:45Z
@ljmf00 created dlang/dmd pull request #13204 "backend: dwarf: add DW_AT_decl attributes to variables" mentioning this issue: - backend: dwarfdbginf: add DW_AT_decl attributes to DW_TAG_variable tags Fixe issue #21157 . Signed-off-by: Luís Ferreira <
[email protected]
>
https://github.com/dlang/dmd/pull/13204
Comment #3
by dlang-bot — 2021-10-20T14:48:58Z
dlang/dmd pull request #13204 "backend: dwarf: add DW_AT_decl attributes to variables" was merged into master: - b7ad7f86d856b208c6b43a015e9dfd2c0a5558bc by Luís Ferreira: backend: dwarfdbginf: add DW_AT_decl attributes to DW_TAG_variable tags Fixe issue #21157 . Signed-off-by: Luís Ferreira <
[email protected]
>
https://github.com/dlang/dmd/pull/13204