summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Interpreter/OptionGroupFormat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/OptionGroupFormat.cpp b/lldb/source/Interpreter/OptionGroupFormat.cpp
index 2c8e1174682..8af74ae6c43 100644
--- a/lldb/source/Interpreter/OptionGroupFormat.cpp
+++ b/lldb/source/Interpreter/OptionGroupFormat.cpp
@@ -161,9 +161,9 @@ OptionGroupFormat::SetOptionValue (CommandInterpreter &interpreter,
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
{
OpenPOWER on IntegriCloud