[fpc-devel] RFC: DWARF DW_TAG_string_type -goDwarfFpd

Michael Van Canneyt michael at freepascal.org
Wed May 27 09:00:07 CEST 2026



On Tue, 26 May 2026, Martin Frb via fpc-devel wrote:

> I have updated 
> https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/683
>
> It should provide the new tag as specified by the DWARF documentation. 
> (including Dwarf-5 as that was added to FPC).
>
> Given that many debuggers don't yet implement it, or (as gdb) have bugs, like 
> failing for if the language is Pascal, I propose to add a new dwarf option.
> This also allows it to be combined with the existing -godwarfcpp => in case 
> of gdb actually of some interest (works for some string types).
>
> As for the name of the option, if there are better ideas....
>
> I also hope that this option (or if preferred an additional extra option 
> "goDwarfProperty" like "goDwarfWithSets") may be added for the new property 
> code (which is based on the not yet released DWARF-6).

Why not simply use -godwarf5/6 ?

Michael.


More information about the fpc-devel mailing list