diff options
author | Greg Clayton <gclayton@apple.com> | 2013-03-25 21:06:13 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-03-25 21:06:13 +0000 |
commit | 5088c486863280bdea59cca2541fce3ab7b15808 (patch) | |
tree | 55d40af2f3b74943c5b36351ac7003987fbe07bf | |
parent | 18ca8101ee3958bb6c6ba2774f3b39932fcd537f (diff) | |
download | bcm5719-llvm-5088c486863280bdea59cca2541fce3ab7b15808.tar.gz bcm5719-llvm-5088c486863280bdea59cca2541fce3ab7b15808.zip |
<rdar://problem/13498879>
C String summary is emitting "<invalid usage of pointer value as object>" for bad pointers. Now it doesn't emit anything.
llvm-svn: 177913
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 8bc3ab09fe7..4662d0b0949 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -1557,8 +1557,7 @@ Debugger::FormatPrompt if (log) log->Printf("[Debugger::FormatPrompt] I am into array || pointer && !range"); - if (target->HasSpecialPrintableRepresentation(val_obj_display, - custom_format)) + if (target->HasSpecialPrintableRepresentation(val_obj_display, custom_format)) { // try to use the special cases var_success = target->DumpPrintableRepresentation(str_temp, @@ -1568,9 +1567,7 @@ Debugger::FormatPrompt log->Printf("[Debugger::FormatPrompt] special cases did%s match", var_success ? "" : "n't"); // should not happen - if (!var_success) - s << "<invalid usage of pointer value as object>"; - else + if (var_success) s << str_temp.GetData(); var_success = true; break; @@ -1588,10 +1585,6 @@ Debugger::FormatPrompt custom_format, ValueObject::ePrintableRepresentationSpecialCasesDisable); } - else - { - s << "<invalid usage of pointer value as object>"; - } var_success = true; break; } |