Made lldb_private::ArchSpec contain much more than just an architecture. It
now, in addition to cpu type/subtype and architecture flavor, contains:
- byte order (big endian, little endian)
- address size in bytes
- llvm::Triple for true target triple support and for more powerful plug-in
selection.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@125602 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectProcess.cpp b/source/Commands/CommandObjectProcess.cpp
index 181012d..7329ccb 100644
--- a/source/Commands/CommandObjectProcess.cpp
+++ b/source/Commands/CommandObjectProcess.cpp
@@ -328,6 +328,10 @@
if (synchronous_execution)
{
state = process->WaitForProcessToStop (NULL);
+ if (!StateIsStoppedState(state));
+ {
+ result.AppendErrorWithFormat ("Process isn't stopped: %s", StateAsCString(state));
+ }
result.SetDidChangeProcessState (true);
result.SetStatus (eReturnStatusSuccessFinishResult);
}
@@ -336,9 +340,24 @@
result.SetStatus (eReturnStatusSuccessContinuingNoResult);
}
}
+ else
+ {
+ result.AppendErrorWithFormat ("Process resume at entry point failed: %s", error.AsCString());
+ result.SetStatus (eReturnStatusFailed);
+ }
}
+ else
+ {
+ result.AppendErrorWithFormat ("Initial process state wasn't stopped: %s", StateAsCString(state));
+ result.SetStatus (eReturnStatusFailed);
+ }
}
}
+ else
+ {
+ result.AppendErrorWithFormat ("Process launch failed: %s", error.AsCString());
+ result.SetStatus (eReturnStatusFailed);
+ }
return result.Succeeded();
}