[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 03:49:16 PDT 2026
DavidSpickett wrote:
> I didn't replace all function calls with macros because there are too many of them for one PR. This only replaces calls whose format string contains no specifiers or only '%s' specifiers.
That's sensible but can I just confirm that the motivation for this work is to tackle uses like:
```
UnwindLogMsg("with pc value of 0x%" PRIx64 ", symbol name is '%s'",
current_pc, GetSymbolOrFunctionName(m_sym_ctx).AsCString(""));
```
Where we don't have to predict the format specifier, and we can pass in StringRefs and other things directly.
(will review the changes later today)
https://github.com/llvm/llvm-project/pull/191576
More information about the lldb-commits
mailing list