[lldb] Remove "error:" prefix from reverse execute error messages
Errors will get "error:" prefixes automatically so this is not needed.
This commit is contained in:
@@ -1114,10 +1114,9 @@ public:
|
||||
virtual Status DoResume(lldb::RunDirection direction) {
|
||||
if (direction == lldb::RunDirection::eRunForward)
|
||||
return Status::FromErrorStringWithFormatv(
|
||||
"error: {0} does not support resuming processes", GetPluginName());
|
||||
"{0} does not support resuming processes", GetPluginName());
|
||||
return Status::FromErrorStringWithFormatv(
|
||||
"error: {0} does not support reverse execution of processes",
|
||||
GetPluginName());
|
||||
"{0} does not support reverse execution of processes", GetPluginName());
|
||||
}
|
||||
|
||||
/// Called after resuming a process.
|
||||
|
||||
@@ -590,7 +590,7 @@ SBError SBProcess::ContinueInDirection(RunDirection direction) {
|
||||
if (direction == RunDirection::eRunReverse &&
|
||||
!process_sp->SupportsReverseDirection())
|
||||
return Status::FromErrorStringWithFormatv(
|
||||
"error: {0} does not support reverse execution of processes",
|
||||
"{0} does not support reverse execution of processes",
|
||||
GetPluginName());
|
||||
process_sp->SetBaseDirection(direction);
|
||||
}
|
||||
|
||||
@@ -403,8 +403,7 @@ Status ProcessKDP::DoResume(RunDirection direction) {
|
||||
|
||||
if (direction == RunDirection::eRunReverse)
|
||||
return Status::FromErrorStringWithFormatv(
|
||||
"error: {0} does not support reverse execution of processes",
|
||||
GetPluginName());
|
||||
"{0} does not support reverse execution of processes", GetPluginName());
|
||||
|
||||
// Only start the async thread if we try to do any process control
|
||||
if (!m_async_thread.IsJoinable())
|
||||
|
||||
@@ -242,8 +242,7 @@ Status ProcessWindows::DoResume(RunDirection direction) {
|
||||
|
||||
if (direction == RunDirection::eRunReverse) {
|
||||
return Status::FromErrorStringWithFormatv(
|
||||
"error: {0} does not support reverse execution of processes",
|
||||
GetPluginName());
|
||||
"{0} does not support reverse execution of processes", GetPluginName());
|
||||
}
|
||||
|
||||
Status error;
|
||||
|
||||
@@ -191,8 +191,7 @@ Status ScriptedProcess::DoResume(RunDirection direction) {
|
||||
return GetInterface().Resume();
|
||||
// FIXME: Pipe reverse continue through Scripted Processes
|
||||
return Status::FromErrorStringWithFormatv(
|
||||
"error: {0} does not support reverse execution of processes",
|
||||
GetPluginName());
|
||||
"{0} does not support reverse execution of processes", GetPluginName());
|
||||
}
|
||||
|
||||
Status ScriptedProcess::DoAttach(const ProcessAttachInfo &attach_info) {
|
||||
|
||||
Reference in New Issue
Block a user