diff options
| author | Enrico Granata <egranata@apple.com> | 2012-03-29 01:34:34 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2012-03-29 01:34:34 +0000 |
| commit | 86ea8d821a90d7d52b5023e4aa367e5265ca16ce (patch) | |
| tree | 9f8f8cfcdd8ac6805c12866d4ef5135ca0023cb3 /lldb/source/Core/ValueObject.cpp | |
| parent | b474099e6312ab844fc4c6fe4d346845eb04bf59 (diff) | |
| download | bcm5719-llvm-86ea8d821a90d7d52b5023e4aa367e5265ca16ce.tar.gz bcm5719-llvm-86ea8d821a90d7d52b5023e4aa367e5265ca16ce.zip | |
Fixing an issue where Unicode characters in an NSString were printed as escape sequences by the summary provider shipping with LLDB - Added relevant test case code. Bonus points for identifying the source of the quotes :-)
llvm-svn: 153624
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
| -rw-r--r-- | lldb/source/Core/ValueObject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index 57f887b20f6..a13c84b7c38 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -2322,7 +2322,7 @@ ValueObject::GetValuesForExpressionPath(const char* expression, if (!ret_val.get()) // if there are errors, I add nothing to the list return 0; - if (*reason_to_stop != eExpressionPathScanEndReasonArrayRangeOperatorMet) + if ( (reason_to_stop ? *reason_to_stop : dummy_reason_to_stop) != eExpressionPathScanEndReasonArrayRangeOperatorMet) { // I need not expand a range, just post-process the final value and return if (!final_task_on_target || *final_task_on_target == ValueObject::eExpressionPathAftermathNothing) @@ -2330,7 +2330,7 @@ ValueObject::GetValuesForExpressionPath(const char* expression, list->Append(ret_val); return 1; } - if (ret_val.get() && *final_value_type == eExpressionPathEndResultTypePlain) // I can only deref and takeaddress of plain objects + if (ret_val.get() && (final_value_type ? *final_value_type : dummy_final_value_type) == eExpressionPathEndResultTypePlain) // I can only deref and takeaddress of plain objects { if (*final_task_on_target == ValueObject::eExpressionPathAftermathDereference) { |

