Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-02

Copying over one .pas and modifying it - problem with debug info or... me

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Reinier Olislagers

Cryptic subject, isn't it?

I tried to modify fpreadtiff.pas by copying only that module over to a new directory, write a test program that uses fpreadtiff, fpimage and other units.

AFAIK from the User's Guide, 3.1.2, the fpreadtiff.pas in my program's directory should have been found first when searching for fpreadtiff, while other units are found in the search path (because they're not in my program directory).

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

Thanks,
Reinier

Reply by email

Reinier Olislagers
to Reinier Olislagers
Reinier Olislagers wrote 14 lines
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

Show quoted text 13 lines
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

Reply by email