[Issue 4385] Uncaught exceptions should dump a core

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 21 07:13:10 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4385



--- Comment #2 from Sean Kelly <sean at invisibleduck.org> 2010-07-21 07:13:04 PDT ---
Oh you're right.  It works in C++ because C++ doesn't auto-report uncaught
exceptions, so when one passes out of main the process exits in some special
manner that preserves the call stack.  What I don't get is why this works with
object dtors that are run as the stack unwinds though.  In any case,  druntime
has an extern (C) bool called rt_trapExceptions that is used by debuggers to
enable some of this functionality, but it has to be set very early in the
startup process.  I guess I'll have to think about this one some more.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list