summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/RNBRemote.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-09-07 00:09:23 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-09-07 00:09:23 +0000
commit9d814e0dd255d567d9d8349122bab25e1153cde4 (patch)
tree49a4f3b351db177e1c3476499ea701ad10e89ca7 /lldb/tools/debugserver/source/RNBRemote.cpp
parent9de7a7db26fc447fa1dca89232df69cef2ba13e8 (diff)
downloadbcm5719-llvm-9d814e0dd255d567d9d8349122bab25e1153cde4.tar.gz
bcm5719-llvm-9d814e0dd255d567d9d8349122bab25e1153cde4.zip
Minor change: compare the return val of DNBWatchpointSet() against INVALID_NUB_WATCH_ID
to determine its validity. llvm-svn: 139209
Diffstat (limited to 'lldb/tools/debugserver/source/RNBRemote.cpp')
-rw-r--r--lldb/tools/debugserver/source/RNBRemote.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/tools/debugserver/source/RNBRemote.cpp b/lldb/tools/debugserver/source/RNBRemote.cpp
index c95eb45be92..eadb10fe45a 100644
--- a/lldb/tools/debugserver/source/RNBRemote.cpp
+++ b/lldb/tools/debugserver/source/RNBRemote.cpp
@@ -2927,10 +2927,10 @@ RNBRemote::HandlePacket_z (const char *p)
}
else
{
- // We do NOT already have a breakpoint at this address, So lets
+ // We do NOT already have a watchpoint at this address, So lets
// create one.
nub_watch_t watch_id = DNBWatchpointSet (pid, addr, byte_size, watch_flags, hardware);
- if (watch_id != INVALID_NUB_BREAK_ID)
+ if (watch_id != INVALID_NUB_WATCH_ID)
{
// We successfully created a watchpoint, now lets full out
// a ref count structure with the watch_id and add it to our
OpenPOWER on IntegriCloud