[compiler-rt] [compiler-rt] dump registers for FreeBSD/i386 (PR #99702)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 14:14:53 PDT 2024


================
@@ -2262,6 +2262,18 @@ void SignalContext::DumpAllRegisters(void *context) {
   Printf("r14 = 0x%016llx  ", ucontext->uc_mcontext.mc_r14);
   Printf("r15 = 0x%016llx  ", ucontext->uc_mcontext.mc_r15);
   Printf("\n");
+#    elif defined(__i386__)
+  Report("Register values:\n");
+  Printf("eax = 0x%016llx  ", ucontext->uc_mcontext.mc_eax);
----------------
vitalybuka wrote:

for 32bit it should be 8char aligned

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


More information about the llvm-commits mailing list