[Lldb-commits] [lldb] [lldb][Format] Make function name frame-format variables work without debug-info (PR #137408)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 28 02:38:22 PDT 2025


Michael137 wrote:

> As for the syntax for alternatives, I was suggesting (privately, I think) to use :-, as that what [bash](https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html) uses for conditional expansion (and the formatter language feels more like bash than C). However, I am having some doubts about that now since the way you're thinking of using it is not exactly bash-like (the :- thingy only works for a single variable, but I think you want to mostly use it on the block level (and bash doesn't have blocks))

Would the syntax be `${some.variable :- fallback.variable}`? Which would try the first and if that fails try the fallback? This would work for my use-case. I.e., `${function.formatted-arguments :- function.arguments}`

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


More information about the lldb-commits mailing list