[Lldb-commits] [lldb] r282270 - Try to fix failing TestDataFormatterSkipSummary test case.

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 23 11:11:04 PDT 2016


Author: zturner
Date: Fri Sep 23 13:11:03 2016
New Revision: 282270

URL: http://llvm.org/viewvc/llvm-project?rev=282270&view=rev
Log:
Try to fix failing TestDataFormatterSkipSummary test case.

Modified:
    lldb/trunk/source/Interpreter/OptionGroupValueObjectDisplay.cpp

Modified: lldb/trunk/source/Interpreter/OptionGroupValueObjectDisplay.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/OptionGroupValueObjectDisplay.cpp?rev=282270&r1=282269&r2=282270&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/OptionGroupValueObjectDisplay.cpp (original)
+++ lldb/trunk/source/Interpreter/OptionGroupValueObjectDisplay.cpp Fri Sep 23 13:11:03 2016
@@ -135,7 +135,9 @@ Error OptionGroupValueObjectDisplay::Set
     break;
 
   case 'Y':
-    if (option_arg.getAsInteger(0, no_summary_depth)) {
+    if (option_arg.empty())
+      no_summary_depth = 1;
+    else if (option_arg.getAsInteger(0, no_summary_depth)) {
       no_summary_depth = 1;
       error.SetErrorStringWithFormat("invalid pointer depth '%s'",
                                      option_arg.str().c_str());




More information about the lldb-commits mailing list