diff options
author | David Spickett <david.spickett@linaro.org> | 2023-09-21 09:22:57 +0000 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2023-09-21 09:30:07 +0000 |
commit | a7b78cac9a77e3ef6bbbd8ab1a559891dc693401 (patch) | |
tree | 2965a2ccfecf1bfbf54e7581d58e365d23f460e4 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | fe87d62c9e0f0fbb64438e840ef35664c328c4f7 (diff) | |
download | llvm-a7b78cac9a77e3ef6bbbd8ab1a559891dc693401.zip llvm-a7b78cac9a77e3ef6bbbd8ab1a559891dc693401.tar.gz llvm-a7b78cac9a77e3ef6bbbd8ab1a559891dc693401.tar.bz2 |
Revert "[lldb] Add 'modify' type watchpoints, make it default (#66308)"
This reverts commit 933ad5c897ee366759a54869b35b2d7285a92137.
This caused 1 test failure and an unexpected pass on AArch64 Linux:
https://lab.llvm.org/buildbot/#/builders/96/builds/45765
Wasn't reported because the bot was already red at the time.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 56fc549..4d489f1 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -3109,16 +3109,14 @@ static GDBStoppointType GetGDBStoppointType(Watchpoint *wp) { assert(wp); bool watch_read = wp->WatchpointRead(); bool watch_write = wp->WatchpointWrite(); - bool watch_modify = wp->WatchpointModify(); - // watch_read, watch_write, watch_modify cannot all be false. - assert((watch_read || watch_write || watch_modify) && - "watch_read, watch_write, watch_modify cannot all be false."); - if (watch_read && (watch_write || watch_modify)) + // watch_read and watch_write cannot both be false. + assert(watch_read || watch_write); + if (watch_read && watch_write) return eWatchpointReadWrite; else if (watch_read) return eWatchpointRead; - else // Must be watch_write or watch_modify, then. + else // Must be watch_write, then. return eWatchpointWrite; } |