<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/59474>59474</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            LLVM13 lldb dwarf issue
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          vladexl
      </td>
    </tr>
</table>

<pre>
    Issue during debugging:

tests.canapp Failed to extract range list table at offset 0x0: parsing .debug_rnglists table at offset 0x0: unexpected end of data at offset 0x0 while reading [0x0, 0x4)

tests.canapp {0x00b5cd7d}: DIE has DW_AT_ranges(DW_FORM_sec_offset 0x279a) attribute, but range extraction failed (missing or invalid range list table), please file a bug and attach the file at the start of this error message

Attachment:
[issue.zip](https://github.com/llvm/llvm-project/files/10208697/issue.zip)

Compiled and linked with MinGW64:
gcc.exe -g -std=c++20
gcc.exe -g -shared  ... -Wl,-Bdynamic -lstdc++ -lole32 -loleaut32 -luuid

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk8-OmzAQxp_GXEZBjoEQDhySUKqVdlWpqppjNOAB3DoG2WaT7dNXJvunq3YPFRK25Jn55vuNBp1TvSEqWbZnWRXh7IfRlo8aJV111IzyqbxzbiaQs1WmB0nN3PfK9CzZMV4x_vz35LyLWzQ4TVCj0iTBj0BXb7H1YNH0BFo5Dx4bTYAexq5z5IFfOUt2MKF1QSBeFE7W9CHafRQ-G7pO1HqSQEbC2IFEj-_j4DIoTWAJZajMsn1IFgfg15SJ4sP2WR4CeZO1Mpcsr4JedfcJBnRQHU-7b6fFjmNiWx1P9ZevDydH7elVWOQFMlEAem9VM3sKms38QuGZiRoNdDdQTGzPyi32RwvKPKJW8i9moWVxgEkTOoIuWENo5h7QyKCF7QB-eHnxy915tAEJ-EE5IGtHC2dyDnv60_5uyT6T8W9jzfYqDD7-pSaWVUxsB-8nF95FzUTdKz_MTdyOZyZqrR9fjtVkxx_Ueibq0Ihjol5zwbebImeifiv5nv9hPE8LiuBFK_OTJFyUH-BBmc_HTfraVt-2MV0JVj2snJcsqVom9kzsBf9HwICWJEAcx7A6aiYOq718MnhWLay08_I5F1Z61JSI24mzX67zrOStZiTLRBZJgRGV603Ot1nKkyQayiyloiuSJGl5gc06zVsuM-KbLNk2XcqLSJWCC7EOX8rzdRJvUGSbTPImy5J1k3KWcjqj0nFgF4-2jxZEZVakeRppbEi7ZTmFMHSB5ZEJEXbVlgvvZu4dS_myLW9VvPKayvv77w_rBLSWDcgL2u5WIJqtLv97nEtqmOfS2-8AAAD__wNDWWQ">