Author: jingham
Date: Thu Aug 23 16:16:25 2012
New Revision: 162470
URL: http://llvm.org/viewvc/llvm-project?rev=162470&view=rev
Log:
gdb format should default to count of 1.
<rdar://problem/12161861>
Modified:
lldb/trunk/source/Interpreter/OptionGroupFormat.cpp
Modified: lldb/trunk/source/Interpreter/OptionGroupFormat.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/OptionGroupFormat.cpp?rev=162470&r1=162469&r2=162470&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/OptionGroupFormat.cpp (original)
+++ lldb/trunk/source/Interpreter/OptionGroupFormat.cpp Thu Aug 23 16:16:25 2012
@@ -161,9 +161,9 @@
if (count_enabled)
{
- // Count is enabled and was not set, set it to the default
+ // Count is enabled and was not set, set it to the default for gdb format statements (which is 1).
if (count == 0)
- count = m_count.GetDefaultValue();
+ count = 1;
}
else
{