Bug 22471 – DWARF: generated main is not marked as DW_AT_artificial
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-11-03T10:56:55Z
Last change time
2021-11-28T07:43:14Z
Keywords
pull
Assigned to
No Owner
Creator
Luís Ferreira
Comments
Comment #0 by contact — 2021-11-03T10:56:55Z
According to DWARF standard:
> Any debugging information entry representing the declaration of an object or
> type artificially generated by a compiler and not explicitly declared by the source
> program may have a DW_AT_artificial attribute, which is a flag.
This is the case when `-main` flag is passed to the compiler.
Comment #1 by dlang-bot — 2021-11-14T21:35:05Z
@ljmf00 created dlang/dmd pull request #13301 "backend: dwarfdbginf: add DW_AT_artificial to main subprogram when generated" fixing this issue:
- backend: dwarfdbginf: add DW_AT_artificial to main subprogram when generated
Fixes 22471.
Signed-off-by: Luís Ferreira <[email protected]>
https://github.com/dlang/dmd/pull/13301
Comment #2 by dlang-bot — 2021-11-28T07:43:14Z
dlang/dmd pull request #13301 "backend: dwarfdbginf: add DW_AT_artificial to main subprogram when generated" was merged into master:
- c3292e2f4ab55aebdfca9fad1bae541fb7976252 by Luís Ferreira:
backend: dwarfdbginf: add DW_AT_artificial to main subprogram when generated
Fixes 22471.
Signed-off-by: Luís Ferreira <[email protected]>
https://github.com/dlang/dmd/pull/13301