diff options
| author | Enrico Granata <egranata@apple.com> | 2012-07-13 18:54:40 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2012-07-13 18:54:40 +0000 |
| commit | 4ed7ef1f722e3ce8f2620b8a2ee4828171553dea (patch) | |
| tree | ac6a4b524512af89714a2518cd1521acd7644dc5 /lldb/source | |
| parent | 811e9055fd73bb707ec2c522df3943abe1ea89b2 (diff) | |
| download | bcm5719-llvm-4ed7ef1f722e3ce8f2620b8a2ee4828171553dea.tar.gz bcm5719-llvm-4ed7ef1f722e3ce8f2620b8a2ee4828171553dea.zip | |
<rdar://problem/11628688> Making sure to use the ostype format for OSType values
llvm-svn: 160180
Diffstat (limited to 'lldb/source')
| -rw-r--r-- | lldb/source/Core/FormatManager.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/Core/FormatManager.cpp b/lldb/source/Core/FormatManager.cpp index 5a5c1299565..da03277d63a 100644 --- a/lldb/source/Core/FormatManager.cpp +++ b/lldb/source/Core/FormatManager.cpp @@ -834,6 +834,17 @@ FormatManager::LoadSystemFormatters() sys_category_sp->GetSummaryNavigator()->Add(ConstString("char *"), string_format); sys_category_sp->GetSummaryNavigator()->Add(ConstString("const char *"), string_format); sys_category_sp->GetRegexSummaryNavigator()->Add(any_size_char_arr, string_array_format); + + lldb::TypeSummaryImplSP ostype_summary(new StringSummaryFormat(TypeSummaryImpl::Flags().SetCascades(false) + .SetSkipPointers(true) + .SetSkipReferences(true) + .SetDontShowChildren(true) + .SetDontShowValue(false) + .SetShowMembersOneLiner(false) + .SetHideItemNames(false), + "${var%O}")); + + sys_category_sp->GetSummaryNavigator()->Add(ConstString("OSType"), ostype_summary); } static void |

