mirror of
https://github.com/siemens-mobile-hacks/llvm-c166.git
synced 2026-11-28 11:52:25 +00:00
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> |
||
|---|---|---|
| .. | ||
| apple-simulator | ||
| attach-wait | ||
| cached-memory-region-info | ||
| 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 | ||
| 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 | ||
| TestNonStop.py | ||
| TestPtyServer.py | ||