================
@@ -489,6 +497,168 @@ TEST_F(MemoryTest, TestReadStopsAtAnInvalidRange) {
   EXPECT_TRUE(process->m_reads.empty());
 }
 
+TEST_F(MemoryTest, TestReadRangesFromCaches) {
+  CacheTestProcess proc;
+  ASSERT_TRUE(proc.process());
+  DummyProcess *process = proc.process();
+  const lldb::addr_t line = proc.line();
+
+  { // A short fetch must expose only the bytes it read, and must not disturb a
+    // range the caches already served.
----------------
JDevlieghere wrote:

Is this actually true or even tested? Doesn't the short fetch does destroy the 
40-byte 0xAA L1 chunk at 0xB000?

https://github.com/llvm/llvm-project/pull/221015
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to