[Lldb-commits] [lldb] [lldb] Add constant value mode for RegisterLocation in UnwindPlans (PR #100624)

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 25 15:23:33 PDT 2024


================
@@ -153,6 +155,9 @@ void UnwindPlan::Row::RegisterLocation::Dump(Stream &s,
     if (m_type == atDWARFExpression)
       s.PutChar(']');
   } break;
+  case isConstant:
+    s.Printf("=%x", m_location.offset);
----------------
jasonmolenda wrote:

Should the Printf be `("=0x%" PRIx64, m_location.constant_value)`?  If you do an unwind with one of these register locations in use, we should see this output when the unwind engine shows the unwind rules being used for this function.

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


More information about the lldb-commits mailing list