[Lldb-commits] [lldb] [lldb] Start using formatv() in RegisterContextUnwind (NFCI) (PR #191576)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 13 08:49:07 PDT 2026


================
@@ -2169,8 +2191,9 @@ lldb::addr_t RegisterContextUnwind::GetReturnAddressHint(int32_t plan_offset) {
                 *next->m_sym_ctx.symbol))
       hint += *expected_size;
     else {
-      UnwindLogMsgVerbose("Could not retrieve parameter size: %s",
-                          llvm::toString(expected_size.takeError()).c_str());
+      Log *log = GetLog(LLDBLog::Unwind);
+      UNWIND_LOG_VERBOSE(log, "Could not retrieve parameter size: {0}",
----------------
DavidSpickett wrote:

It's fine to get the log in the same line:
```
UNWIND_LOG_VERBOSE(GetLog(LLDBLog::Unwind), ...
```

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


More information about the lldb-commits mailing list