summaryrefslogtreecommitdiff
path: root/lldb/source/Breakpoint/WatchpointAlgorithms.cpp
diff options
context:
space:
mode:
authorJason Molenda <jason@molenda.com>2024-01-31 11:09:04 -0800
committerJason Molenda <jason@molenda.com>2024-01-31 11:09:59 -0800
commitd6e1ae248e85295704e199a67405ea2a4c7e98b2 (patch)
tree348e4650deb811936bdc85d478dcf11f9ec24104 /lldb/source/Breakpoint/WatchpointAlgorithms.cpp
parent09fc333ec094c9c48f315dd322105b51b34ff2c4 (diff)
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.
Diffstat (limited to 'lldb/source/Breakpoint/WatchpointAlgorithms.cpp')
-rw-r--r--lldb/source/Breakpoint/WatchpointAlgorithms.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Breakpoint/WatchpointAlgorithms.cpp b/lldb/source/Breakpoint/WatchpointAlgorithms.cpp
index 95a978a17cbf..4e78bd973052 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);