diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-09-07 00:09:23 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-09-07 00:09:23 +0000 |
| commit | 9d814e0dd255d567d9d8349122bab25e1153cde4 (patch) | |
| tree | 49a4f3b351db177e1c3476499ea701ad10e89ca7 /lldb/tools/debugserver/source/RNBRemote.cpp | |
| parent | 9de7a7db26fc447fa1dca89232df69cef2ba13e8 (diff) | |
| download | bcm5719-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.cpp | 4 |
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 |

