[Lldb-commits] [lldb] c31cb8b - [lldb][docs] Fix typo in frame-format docs
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 31 01:00:57 PDT 2025
Author: Michael Buch
Date: 2025-07-31T09:00:40+01:00
New Revision: c31cb8b9b88d824d8c7639dd7303cd1aa7674960
URL: https://github.com/llvm/llvm-project/commit/c31cb8b9b88d824d8c7639dd7303cd1aa7674960
DIFF: https://github.com/llvm/llvm-project/commit/c31cb8b9b88d824d8c7639dd7303cd1aa7674960.diff
LOG: [lldb][docs] Fix typo in frame-format docs
Added:
Modified:
lldb/docs/use/formatting.rst
Removed:
################################################################################
diff --git a/lldb/docs/use/formatting.rst b/lldb/docs/use/formatting.rst
index 39ccfed30a2ca..c5a880c392ce2 100644
--- a/lldb/docs/use/formatting.rst
+++ b/lldb/docs/use/formatting.rst
@@ -344,19 +344,19 @@ E.g., the following setting would reconstruct the entire function name (and is L
::
- (lldb) settings set plugin.cplusplus.dislpay.function-name-format "${function.return-left}${function.scope}${function.basename}${function.template-arguments}${function.formatted-arguments}${function.qualifiers}${function.return-right}${function.suffix}"
+ (lldb) settings set plugin.cplusplus.display.function-name-format "${function.return-left}${function.scope}${function.basename}${function.template-arguments}${function.formatted-arguments}${function.qualifiers}${function.return-right}${function.suffix}"
If a user wanted to only print the name and arguments of a C++ function one could do:
::
- (lldb) settings set plugin.cplusplus.dislpay.function-name-format "${function.scope}${function.basename}${function.formatted-arguments}"
+ (lldb) settings set plugin.cplusplus.display.function-name-format "${function.scope}${function.basename}${function.formatted-arguments}"
Then the following would highlight just the basename in green:
::
- (lldb) settings set plugin.cplusplus.dislpay.function-name-format "${function.scope}${ansi.fg.yellow}${function.basename}${ansi.normal}${function.formatted-arguments}"
+ (lldb) settings set plugin.cplusplus.display.function-name-format "${function.scope}${ansi.fg.yellow}${function.basename}${ansi.normal}${function.formatted-arguments}"
The ``${function.name-with-args}`` by default asks the language plugin whether it supports a language-specific ``function-name-format`` (e.g., the ``plugin.cplusplus.display.function-name-format`` for C++), and if it does, uses it. Otherwise it will display the demangled function name.
More information about the lldb-commits
mailing list