On 12/06/2012 16:08, Antonio Fortuny wrote:

can you try

gdb.exe /*c:\sources\compiled\TestUib.Exe*/

info line *0x0040D628
(gdb) info line *0x0040D628
No line number information available for address
  0x40d628 <SYSTEM_REALLOCMEM$POINTER$LONGWORD$$POINTER+8>
(gdb)
Ok, so that address is in the unit System from the RTL (fpc)

The RTL has no line-info. So it can not be resolved.
You can recompile it, but that wouldn't solve the problem. Because, then there would be the line in the System unit in the trace, and still not your code.

/*Call trace for block $001D62B0 size 16*/ <<======== my block, looks OK
/*  $0040D628 <<line ?? in unit System>>
  $004FAA4E  TCONTROL__CLICK,  line 2735 of ./include/control.inc
*/
Now that means there is no entry for your TForm1.Button1Clicked procedure....

I can only guess: The compiler inlined the ReAllocMem into your Button1Clicked .
So the frame is Button1Clicked, but the Address is not.

Did you compile wit optimization -O ? OR otherwise enabled inlining? Please try with -O0 (letter O, then zerro).

Better yet in the "Project Options" dialog go to "Compiler Opts" / "Other" and in the field "Custom Options" enter:
 -O-


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

Reply via email to