gdb format should default to count of 1.
<rdar://problem/12161861>
llvm-svn: 162470
diff --git a/lldb/source/Interpreter/OptionGroupFormat.cpp b/lldb/source/Interpreter/OptionGroupFormat.cpp
index 2c8e117..8af74ae 100644
--- a/lldb/source/Interpreter/OptionGroupFormat.cpp
+++ b/lldb/source/Interpreter/OptionGroupFormat.cpp
@@ -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
{