diff options
author | Enrico Granata <egranata@apple.com> | 2013-02-15 00:06:04 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-02-15 00:06:04 +0000 |
commit | 75dfb43270088043e6c7d39abc0e302ad8ba00af (patch) | |
tree | 7f63af1c52b923bf2ca0d63b5afff4170d70200e /lldb/source/DataFormatters/FormatManager.cpp | |
parent | 30f05f3dc7db1c1ab803bf541960952e9ac46281 (diff) | |
download | bcm5719-llvm-75dfb43270088043e6c7d39abc0e302ad8ba00af.tar.gz bcm5719-llvm-75dfb43270088043e6c7d39abc0e302ad8ba00af.zip |
<rdar://problem/13204647>
The SEL data formatter was working hard to ensure that pointers-to-selectors could be formatted by the same block of code. In that effort, we were taking the address-of a SEL.
This operation fails when the SEL lives in a register, and was causing problems.
The formatter has been fixed to work correctly without assuming &selector will be a valid object.
llvm-svn: 175227
Diffstat (limited to 'lldb/source/DataFormatters/FormatManager.cpp')
-rw-r--r-- | lldb/source/DataFormatters/FormatManager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/DataFormatters/FormatManager.cpp b/lldb/source/DataFormatters/FormatManager.cpp index eb8a3386a25..391b3ee981e 100644 --- a/lldb/source/DataFormatters/FormatManager.cpp +++ b/lldb/source/DataFormatters/FormatManager.cpp @@ -753,6 +753,7 @@ FormatManager::LoadObjCFormatters() AddCXXSummary(objc_category_sp, lldb_private::formatters::ObjCSELSummaryProvider<false>, "SEL summary provider", ConstString("struct objc_selector"), objc_flags); AddCXXSummary(objc_category_sp, lldb_private::formatters::ObjCSELSummaryProvider<false>, "SEL summary provider", ConstString("objc_selector"), objc_flags); AddCXXSummary(objc_category_sp, lldb_private::formatters::ObjCSELSummaryProvider<true>, "SEL summary provider", ConstString("objc_selector *"), objc_flags); + AddCXXSummary(objc_category_sp, lldb_private::formatters::ObjCSELSummaryProvider<true>, "SEL summary provider", ConstString("SEL *"), objc_flags); AddScriptSummary(objc_category_sp, "lldb.formatters.objc.Class.Class_Summary", ConstString("Class"), objc_flags); #endif // LLDB_DISABLE_PYTHON |