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/CommandObjectThread.cpp | |
parent | 2c25d9c0c56fc61be3cbd3cdd5aa0df804329b13 (diff) | |
download | llvm-86edbf41d1ad98b057f0e4e14bbd47eb3b6014f9.zip llvm-86edbf41d1ad98b057f0e4e14bbd47eb3b6014f9.tar.gz llvm-86edbf41d1ad98b057f0e4e14bbd47eb3b6014f9.tar.bz2 |
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/CommandObjectThread.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectThread.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index fde7472..658222e 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -75,7 +75,7 @@ public: bool success; int32_t input_count = Args::StringToSInt32 (option_arg, -1, 0, &success); if (!success) - error.SetErrorStringWithFormat("Invalid integer value for option '%c'.\n", short_option); + error.SetErrorStringWithFormat("invalid integer value for option '%c'", short_option); if (input_count < -1) m_count = UINT32_MAX; else @@ -87,11 +87,11 @@ public: bool success; m_start = Args::StringToUInt32 (option_arg, 0, 0, &success); if (!success) - error.SetErrorStringWithFormat("Invalid integer value for option '%c'.\n", short_option); + error.SetErrorStringWithFormat("invalid integer value for option '%c'", short_option); } break; default: - error.SetErrorStringWithFormat("Invalid short option character '%c'.\n", short_option); + error.SetErrorStringWithFormat("invalid short option character '%c'", short_option); break; } @@ -301,7 +301,7 @@ public: bool success; m_avoid_no_debug = Args::StringToBoolean (option_arg, true, &success); if (!success) - error.SetErrorStringWithFormat("Invalid boolean value for option '%c'.\n", short_option); + error.SetErrorStringWithFormat("invalid boolean value for option '%c'", short_option); } break; @@ -320,7 +320,7 @@ public: break; default: - error.SetErrorStringWithFormat("Invalid short option character '%c'.\n", short_option); + error.SetErrorStringWithFormat("invalid short option character '%c'", short_option); break; } @@ -426,7 +426,7 @@ public: uint32_t step_thread_idx = Args::StringToUInt32 (thread_idx_cstr, LLDB_INVALID_INDEX32); if (step_thread_idx == LLDB_INVALID_INDEX32) { - result.AppendErrorWithFormat ("Invalid thread index '%s'.\n", thread_idx_cstr); + result.AppendErrorWithFormat ("invalid thread index '%s'.\n", thread_idx_cstr); result.SetStatus (eReturnStatusFailed); return false; } @@ -789,7 +789,7 @@ public: m_thread_idx = Args::StringToUInt32 (option_arg, LLDB_INVALID_INDEX32); if (m_thread_idx == LLDB_INVALID_INDEX32) { - error.SetErrorStringWithFormat ("Invalid thread index '%s'.\n", option_arg); + error.SetErrorStringWithFormat ("invalid thread index '%s'", option_arg); } } break; @@ -798,7 +798,7 @@ public: m_frame_idx = Args::StringToUInt32 (option_arg, LLDB_INVALID_FRAME_ID); if (m_frame_idx == LLDB_INVALID_FRAME_ID) { - error.SetErrorStringWithFormat ("Invalid frame index '%s'.\n", option_arg); + error.SetErrorStringWithFormat ("invalid frame index '%s'", option_arg); } } break; @@ -817,7 +817,7 @@ public: } break; default: - error.SetErrorStringWithFormat("Invalid short option character '%c'.\n", short_option); + error.SetErrorStringWithFormat("invalid short option character '%c'", short_option); break; } @@ -922,7 +922,7 @@ public: line_number = Args::StringToUInt32 (command.GetArgumentAtIndex(0), UINT32_MAX); if (line_number == UINT32_MAX) { - result.AppendErrorWithFormat ("Invalid line number: '%s'.\n", command.GetArgumentAtIndex(0)); + result.AppendErrorWithFormat ("invalid line number: '%s'.\n", command.GetArgumentAtIndex(0)); result.SetStatus (eReturnStatusFailed); return false; } @@ -1142,7 +1142,7 @@ public: Thread *new_thread = process->GetThreadList().FindThreadByIndexID(index_id).get(); if (new_thread == NULL) { - result.AppendErrorWithFormat ("Invalid thread #%s.\n", command.GetArgumentAtIndex(0)); + result.AppendErrorWithFormat ("invalid thread #%s.\n", command.GetArgumentAtIndex(0)); result.SetStatus (eReturnStatusFailed); return false; } |