[Lldb-commits] [lldb] r139209 - /lldb/trunk/tools/debugserver/source/RNBRemote.cpp

Johnny Chen johnny.chen at apple.com
Tue Sep 6 17:09:23 PDT 2011


Author: johnny
Date: Tue Sep  6 19:09:23 2011
New Revision: 139209

URL: http://llvm.org/viewvc/llvm-project?rev=139209&view=rev
Log:
Minor change: compare the return val of DNBWatchpointSet() against INVALID_NUB_WATCH_ID
to determine its validity.

Modified:
    lldb/trunk/tools/debugserver/source/RNBRemote.cpp

Modified: lldb/trunk/tools/debugserver/source/RNBRemote.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/RNBRemote.cpp?rev=139209&r1=139208&r2=139209&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/RNBRemote.cpp (original)
+++ lldb/trunk/tools/debugserver/source/RNBRemote.cpp Tue Sep  6 19:09:23 2011
@@ -2927,10 +2927,10 @@
                 }
                 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





More information about the lldb-commits mailing list