On 28-2-2013 9:24, Reinier Olislagers wrote: > The test program works (I've put in a writeln to show it's modified) but > debugging in Lazarus doesn't because it misses debug info. > > 1. Is what I am doing the right way? > 2. Is there a problem with FPC generating no debug info/duplicate debug > info? I've tried both with stabs and dwarf, with standard FPC 2.6.0 > without debug info as well as FPC trunk with -gw2 -godwarfsets -gl > Martin found problems with missing debug info in my log [1] > > > [1] Discussion on > http://lazarus.freepascal.org/index.php/topic,20066.0.html > Test program in this post: > http://lazarus.freepascal.org/index.php/topic,20066.msg115278.html#msg115278
Martin's post: http://lazarus.freepascal.org/index.php/topic,20066.msg115300.html#msg115300 > I checked your new code again (just with GDB 7.5): > > It claims, that the exe contains no code for "TFPReaderTiff.ReadImgValue" > (from your unit). > > It does not matter if that claim is right or wrong. If the claim is wrong, it > still can not be fixed in the IDE. > > ------- > I put a writeln in there. And it gets called. So gdb/fpc or linker is wrong. > > It seems to be the linker. At least on windows. If I use -Xe (external > linker) then it works. > > > So you an check with the FPC team if this is a known issue with the build in > linker, or if you should report it as a bug. 3. Is this a known issue with the built-in linker or should I report a bug? Thanks, Reinier _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal