llvm-c166/lldb/test/API/tools/lldb-server
Jason Molenda 31340a9222
[lldb] Add memory region info cache to Process (#206208)
Every time a memory region is queried in the inferior with a
ProcessGDBRemote connection, lldb needs to send a packet requesting the
information. When we are querying multiple addresses within the same
region, this can result in many redundant packets - e.g. to test for
whether an address is in stack memory during a backtrace.

This adds a MemoryRegionInfoCache wrapper around RangeDataVector to save
the memory regions that we query, and supply them to future queries. The
cache is flushed on any process resume in the same way that the memory
cache is; the valid pages may change as a program executes.

This PR started as a combination of this cache plus extensions to gdb
remote serial protocol packets so the debug stub can provide memory
region infos when we have a public stop (e.g. the info about each
thread's stack memory region) - including changes to both debugserver
and ProcessGDBRemote to implement that (
https://github.com/llvm/llvm-project/pull/202509 ). I'm separating out
the two pieces into separate patchsets. The test in this PR retains the
full code in the .c file that I will need to test the expedited memory
region infos still, even though it doesn't do antyhing but launch the
inferior process in the current tests.

rdar://179067896

---------

Co-authored-by: Jonas Devlieghere <jonas@devlieghere.com>
2026-06-30 18:51:33 +00:00
..
apple-simulator
attach-wait
cached-memory-region-info [lldb] Add memory region info cache to Process (#206208) 2026-06-30 18:51:33 +00:00
commandline
inferior-crash
libraries-svr4
memory-allocation
memory-tagging
qSupported
register-reading
registers-target-xml-reading
signal-filtering
test
thread-name
vCont-threads
.clang-format
categories
main.cpp [lldb][windows] fix always falsy comparison (#206179) 2026-06-29 15:16:27 +01:00
Makefile
TestGdbRemote_qMemoryRegion.py
TestGdbRemote_qRegisterInfo.py
TestGdbRemote_qThreadStopInfo.py
TestGdbRemote_vCont.py
TestGdbRemoteAttach.py
TestGdbRemoteAuxvSupport.py
TestGdbRemoteCompletion.py
TestGdbRemoteExitCode.py
TestGdbRemoteExpeditedRegisters.py
TestGdbRemoteFork.py
TestGdbRemoteForkNonStop.py
TestGdbRemoteForkResume.py
TestGdbRemoteHostInfo.py
TestGdbRemoteKill.py
TestGdbRemoteLaunch.py
TestGdbRemoteModuleInfo.py
TestGdbRemotePlatformFile.py
TestGdbRemoteProcessInfo.py
TestGdbRemoteRegisterState.py
TestGdbRemoteSaveCore.py
TestGdbRemoteSingleStep.py
TestGdbRemoteThreadsInStopReply.py
TestLldbGdbServer.py [lldb] Fix TestLldbGdbServer.py on arm64e (#203995) 2026-06-16 11:04:21 -07:00
TestNonStop.py
TestPtyServer.py