Stack tracing on Linux ?

Christopher Wright dhasenan at gmail.com
Fri Apr 3 10:24:25 PDT 2009


Georg Wrede wrote:
> Fawzi Mohamed wrote:
>> Well inlined functions will have no frame, also last call optimization 
>> (tail optimization) removes the frame.
> 
> If I were to write a compiler, then using "-g -debug", etc. would make 
> sure neither happens!

However, closures in D1 have a stack frame that is within the creating 
function's stack frame, and gdb assumes that means a corrupt stack. 
There's no real way around this.



More information about the Digitalmars-d mailing list