Minsoo Choo 3f65a03e8a
[lldb][Process/FreeBSDKernelCore] Add assertion for pcb (#183969)
pcb layout is not stable yet so it can be changed anytime on FreeBSD
side. Changes to pcb might not be reflected to FreeBSD source tree or
upstream LLDB possibly because the developer forgot to do so, which
breaks kernel debugging functionality. This patch adds assertion thus
LLDB cannot be built if its expected pcb layout doesn't match the real
one. This assertion is only enabled when the build machine architecture
matches `RegisterContextFreeBSDKernelCore_<arch>`.

Due to identifier conflict, I had to lower PCB_FP and PCB_LR.

---------

Signed-off-by: Minsoo Choo <minsoochoo0122@proton.me>
2026-03-12 12:38:29 -04:00
..