diff options
author | Greg Clayton <gclayton@apple.com> | 2011-10-26 00:56:27 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-10-26 00:56:27 +0000 |
commit | 86edbf41d1ad98b057f0e4e14bbd47eb3b6014f9 (patch) | |
tree | c96760fbcf505ef9bae19c631a55f56523790adb /lldb/source/Commands/CommandObjectWatchpoint.cpp | |
parent | 2c25d9c0c56fc61be3cbd3cdd5aa0df804329b13 (diff) | |
download | bcm5719-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/CommandObjectWatchpoint.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectWatchpoint.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Commands/CommandObjectWatchpoint.cpp b/lldb/source/Commands/CommandObjectWatchpoint.cpp index a6163df24bb..4756e930ecb 100644 --- a/lldb/source/Commands/CommandObjectWatchpoint.cpp +++ b/lldb/source/Commands/CommandObjectWatchpoint.cpp @@ -231,7 +231,7 @@ CommandObjectWatchpointList::CommandOptions::SetOptionValue(uint32_t option_idx, m_level = lldb::eDescriptionLevelVerbose; break; default: - error.SetErrorStringWithFormat("Unrecognized option '%c'.\n", short_option); + error.SetErrorStringWithFormat("unrecognized option '%c'", short_option); break; } @@ -601,11 +601,11 @@ CommandObjectWatchpointIgnore::CommandOptions::SetOptionValue (uint32_t option_i { m_ignore_count = Args::StringToUInt32(option_arg, UINT32_MAX, 0); if (m_ignore_count == UINT32_MAX) - error.SetErrorStringWithFormat ("Invalid ignore count '%s'.\n", option_arg); + error.SetErrorStringWithFormat ("invalid ignore count '%s'", option_arg); } break; default: - error.SetErrorStringWithFormat ("Unrecognized option '%c'.\n", short_option); + error.SetErrorStringWithFormat ("unrecognized option '%c'", short_option); break; } @@ -741,7 +741,7 @@ CommandObjectWatchpointModify::CommandOptions::SetOptionValue (uint32_t option_i m_condition_passed = true; break; default: - error.SetErrorStringWithFormat ("Unrecognized option '%c'.\n", short_option); + error.SetErrorStringWithFormat ("unrecognized option '%c'", short_option); break; } |