@@ -1216,15 +1216,18 @@ class CommandObjectThreadSelect : public CommandObjectParsed {
1216
1216
if (process == nullptr ) {
1217
1217
result.AppendError (" no process" );
1218
1218
return ;
1219
- } else if (m_options.m_thread_id == LLDB_INVALID_THREAD_ID && command.GetArgumentCount () != 1 ) {
1219
+ } else if (m_options.m_thread_id == LLDB_INVALID_THREAD_ID &&
1220
+ command.GetArgumentCount () != 1 ) {
1220
1221
result.AppendErrorWithFormat (
1221
- " '%s' takes exactly one thread index argument, or a thread ID option:\n Usage: %s\n " ,
1222
+ " '%s' takes exactly one thread index argument, or a thread ID "
1223
+ " option:\n Usage: %s\n " ,
1222
1224
m_cmd_name.c_str (), m_cmd_syntax.c_str ());
1223
1225
return ;
1224
- } else if (m_options.m_thread_id != LLDB_INVALID_THREAD_ID && command.GetArgumentCount () != 0 ) {
1225
- result.AppendErrorWithFormat (
1226
- " '%s' cannot take both a thread ID option and a thread index argument:\n Usage: %s\n " ,
1227
- m_cmd_name.c_str (), m_cmd_syntax.c_str ());
1226
+ } else if (m_options.m_thread_id != LLDB_INVALID_THREAD_ID &&
1227
+ command.GetArgumentCount () != 0 ) {
1228
+ result.AppendErrorWithFormat (" '%s' cannot take both a thread ID option "
1229
+ " and a thread index argument:\n Usage: %s\n " ,
1230
+ m_cmd_name.c_str (), m_cmd_syntax.c_str ());
1228
1231
return ;
1229
1232
}
1230
1233
@@ -1239,11 +1242,12 @@ class CommandObjectThreadSelect : public CommandObjectParsed {
1239
1242
new_thread = process->GetThreadList ().FindThreadByIndexID (index_id).get ();
1240
1243
if (new_thread == nullptr ) {
1241
1244
result.AppendErrorWithFormat (" Invalid thread #%s.\n " ,
1242
- command.GetArgumentAtIndex (0 ));
1245
+ command.GetArgumentAtIndex (0 ));
1243
1246
return ;
1244
1247
}
1245
1248
} else {
1246
- new_thread = process->GetThreadList ().FindThreadByID (m_options.m_thread_id ).get ();
1249
+ new_thread =
1250
+ process->GetThreadList ().FindThreadByID (m_options.m_thread_id ).get ();
1247
1251
if (new_thread == nullptr ) {
1248
1252
result.AppendErrorWithFormat (" Invalid thread ID %lu.\n " ,
1249
1253
m_options.m_thread_id );
0 commit comments