On 13/06/2012 13:22, Bernd wrote:
2012/6/13 Martin<[email protected]>:

But, from looking at the assembler code, it seems that it does not setup a
stackframe as other code does. I **guess** the stuck dumpng code has a
problem with this minimal frame.
If it omits the stackframe then something (probably the RTL) was
compiled with optimizations turned on. I can reproduce it too with
default settings but here are three simple steps how to get a complete
backtrace:


The interesting point is, that if I step into reallocmem, GDB can display the correct stackframe.

But FPC skips one frame. And the strange thing is: FPC includes the frame (the address in the frame) that does not have the full stackframe code (push... / leave). But it excludes the frame that called this optimised frame.



--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to