I added an MR to start on DWARF-5.

Then I started looking at proper (following the standard) "class var" implementation.

The DWARF site I can manage, but finding stuff in the compiler.... I could need some help please.

https://gitlab.com/martin_frb/fpc-src/-/commit/a5e8c6595ce44bab0bbaf7609542c6d79a263258

The standard says, in DWARF-5
type TFOo = class
   class var ScopedGlobal: integer;
end;

should be a DW_TAG_Variable inside the structure type (where older dwarf would only allow DW_TAG_Member).


- Ignoring that the commit currently is not limiting this to Dwarf 5 (that can be fixed,when I get through the rest).

1) How to I get the "sym" that I need
2) How to I get the name (the commented approach crashes)
3) How to I prevent the "_static_foo_field" from being added as global var?
|sp_static may be used by vars that arent fields in a class, and then still need to go global?


What else may I have overlooked?|
_______________________________________________
fpc-devel maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to