From 37c3e9104c776ff9406c394b559fd6783960a87b Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Mon, 10 Dec 2012 19:23:00 +0000 Subject: [PATCH] Change the wording of NSNumber summary from absurd value to unexpected value when a tagged pointer shows up that does not match our knowledge of the internals llvm-svn: 169751 --- lldb/examples/summaries/cocoa/NSNumber.py | 4 ++-- lldb/source/Core/CXXFormatterFunctions.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lldb/examples/summaries/cocoa/NSNumber.py b/lldb/examples/summaries/cocoa/NSNumber.py index 4a74143..7edd338 100644 --- a/lldb/examples/summaries/cocoa/NSNumber.py +++ b/lldb/examples/summaries/cocoa/NSNumber.py @@ -54,7 +54,7 @@ class NSTaggedNumber_SummaryProvider: if self.info_bits == 12: return '(long)' + str(ctypes.c_long(self.data).value) else: - return 'absurd value:(info=' + str(self.info_bits) + ", value = " + str(self.data) + ')' + return 'unexpected value:(info=' + str(self.info_bits) + ", value = " + str(self.data) + ')' class NSUntaggedNumber_SummaryProvider: @@ -158,7 +158,7 @@ class NSUntaggedNumber_SummaryProvider: statistics.metric_hit('code_notrun',self.valobj) return '(double)' + str(data_double) statistics.metric_hit('unknown_class',str(valobj.GetName()) + " had unknown data_type " + str(data_type)) - return 'absurd: dt = ' + str(data_type) + return 'unexpected: dt = ' + str(data_type) class NSUnknownNumber_SummaryProvider: diff --git a/lldb/source/Core/CXXFormatterFunctions.cpp b/lldb/source/Core/CXXFormatterFunctions.cpp index f8f8fa5..a147ed0 100644 --- a/lldb/source/Core/CXXFormatterFunctions.cpp +++ b/lldb/source/Core/CXXFormatterFunctions.cpp @@ -379,7 +379,7 @@ lldb_private::formatters::NSNumberSummaryProvider (ValueObject& valobj, Stream& stream.Printf("(long)%" PRId64,value); break; default: - stream.Printf("absurd value:(info=%" PRIu64 ", value=%" PRIu64,i_bits,value); + stream.Printf("unexpected value:(info=%" PRIu64 ", value=%" PRIu64,i_bits,value); break; } return true; -- 2.7.4