rdar://problem/10267705
Clarification on the error message when the display format (eFormatBytes/eFormatBytesWithASCII) conflicts
with the byte size.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@152084 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectMemory.cpp b/source/Commands/CommandObjectMemory.cpp
index 87c0d19..e47d15d 100644
--- a/source/Commands/CommandObjectMemory.cpp
+++ b/source/Commands/CommandObjectMemory.cpp
@@ -181,7 +181,9 @@
if (byte_size_option_set)
{
if (byte_size_value > 1)
- error.SetErrorString ("use --count option to specify an end address to display a number of bytes");
+ error.SetErrorStringWithFormat ("display format (bytes/bytes with ascii) conflicts with the specified byte size %llu\n"
+ "\tconsider using a different display format or don't specify the byte size",
+ byte_size_value.GetCurrentValue());
}
else
byte_size_value = 1;