[Issue 13726] Build Phobos and Druntime with stack frames enabled (-gs)

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Nov 13 15:50:35 PST 2014


https://issues.dlang.org/show_bug.cgi?id=13726

--- Comment #7 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to Vladimir Panteleev from comment #3)
> That said, I think it would be OK to remove stack frames from the release
> version of Phobos once we start shipping a debug version which works
> automatically with -debug via -debuglib.

Thinking about this more, I think this isn't the right approach. A debug build
of Phobos/Druntime (with optimizations/inlining disabled and/or assertions
enabled) would definitely have a huge performance impact. We just need stack
frames, so that the user/debugger can read any stack traces that go through
Phobos.

(In reply to Martin Nowak from comment #5)
> It's also possible to improve the exception unwinding to use additional info
> [1] for functions without a stack frame.
> 
> [1]: http://wiki.dwarfstd.org/index.php?title=Exception_Handling

I don't see how this is relevant. This is not about exception unwinding, but
seeing a stack trace in debugger or Druntime output so you know why your
program crashed.

--


More information about the Digitalmars-d-bugs mailing list