Hi,

Στις 25/9/2022 2:50 μ.μ., ο/η Christo Crause έγραψε:
On Sat, Sep 24, 2022 at 9:41 AM Dimitrios Chr. Ioannidis via fpc-devel <fpc-devel@lists.freepascal.org> wrote:

    Hi,

       it seems that there is another DWARF bug regarding objects in
    units.
8<----------------------------
    (gdb) s
    UTESTOBJs_sTTESTOBJ_s__ss_DOSOMETHING () at utestobj.pas:16
    16        x := 5;
    (gdb) print x
    No symbol "x" in current context.


I can confirm the same problem with FPC main.  The problem is also present in FPC 3.2.2 on Linux 64 bit. Looking at the debug info suggests that the information for the DoSomething method is omitted when declaring an object type, but with advanced records the method info is emitted.

I created a bug report, https://gitlab.com/freepascal.org/fpc/source/-/issues/39920 .

regards,

--

Dimitrios Chr. Ioannidis
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to