Author: Jason Molenda Date: 2024-01-31T11:09:59-08:00 New Revision: d6e1ae248e85295704e199a67405ea2a4c7e98b2
URL: https://github.com/llvm/llvm-project/commit/d6e1ae248e85295704e199a67405ea2a4c7e98b2 DIFF: https://github.com/llvm/llvm-project/commit/d6e1ae248e85295704e199a67405ea2a4c7e98b2.diff LOG: Add logging to WatchpointAlgorithm When verbose lldb watch channel is enabled, print the user requested watchpoint and the resources we've broken it up into. Added: Modified: lldb/source/Breakpoint/WatchpointAlgorithms.cpp Removed: ################################################################################ diff --git a/lldb/source/Breakpoint/WatchpointAlgorithms.cpp b/lldb/source/Breakpoint/WatchpointAlgorithms.cpp index 95a978a17cbfd..4e78bd9730521 100644 --- a/lldb/source/Breakpoint/WatchpointAlgorithms.cpp +++ b/lldb/source/Breakpoint/WatchpointAlgorithms.cpp @@ -10,6 +10,8 @@ #include "lldb/Breakpoint/WatchpointResource.h" #include "lldb/Target/Process.h" #include "lldb/Utility/ArchSpec.h" +#include "lldb/Utility/LLDBLog.h" +#include "lldb/Utility/Log.h" #include <utility> #include <vector> @@ -41,8 +43,13 @@ WatchpointAlgorithms::AtomizeWatchpointRequest( /*address_byte_size*/ arch.GetAddressByteSize()); } + Log *log = GetLog(LLDBLog::Watchpoints); + LLDB_LOGV(log, "AtomizeWatchpointRequest user request addr {0:x} size {1}", + addr, size); std::vector<WatchpointResourceSP> resources; for (Region &ent : entries) { + LLDB_LOGV(log, "AtomizeWatchpointRequest creating resource {0:x} size {1}", + ent.addr, ent.size); WatchpointResourceSP wp_res_sp = std::make_shared<WatchpointResource>(ent.addr, ent.size, read, write); resources.push_back(wp_res_sp); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits