Skip to content

Commit 1a1d779

Browse files
committed
Address Jim's feedback
1 parent b1416c5 commit 1a1d779

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lldb/include/lldb/Host/ProcessRunLock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ProcessRunLock {
3131
bool ReadUnlock();
3232

3333
/// Set the process to running. Returns true if the process was stopped.
34-
/// Return true if the process was running.
34+
/// Return false if the process was running.
3535
bool SetRunning();
3636

3737
/// Set the process to stopped. Returns true if the process was stopped.

lldb/source/Target/Process.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ Status Process::Resume() {
13271327
LLDB_LOGF(log, "(plugin = %s) -- SetRunning failed, not resuming.",
13281328
GetPluginName().data());
13291329
return Status::FromErrorString(
1330-
"Resume request failed - process still running.");
1330+
"resume request failed - process already running");
13311331
}
13321332
Status error = PrivateResume();
13331333
if (!error.Success()) {
@@ -1343,7 +1343,7 @@ Status Process::ResumeSynchronous(Stream *stream) {
13431343
if (!m_public_run_lock.SetRunning()) {
13441344
LLDB_LOGF(log, "Process::Resume: -- SetRunning failed, not resuming.");
13451345
return Status::FromErrorString(
1346-
"Resume request failed - process still running.");
1346+
"resume request failed: process already running");
13471347
}
13481348

13491349
ListenerSP listener_sp(

0 commit comments

Comments
 (0)