[fpc-devel] dwarf debug info bugs

Paul Ishenin ip at kmiac.ru
Fri Dec 4 10:06:13 CET 2009


Hello,  FPC developers' list.

Today I tried drawf on windows again and found some new bugs.

1) Gdb outpus the next strings for RTL units:
 
file="../objpas/classes/lists.inc",fullname="D:/programming/fpc/rtl/win32/../objpas/classes/lists.inc",line="600"

D:/programming/fpc/rtl/win32/../objpas/classes/lists.inc does not look 
good :)

2) <-exec-next> steps very strange in the procedures:

1. procedure OutputV(V: Variant);
2. begin
3.  WriteLn(V);
4. end;

5. var
6.  V: Variant;
7. begin
8.  V := 'Test';
9.  OutputV(V);
10. ...

- line 9: -exec-step
  - line 3: -exec-next            { Why line3 instead of line2?    }
  - line 4: -exec-next            { correctly stepped to Line4     }
  - line 3: -exec-next            { Why we are back to Line3 ?     }
  - line 4: -exec-next            { We are still inside the OuputV }
  - line 10:                      { finally we can exit            }

It is hard to debug something when stepping works non-reliable.

Stabs works more correctly here.

--
Best regards,
Paul Ishenin.




More information about the fpc-devel mailing list