Bug 22352 – DWARF array tags should not be ambiguous

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-03T16:32:30Z
Last change time
2021-10-05T13:27:09Z
Keywords
pull
Assigned to
No Owner
Creator
Luís Ferreira

Comments

Comment #0 by contact — 2021-10-03T16:32:30Z
Currently the compiler generates "_Array_struct" for array of structs and "_Array_<primitive_type>" for primitive types. This is ambiguous to represent symbols and debuggers should output this correctly when getting the pretty name DW_AT_type (0x000002ed "_Array_struct") Instead, something like the following should happen: DW_AT_type (0x000002e7 "app.A_A[]") This will also improve consistency between compiler implementations.
Comment #1 by dlang-bot — 2021-10-03T16:34:07Z
@ljmf00 created dlang/dmd pull request #13120 "dwarfdbginf: DWARF array tags should not be ambiguous" fixing this issue: - dwarfdbginf: DWARF array tags should not be ambiguous Fixes Issue 22352. Signed-off-by: Luís Ferreira <[email protected]> https://github.com/dlang/dmd/pull/13120
Comment #2 by dlang-bot — 2021-10-05T13:27:09Z
dlang/dmd pull request #13120 "dwarfdbginf: DWARF array tags should not be ambiguous" was merged into master: - 4774bd546b80e7f2437684525fc365fefe40fcf1 by Luís Ferreira: dwarfdbginf: DWARF array tags should not be ambiguous Fixes Issue 22352. Signed-off-by: Luís Ferreira <[email protected]> - df710eb7d6b84357ec289e881e0ceb7a593efb07 by Luís Ferreira: test: dshell: add tests for issue 22352 Signed-off-by: Luís Ferreira <[email protected]> https://github.com/dlang/dmd/pull/13120