Allow reading memory from files before the target has been run.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@134780 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/CommandObject.cpp b/source/Interpreter/CommandObject.cpp
index 4449007..b54b4e1 100644
--- a/source/Interpreter/CommandObject.cpp
+++ b/source/Interpreter/CommandObject.cpp
@@ -229,9 +229,13 @@
         Process *process = m_interpreter.GetExecutionContext().process;
         if (process == NULL)
         {
-            result.AppendError ("Process must exist.");
-            result.SetStatus (eReturnStatusFailed);
-            return false;
+            // A process that is not running is considered paused.
+            if (GetFlags().Test(CommandObject::eFlagProcessMustBeLaunched))
+            {
+                result.AppendError ("Process must exist.");
+                result.SetStatus (eReturnStatusFailed);
+                return false;
+            }
         }
         else
         {