Stack tracing assert for linux/D2
BCS
none at anon.com
Thu Mar 4 21:06:40 PST 2010
I just created a module that generates stack traces on asserts (D2):
http://www.dsource.org/projects/scrapple/browser/trunk/backtrace_assert/debugging.d
Just compile and link it.
It does have some not exactly ideal bits:
-it won't work nicely unless you link with gcc and add the -rdynamic flag.
-accessing some of the posix stuff fubared my link (unresolved ModuleInfos)
so I had to add the prototypes directly (yuck)
-it uses the c function dprintf that on some system does what I want (print
to a low level file stream) and on some system does something totaly different.
-it has the expected executable name and the location of addr2line hard coded
(any ideas on how to fix these issues welcomed)
--
... <IXOYE><
More information about the Digitalmars-d-announce
mailing list