Pull side effects out of asserts. Fixes debugserver with NDEBUG defined.

llvm-svn: 151013
This commit is contained in:
Charles Davis 2012-02-21 00:53:12 +00:00
parent b14b42d477
commit b786e7d099
1 changed files with 4 additions and 2 deletions

View File

@ -268,7 +268,8 @@ DNBProcessLaunch (const char *path,
}
else
{
assert(AddProcessToMap(pid, processSP));
bool res = AddProcessToMap(pid, processSP);
assert(res && "Couldn't add process to map!");
return pid;
}
}
@ -315,7 +316,8 @@ DNBProcessAttach (nub_process_t attach_pid, struct timespec *timeout, char *err_
if (pid != INVALID_NUB_PROCESS)
{
assert(AddProcessToMap(pid, processSP));
bool res = AddProcessToMap(pid, processSP);
assert(res && "Couldn't add process to map!");
spawn_waitpid_thread(pid);
}
}