<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 30/04/2026 00:50, Pierre Muller via
      fpc-devel wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:01123c38-fe7d-4645-8d64-fb1e4f72e5c0@freepascal.org"><br>
        I tried recently to use dwarfdump, a standard unix utility,
      <br>
      and this tool does indeed list a few issues with
      <br>
      the DWARF information generated by Free Pascal.
      <br>
      <br>
        I didn't have time to investigate these issues.</blockquote>
    <br>
    I just did try myself.<br>
    <br>
    The list definitely includes false positives.<br>
    <span style="font-family:monospace"><span
        style="color:#000000;background-color:#ffffff;">dwarfdump [Mar
         6 2026 19:38:46 (libdwarf 2.3.1 dwarfdump 2.3.1)]</span><br>
      And the latest 3.3.1 fpc<br>
      <br>
      <br>
      Proof?<br>
    </span><span style="font-family:monospace"><span
        style="color:#000000;background-color:#ffffff;">*** DWARF CHECK:
        DW_TAG_compile_unit -> DW_TAG_interface_type: tag-tree
        relation is not standard. ***</span><br>
      <br>
      <br>
      1) The dwarf docs don't say anything that wouldn't allow this. And
      as other types are declared in the CU, where else should an intf
      be?<br>
      <br>
      2) From dwarfdump sources<br>
<a class="moz-txt-link-freetext" href="https://github.com/avast/libdwarf/blob/master/libdwarf/dwarfdump/tag_tree.list">https://github.com/avast/libdwarf/blob/master/libdwarf/dwarfdump/tag_tree.list</a><br>
      <br>
      2a)
      <blockquote type="cite"> Since DWARF is generally descriptive, not
        prescriptive,<br>
            this list is at best a current understanding of<br>
            appropriate practice.  Moreover the the dwarf standard<br>
            does not actually list the tag-tag dependencies.<br>
            So mistakes in the list below is certainly possible.</blockquote>
      <br>
      <br>
      2b)<br>
    </span><span style="font-family:monospace"><span
        style="color:#000000;background-color:#ffffff;">DW_TAG_interface_type
        is not listed as possible child to any of the other tags.<br>
        <br>
        It is only listed as a parent specifying which children it can
        have.<br>
        So given the list in the above file, it couldn't be used
        anywhere at all.<br>
        <br>
        <br>
      </span></span>
  </body>
</html>