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

    <tr>
        <th>Summary</th>
        <td>
            Backport 50ae1c7 ("[LLDB][LoongArch] Fix build errors about NT_LOONGARCH_HW_{BREAK,WATCH}") to LLVM 20
        </td>
    </tr>

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

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

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

<pre>
    Hardware breakpoints support on loongarch64 has been added and available since LLVM 20, but older glibcs and musl 1.2.5 (the latest) don't ship the corresponding register definition in system headers, which causes building failures of LLDB.

I've checked the patch could be applied to LLVM 20.1.2, fixing the issue.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxMkklv2zAQhX8NdRlEkEZbdNDBS10XdRMgCJpjwGUssaFJgaScpL--oJKiPZHA8M038x55CHq0RANrtqzZZ3yJk_PDb_3OHVZVJpx6H47cq1fuCYQn_jI7bWOAsMyz8xGcBeOcHbmXU1vDxAMIIgtcKVLArQJ-5dpwYQiCtpLgdPr5A7BguAOxRHBGkYfRaCHD-v6yBANljnkDDG_jRGB4pBAZ9qCcZdhFCJOeIZWk857C7KzSdgRPow6RPCg6a6ujdha0hfAeIl1gIq7IhwR-nbScQPIlUACxaLPKz1ybxVMAd4bTab_NWbFhxeYbw-5KICeSL6RW7Mxj0rvFKBAEfJ6NTiX3d7u8zDGBzvotdU4aHcJCeaaGSvVVzzMayq6uug7busymoUfR1W1foex4T7LtCuwrWZTtLVaib28zPWCBTVEXdVmVHZZ5UfStKlA1shei71pWF3Th2uTGXC-582O2IoeySpjMcEEmrEkjWnr9GIghpuD9kEQ3YhkDqwujQwz_2kQdDQ1bLl_WyJuCUym7lM6q3iavWLNPt_QVNl5OrNnDQb99eAvkvfMBuHBLhLvH59P9_d3XzcPu-Hx8embddvvwZfOd4e5p87g7sm6f2mL_n53Z4s0wxTgHVm0YHhgeRh2nReTSXRge0qifx83s3S-SkeFhXTAwPHw6cB3wTwAAAP__xnbxWQ">