Stack tracing on Linux ?

Fawzi Mohamed fmohamed at mac.com
Fri Apr 3 14:43:31 PDT 2009


On 2009-04-03 19:24:25 +0200, Christopher Wright <dhasenan at gmail.com> said:

> 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.

Now this is more clear, thanks!




More information about the Digitalmars-d mailing list