Bug 21160 – DWARF: DW_AT_main_subprogram should be emitted for _Dmain

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2020-08-13T15:48:50Z
Last change time
2021-10-21T21:44:35Z
Keywords
pull
Assigned to
No Owner
Creator
LucienPe

Comments

Comment #0 by lucien.perregaux — 2020-08-13T15:48:50Z
So that the debugger knows that it is the starting function instead of the main() in entrypoint.d.
Comment #1 by dlang-bot — 2021-10-18T23:51:20Z
@ljmf00 created dlang/dmd pull request #13200 "backend: dwarfdbginf: DW_AT_main_subprogram should be emitted for _Dmain" fixing this issue: - backend: dwarfdbginf: DW_AT_main_subprogram should be emitted for _Dmain Fix issue #21160. Signed-off-by: Luís Ferreira <[email protected]> https://github.com/dlang/dmd/pull/13200
Comment #2 by dlang-bot — 2021-10-21T21:44:35Z
dlang/dmd pull request #13200 "backend: dwarfdbginf: DW_AT_main_subprogram should be emitted for _Dmain" was merged into master: - 5ce393d5530ff89257a6dd9ca71c146df700dd5b by Luís Ferreira: backend: dwarfdbginf: DW_AT_main_subprogram should be emitted for _Dmain Fix issue #21160. Signed-off-by: Luís Ferreira <[email protected]> https://github.com/dlang/dmd/pull/13200