Hardware breakpoints support on loongarch64 has been added and available since LLVM 20, but older glibcs and musl 1.2.5 (the latest release) don't ship corresponding macro 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.