Skip to content

Commit 5104c83

Browse files
authored
Merge pull request swiftlang#11773 from swiftlang/rdar163952037-swift
[debugserver] Remove unnecessary sleep in MachProcess::AttachForDebug
2 parents c385dd1 + a837c46 commit 5104c83

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lldb/tools/debugserver/source/MacOSX/MachProcess.mm

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2853,12 +2853,6 @@ static uint64_t bits(uint64_t value, uint32_t msbit, uint32_t lsbit) {
28532853

28542854
if (err.Success()) {
28552855
m_flags |= eMachProcessFlagsAttached;
2856-
// Sleep a bit to let the exception get received and set our process
2857-
// status
2858-
// to stopped.
2859-
::usleep(250000);
2860-
DNBLog("[LaunchAttach] (%d) Done napping after ptrace(PT_ATTACHEXC)'ing",
2861-
getpid());
28622856
DNBLogThreadedIf(LOG_PROCESS, "successfully attached to pid %d", pid);
28632857
return m_pid;
28642858
} else {

0 commit comments

Comments
 (0)