<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
I added an MR to start on DWARF-5.<br>
<br>
Then I started looking at proper (following the standard) "class
var" implementation.<br>
<br>
The DWARF site I can manage, but finding stuff in the compiler.... I
could need some help please.<br>
<br>
<a class="moz-txt-link-freetext" href="https://gitlab.com/martin_frb/fpc-src/-/commit/a5e8c6595ce44bab0bbaf7609542c6d79a263258">https://gitlab.com/martin_frb/fpc-src/-/commit/a5e8c6595ce44bab0bbaf7609542c6d79a263258</a><br>
<br>
The standard says, in DWARF-5 <br>
type TFOo = class<br>
class var ScopedGlobal: integer;<br>
end;<br>
<br>
should be a DW_TAG_Variable inside the structure type (where older
dwarf would only allow DW_TAG_Member).<br>
<br>
<br>
- Ignoring that the commit currently is not limiting this to Dwarf 5
(that can be fixed,when I get through the rest). <br>
<br>
1) How to I get the "sym" that I need<br>
2) How to I get the name (the commented approach crashes)<br>
3) How to I prevent the "_static_foo_field" from being added as
global var? <br>
<code><span class="p"></span><span class="n">sp_static</span><span
class="k"> may be used by vars that arent fields in a class, and
then still need to go global?<br>
<br>
<br>
What else may I have overlooked?</span></code>
</body>
</html>