diff options
author | Jason Molenda <jason@molenda.com> | 2023-09-18 22:48:46 -0700 |
---|---|---|
committer | Jason Molenda <jason@molenda.com> | 2023-09-18 22:50:39 -0700 |
commit | 44532a9dd4a0ed08850dbddf80b7abcc51c4a7f1 (patch) | |
tree | b329bf0fa69ea63413066177e14435cd7c788f41 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | af935cf0ee8a26dcf0860ed0c72d74b4a1cb1314 (diff) | |
download | llvm-44532a9dd4a0ed08850dbddf80b7abcc51c4a7f1.zip llvm-44532a9dd4a0ed08850dbddf80b7abcc51c4a7f1.tar.gz llvm-44532a9dd4a0ed08850dbddf80b7abcc51c4a7f1.tar.bz2 |
Revert "[lldb] Add 'modify' type watchpoints, make it default (#66308)"
TestStepOverWatchpoint.py and TestUnalignedWatchpoint.py are failing
on the ubuntu and debian bots
https://lab.llvm.org/buildbot/#/builders/68/builds/60204
https://lab.llvm.org/buildbot/#/builders/96/builds/45623
and the newly added test TestModifyWatchpoint.py does not
work on windows bot
https://lab.llvm.org/buildbot/#/builders/219/builds/5708
I will debug tomorrow morning and reland.
This reverts commit 3692267ca8f9c51cb55e4387283762d921fe2ae2.
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 9d4e0a9..2fc446b 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -3108,16 +3108,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; } |