[Lldb-commits] [PATCH] D137000: [lldb] Make callback-based formatter matching available from the CLI.

Jorge Gorbe Moya via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 28 17:15:35 PDT 2022


jgorbe created this revision.
jgorbe added reviewers: jingham, labath.
jgorbe added a project: LLDB.
Herald added a subscriber: JDevlieghere.
Herald added a project: All.
jgorbe requested review of this revision.

This change adds a `--recognizer-function` (`-R`) to `type summary add`
and `type synth add` that allows users to specify that the names in
the command are not type names but python function names.

It also adds an example to lldb/examples, and a section in the data
formatters documentation on how to use recognizer functions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137000

Files:
  lldb/docs/use/variable.rst
  lldb/examples/synthetic/recognizer_function/example.py
  lldb/examples/synthetic/recognizer_function/lldb-commands
  lldb/examples/synthetic/recognizer_function/program.cpp
  lldb/source/Commands/CommandObjectType.cpp
  lldb/source/Commands/Options.td
  lldb/test/API/functionalities/data-formatter/callback-matching/TestDataFormatterCallbackMatching.py
  lldb/test/API/functionalities/data-formatter/callback-matching/formatters_with_callback.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137000.471691.patch
Type: text/x-patch
Size: 27575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20221029/0836aa90/attachment-0001.bin>


More information about the lldb-commits mailing list