On 04.08.2010 07:26, David Bryant wrote: > Ok, > > I've added -L--export-dynamic to dmd.conf and done a copy/modify of > DefaultTraceInfo from runtime.d to include demangling and catch certain > signals. My backtraces now look gorgeous under Linux. > > I've attached the source for the updated module. > > Thanks, > Dave >
Nice work, but one question regarding signal handling: You throw an Error directly in the signal handler, isn't this quite dangerous? See for example http://en.wikipedia.org/wiki/Signal_(computing)#Risks (That's all theory though: in practice signal handling implementations are usually more robust.) -- Johannes Pfau