diff options
author | Charles Davis <cdavis@mines.edu> | 2012-02-21 00:53:12 +0000 |
---|---|---|
committer | Charles Davis <cdavis@mines.edu> | 2012-02-21 00:53:12 +0000 |
commit | b786e7d099866448dac41d58e431dadf91e3371d (patch) | |
tree | 83735ef905723ef9a596b8879ec1b0779381962d | |
parent | b14b42d477fc68a10ba5f7915c5cd1069a14719c (diff) | |
download | bcm5719-llvm-b786e7d099866448dac41d58e431dadf91e3371d.tar.gz bcm5719-llvm-b786e7d099866448dac41d58e431dadf91e3371d.zip |
Pull side effects out of asserts. Fixes debugserver with NDEBUG defined.
llvm-svn: 151013
-rw-r--r-- | lldb/tools/debugserver/source/DNB.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/tools/debugserver/source/DNB.cpp b/lldb/tools/debugserver/source/DNB.cpp index 1b8632eb717..6be22c7962f 100644 --- a/lldb/tools/debugserver/source/DNB.cpp +++ b/lldb/tools/debugserver/source/DNB.cpp @@ -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); } } |