diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2023-12-09 13:28:42 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2023-12-09 13:28:42 +0000 |
| commit | b1c73532ee8997fe5dfbeb7d223027bdf99758a0 (patch) | |
| tree | 7d6e51c294ab6719475d660217aa0c0ad0526292 /lldb/source/DataFormatters/CXXFunctionPointer.cpp | |
| parent | 7fa27ce4a07f19b07799a767fc29416f3b625afb (diff) | |
Diffstat (limited to 'lldb/source/DataFormatters/CXXFunctionPointer.cpp')
| -rw-r--r-- | lldb/source/DataFormatters/CXXFunctionPointer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/DataFormatters/CXXFunctionPointer.cpp b/lldb/source/DataFormatters/CXXFunctionPointer.cpp index d7df280e56ef..6543433d17ff 100644 --- a/lldb/source/DataFormatters/CXXFunctionPointer.cpp +++ b/lldb/source/DataFormatters/CXXFunctionPointer.cpp @@ -13,6 +13,7 @@ #include "lldb/Target/SectionLoadList.h" #include "lldb/Target/Target.h" #include "lldb/Utility/Stream.h" +#include "lldb/lldb-enumerations.h" #include <string> @@ -76,7 +77,10 @@ bool lldb_private::formatters::CXXFunctionPointerSummaryProvider( } } if (sstr.GetSize() > 0) { - stream.Printf("(%s)", sstr.GetData()); + if (valobj.GetValueType() == lldb::eValueTypeVTableEntry) + stream.PutCString(sstr.GetData()); + else + stream.Printf("(%s)", sstr.GetData()); return true; } else return false; |
