[fpc-devel] gdb and stopping at the begin line

Martin lazarus at mfriebe.de
Fri Jun 3 01:03:03 CEST 2011


Having just reported http://bugs.freepascal.org/view.php?id=19466
I started wondering (to late, should have done before the report) and 
googled.

It appears that gdb has a "feature" to skip function prologue and 
epilogue. However I could not find any info on what info gdb uses to 
know what is the prologue.
So it is possible that something tells gdb that the code on which no 
stop occurs is the proluge.

does FPC declare this proluge in some form?

References to proluge that I found:
http://sourceware.org/bugzilla/show_bug.cgi?id=12644
http://lists.gnu.org/archive/html/avr-gcc-list/2003-06/msg00011.html

this one sounds like gdb tries to be (too) smart:
http://sourceware.org/gdb/onlinedocs/gdbint/Algorithms.html



More information about the fpc-devel mailing list