summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectDisassemble.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-10-26 00:56:27 +0000
committerGreg Clayton <gclayton@apple.com>2011-10-26 00:56:27 +0000
commit86edbf41d1ad98b057f0e4e14bbd47eb3b6014f9 (patch)
treec96760fbcf505ef9bae19c631a55f56523790adb /lldb/source/Commands/CommandObjectDisassemble.cpp
parent2c25d9c0c56fc61be3cbd3cdd5aa0df804329b13 (diff)
downloadbcm5719-llvm-86edbf41d1ad98b057f0e4e14bbd47eb3b6014f9.tar.gz
bcm5719-llvm-86edbf41d1ad98b057f0e4e14bbd47eb3b6014f9.zip
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. llvm-svn: 142999
Diffstat (limited to 'lldb/source/Commands/CommandObjectDisassemble.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectDisassemble.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Commands/CommandObjectDisassemble.cpp b/lldb/source/Commands/CommandObjectDisassemble.cpp
index 5c7b4856429..c2d8968981c 100644
--- a/lldb/source/Commands/CommandObjectDisassemble.cpp
+++ b/lldb/source/Commands/CommandObjectDisassemble.cpp
@@ -71,13 +71,13 @@ CommandObjectDisassemble::CommandOptions::SetOptionValue (uint32_t option_idx, c
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 @@ CommandObjectDisassemble::CommandOptions::SetOptionValue (uint32_t option_idx, c
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 @@ CommandObjectDisassemble::CommandOptions::SetOptionValue (uint32_t option_idx, c
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 @@ CommandObjectDisassemble::CommandOptions::SetOptionValue (uint32_t option_idx, c
break;
default:
- error.SetErrorStringWithFormat("Unrecognized short option '%c'.\n", short_option);
+ error.SetErrorStringWithFormat("unrecognized short option '%c'", short_option);
break;
}
OpenPOWER on IntegriCloud