<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,<br>
</p>
<div class="moz-cite-prefix">Στις 25/9/2022 2:50 μ.μ., ο/η Christo
Crause έγραψε:<br>
</div>
<blockquote type="cite"
cite="mid:CAGOmfbFFYzqxe7a-4p3Uxbkk7uU-bSTDKfeCraCNJfngf22F=Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, Sep 24, 2022 at 9:41
AM Dimitrios Chr. Ioannidis via fpc-devel <<a
href="mailto:fpc-devel@lists.freepascal.org"
moz-do-not-send="true" class="moz-txt-link-freetext">fpc-devel@lists.freepascal.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
it seems that there is another DWARF bug regarding
objects in units.<br>
8<---------------------------- </blockquote>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">(gdb) s<br>
UTESTOBJs_sTTESTOBJ_s__ss_DOSOMETHING () at utestobj.pas:16<br>
16 x := 5;<br>
(gdb) print x<br>
No symbol "x" in current context.<br>
<br>
</blockquote>
<div><br>
</div>
<div>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.<br>
</div>
</div>
</div>
</blockquote>
<p>I created a bug report,
<a class="moz-txt-link-freetext" href="https://gitlab.com/freepascal.org/fpc/source/-/issues/39920">https://gitlab.com/freepascal.org/fpc/source/-/issues/39920</a> .</p>
<p>regards,</p>
<p>-- <br>
</p>
<p>Dimitrios Chr. Ioannidis<br>
</p>
</body>
</html>