[Lldb-commits] [PATCH] D100503: [lldb] [client] Implement follow-fork-mode
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 19 04:21:06 PDT 2021
mgorny added inline comments.
================
Comment at: lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp:5504-5513
+ WatchpointList &wps = GetTarget().GetWatchpointList();
+ size_t wp_count = wps.GetSize();
+ for (size_t i = 0; i < wp_count; ++i) {
+ WatchpointSP wp = wps.GetByIndex(i);
+ if (wp->IsEnabled()) {
+ GDBStoppointType type = GetGDBStoppointType(wp.get());
+ m_gdb_comm.SendGDBStoppointTypePacket(type, enable, wp->GetLoadAddress(),
----------------
JDevlieghere wrote:
> Should we lock the `WatchpointList` while iterating over it? If so I think that class could benefit from an Iterable (like D105914) that will lock during iteration, which would also simplify this code a bit.
Indeed that sounds like a good idea. Opened D106263 for it. I'll update this one once that one is merged.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100503/new/
https://reviews.llvm.org/D100503
More information about the lldb-commits
mailing list