-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

abort() is a msvcr(t) function, and it does not throw an exception, just
prints a message and terminates your program.
Well, actually, it does call SIGABRT handler before terminating. But
that's in-program, and isn't known to the debugger. And most libraries
don't install such handlers.

It might be helpful to manually add DebugBreak() or __debugbreak()
before all abort() calls mingw (and maybe gcc) do (there are multiple
uses of abort() in both libgcc and libmingw*). These calls generate
exceptions, which can be caught and handled by a debugger (in which case
the debugger breaks and allows you to examine the process), or left
unhandled (in which case your program crashes).

The difference between using abort() and using a debug break is that
debug break, if it goes unhandled, won't print the usual "requrested to
terminate blahblahblah" stuff, and the exception code that WER shows
will change from 0x40000015 to 0x80000003.

This is mostly a usability change. I, personally, really don't like when
a program i'm debugging suddenly dies for no reason.

Opinions?

- -- 
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJSA1VcAAoJEOs4Jb6SI2CwQj8IAN8zunSwnIePOl4B8jiyrMKi
Y1aI6jGEde1phXUJX5aigTVtrlrj5qu7QOn2l1LnA2v1Tk61lZyOq2iWKqWttbvp
3F+rHoGTbyYd5rZ6iDj7hBKrZjn7xkesB06RRZKQXtRZ5VcaSvtcXmxpeXloZVG9
PRoGODN/rU1bVPzxYMJULlm1FcvOWdkLKDxnnS1JPyPAh7j7wFnoNRZqfF194/+z
QICBvVtxts2umPH8B12uhzo5qz5Bw+JIRXc0LBG6QsCyW2oByxlZBHXVVliyZ78d
i0FE0NhvbNSNrhUoM/5eLbR8rlnuiUDChyYPyP3pfha17TmcJbsQLDuFkAanQUY=
=pk/m
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to