Cleaned up many error codes. For any who is filling in error strings into
lldb_private::Error objects the rules are:
- short strings that don't start with a capitol letter unless the name is a
  class or anything else that is always capitolized
- no trailing newline character
- should be one line if possible

Implemented a first pass at adding "--gdb-format" support to anything that
accepts format with optional size/count.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@142999 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectDisassemble.cpp b/source/Commands/CommandObjectDisassemble.cpp
index 5c7b485..c2d8968 100644
--- a/source/Commands/CommandObjectDisassemble.cpp
+++ b/source/Commands/CommandObjectDisassemble.cpp
@@ -71,13 +71,13 @@
     case 'C':
         num_lines_context = Args::StringToUInt32(option_arg, 0, 0, &success);
         if (!success)
-            error.SetErrorStringWithFormat ("Invalid num context lines string: \"%s\".\n", option_arg);
+            error.SetErrorStringWithFormat ("invalid num context lines string: \"%s\"", option_arg);
         break;
 
     case 'c':
         num_instructions = Args::StringToUInt32(option_arg, 0, 0, &success);
         if (!success)
-            error.SetErrorStringWithFormat ("Invalid num of instructions string: \"%s\".\n", option_arg);
+            error.SetErrorStringWithFormat ("invalid num of instructions string: \"%s\"", option_arg);
         break;
 
     case 'b':
@@ -90,7 +90,7 @@
             start_addr = Args::StringToUInt64(option_arg, LLDB_INVALID_ADDRESS, 16);
 
         if (start_addr == LLDB_INVALID_ADDRESS)
-            error.SetErrorStringWithFormat ("Invalid start address string '%s'.\n", option_arg);
+            error.SetErrorStringWithFormat ("invalid start address string '%s'", option_arg);
         some_location_specified = true;
         break;
     case 'e':
@@ -99,7 +99,7 @@
             end_addr = Args::StringToUInt64(option_arg, LLDB_INVALID_ADDRESS, 16);
 
         if (end_addr == LLDB_INVALID_ADDRESS)
-            error.SetErrorStringWithFormat ("Invalid end address string '%s'.\n", option_arg);
+            error.SetErrorStringWithFormat ("invalid end address string '%s'", option_arg);
         break;
         some_location_specified = true;
     case 'n':
@@ -138,7 +138,7 @@
         break;
 
     default:
-        error.SetErrorStringWithFormat("Unrecognized short option '%c'.\n", short_option);
+        error.SetErrorStringWithFormat("unrecognized short option '%c'", short_option);
         break;
     }