Ddbg 0.0.4 alpha release

Sean Kelly sean at f4.ca
Thu Mar 8 08:10:36 PST 2007


Jascha Wetzel wrote:
> there is also a problem with Tango in Ddbg prior to 0.0.4.4, which i've
> just put on the website.
> 
> To enable Ddbg to catch unhandled exceptions in Tango applications, you
> need to rebuild Tango's phobos.lib after changing
> in tango\lib\compiler\dmd\dmain2.d, currently line 83
> bool trapException = true;
> to
> extern(C) bool trapException = true;
> 
> Here is why:
> With the default exception handler in dmain2.d enabled, Win32 will not
> report unhandled exceptions to the debugger.
> To not require the author of the debuggee to manually change this, just
> to be able to use the debugger for stack traces, Ddbg changes the value
> of no_catch_exceptions in standard Phobos to true and trapException to
> false before running the debuggee.
> However, the latter is only possible, if the address of that variable is
> exported.

Okay, that makes sense.  I don't suppose it could execute 
cr_trapExeptions(false) instead? :-)



More information about the Digitalmars-d-announce mailing list