Index: source/Commands/CommandObjectThread.cpp
===================================================================
--- source/Commands/CommandObjectThread.cpp	(revision 136694)
+++ source/Commands/CommandObjectThread.cpp	(working copy)
@@ -417,9 +417,13 @@
                 thread = process->GetThreadList().GetSelectedThread().get();
                 if (thread == NULL)
                 {
-                    result.AppendError ("no selected thread in process");
-                    result.SetStatus (eReturnStatusFailed);
-                    return false;
+                    thread = process->GetThreadList().GetThreadAtIndex(0).get();
+                    if (thread == NULL)
+                    {
+                        result.AppendError ("no selected thread in process");
+                        result.SetStatus (eReturnStatusFailed);
+                        return false;
+                    }
                 }
             }
             else
