[Lldb-commits] [lldb] r139402 - /lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Johnny Chen johnny.chen at apple.com
Fri Sep 9 13:35:15 PDT 2011


Author: johnny
Date: Fri Sep  9 15:35:15 2011
New Revision: 139402

URL: http://llvm.org/viewvc/llvm-project?rev=139402&view=rev
Log:
Fix compiler warnings for GetGDBStoppointType().

Modified:
    lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Modified: lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp?rev=139402&r1=139401&r2=139402&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp Fri Sep  9 15:35:15 2011
@@ -1894,9 +1894,9 @@
     assert(watch_read || watch_write);
     if (watch_read && watch_write)
         return eWatchpointReadWrite;
-    if (watch_read)
+    else if (watch_read)
         return eWatchpointRead;
-    if (watch_write)
+    else // Must be watch_write, then.
         return eWatchpointWrite;
 }
 





More information about the lldb-commits mailing list