[Issue 4385] Uncaught exceptions should dump a core

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


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



--- Comment #3 from Leandro Lucarella <llucax at gmail.com> 2010-07-21 07:53:06 PDT ---
(In reply to comment #2)
> Oh you're right.  It works in C++ because C++ doesn't auto-report uncaught
> exceptions,

GCC does, when using the verbose termination handler (which has been the
default for some time now):
http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt02ch06s02.html

> 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.

OK, thanks.

-- 
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