A working backtrace for linux

Graham St Jack Graham.StJack at internode.on.net
Tue Aug 3 20:45:23 PDT 2010


On 04/08/10 12:47, Brad Roberts wrote:
> On 8/3/2010 8:09 PM, Sean Kelly wrote:
>    
>> Graham St Jack Wrote:
>>      
>>> Sean, is there any chance of you rolling some of the good stuff in this
>>> code into druntime?
>>>
>>> In particular, it would be very nice to get symbol names in a stacktrace
>>> rather than a bunch of addresses, and even nicer to get a stacktrace on
>>> a SIGSEGV.
>>>        
>> You can get the symbol names by adding -L--export-dynamic to your DFLAGS in dmd.conf.  That option is on by default on OSX and I didn't realize it was different on Linux.  I'll sort out demangling as well, it's just a bit more work.  I like the stack trace code provided, but it uses a lot of modules that aren't available to druntime so it would be difficult to use directly.
>>      
> see also my notes in bug 1001, the one all about this topic.
>    
Thanks for the heads-up - I will keep a closer eye on the bug-list in 
future. Its great to see all the action going on under the hood.

-- 
Graham St Jack



More information about the Digitalmars-d mailing list