[Lldb-commits] [lldb] [lldb][FreeBSDKernel] Supply values for CS/SS registers (PR #192207)

Minsoo Choo via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 15 01:44:02 PDT 2026


================
@@ -58,6 +58,9 @@ bool RegisterContextFreeBSDKernelCore_x86_64::ReadRegister(
     llvm::support::ulittle64_t rip;
   } pcb;
 
+  constexpr unsigned short CODE_SEL = 4 << 3;
----------------
mchoo7 wrote:

They conflict with `segment.h`. I think that's why KGDB uses CODE_SEL/DATA_SEL instead.

https://github.com/llvm/llvm-project/pull/192207


More information about the lldb-commits mailing list