summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-09-09 20:35:15 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-09-09 20:35:15 +0000
commit6d487a9b778cd2f4dd3acfe1d155a320bd1a676b (patch)
treeb980d7b93c2bf2a82d269c30ad038e5295575860 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parentf754f88f6d96e5d14fbae059151eb310a6dbbca7 (diff)
downloadbcm5719-llvm-6d487a9b778cd2f4dd3acfe1d155a320bd1a676b.tar.gz
bcm5719-llvm-6d487a9b778cd2f4dd3acfe1d155a320bd1a676b.zip
Fix compiler warnings for GetGDBStoppointType().
llvm-svn: 139402
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 5c04c36e41e..3bb551afd77 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -1894,9 +1894,9 @@ GetGDBStoppointType (WatchpointLocation *wp)
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;
}
OpenPOWER on IntegriCloud