[Issue 20460] [OSX] Stack traces involving extern(C++) can show wrong file / line
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 13 10:59:13 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20460
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
@Geod24 created dlang/dmd pull request #10722 "Fix issue 20460: Stack traces
involving extern(C++) can show wrong file/line" fixing this issue:
- Fix issue 20460: Stack traces involving extern(C++) can show wrong file/line
The comment mentions writing the 'function prologue',
but this seems to be a long-gone heritage (perhaps from DM exceptions?)
Before this change, some functions would have their 'end' address
set at the end of the next file's last function,
which in practice would mean that the last function in the module
would 'eat' the whole file, and all the stack traces would point
to the same line.
This was witnessed with extern(C++) and the _Dmain function.
https://github.com/dlang/dmd/pull/10722
--
More information about the Digitalmars-d-bugs
mailing list