[Lldb-commits] [lldb] r151013 - /lldb/trunk/tools/debugserver/source/DNB.cpp
Charles Davis
cdavis at mines.edu
Mon Feb 20 16:53:12 PST 2012
Author: cdavis
Date: Mon Feb 20 18:53:12 2012
New Revision: 151013
URL: http://llvm.org/viewvc/llvm-project?rev=151013&view=rev
Log:
Pull side effects out of asserts. Fixes debugserver with NDEBUG defined.
Modified:
lldb/trunk/tools/debugserver/source/DNB.cpp
Modified: lldb/trunk/tools/debugserver/source/DNB.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/DNB.cpp?rev=151013&r1=151012&r2=151013&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/DNB.cpp (original)
+++ lldb/trunk/tools/debugserver/source/DNB.cpp Mon Feb 20 18:53:12 2012
@@ -268,7 +268,8 @@
}
else
{
- assert(AddProcessToMap(pid, processSP));
+ bool res = AddProcessToMap(pid, processSP);
+ assert(res && "Couldn't add process to map!");
return pid;
}
}
@@ -315,7 +316,8 @@
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);
}
}
More information about the lldb-commits
mailing list