<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 26/03/2023 15:50, Florian Klämpfl
via fpc-devel wrote:<br>
</div>
<blockquote type="cite"
cite="mid:e19898a9-dac0-c889-f183-e906a814671c@freepascal.org">Am
23.03.23 um 09:45 schrieb Martin Frb via fpc-devel:
<br>
<br>
It's a little hard to comment all at once, but at least I start
with one :)
<br>
<br>
<blockquote type="cite">4) "official" marker for string vs pchar
vs array
<br>
<br>
</blockquote>
<br>
What about using DW_TAG_string_type for this? IIRC, when I
implemented dwarf, it was not available/not supported, but fpdebug
can do they. I am not sure about the status of GDB about it though
:)
<br>
</blockquote>
<br>
That would work. <br>
But it can't distinguish between strings of char or widechar. I.e.
it can only be used for short and long-string(ansi). But not
WideString or <span class="id"></span><span class="content">UnicodeString.<br>
Only DWARF 5 introduces a "</span><span class="content">DW_AT_type"
for </span><span class="content">DW_TAG_string_type that can then
define the base type for each char.<br>
Ignoring gdb, fpc could add that for lower dwarf versions too.<br>
<br>
<br>
</span>It also would fall short, if ever Fpc did what Delphi did:
{$ZEROBASEDSTRINGS }
<br>
Though, maybe that is a "wont ever happen".<br>
<br>
<br>
It still needs to be added to fpdebug, but that will be easy.<br>
It is present in gdb sources, but I have no idea how well it will
then work.<br>
<br>
<br>
</body>
</html>