[Lldb-commits] [PATCH] D145242: [lldb][TypeSystemClang] Use the CXXFunctionPointerSummaryProvider for member-function pointers

Michael Buch via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 3 06:29:28 PST 2023


Michael137 created this revision.
Michael137 added a reviewer: aprantl.
Herald added a project: All.
Michael137 requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

With this patch member-function pointers are formatted using
`CXXFunctionPointerSummaryProvider`.

This turns,

  (lldb) v pointer_to_member_func
  (void (Foo::*)()) ::pointer_to_member_func = 0x00000000000000000000000100003f94

into

  (lldb) v pointer_to_member_func
  (void (Foo::*)()) ::pointer_to_member_func = 0x00000000000000000000000100003f94 (a.out`Foo::member_func() at main.cpp:3)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145242

Files:
  lldb/include/lldb/Symbol/CompilerType.h
  lldb/include/lldb/Symbol/TypeSystem.h
  lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
  lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
  lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h
  lldb/source/Symbol/CompilerType.cpp
  lldb/test/API/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145242.502119.patch
Type: text/x-patch
Size: 4522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230303/d4d3cb35/attachment.bin>


More information about the lldb-commits mailing list