summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/scripted_process_empty_memory_region
AgeCommit message (Collapse)Author
2024-11-15[lldb] Only run scripted process test on x86_64/arm64Jason Molenda
The newly added test/API/functionalities/scripted_process_empty_memory_region/dummy_scripted_process.py imports examples/python/templates/scripted_process.py which only has register definitions for x86_64 and arm64. Only run this test on those two architectures for now.
2024-11-15[lldb] Handle an empty SBMemoryRegionInfo from scripted process (#115963)Jason Molenda
A scripted process implementation might return an SBMemoryRegionInfo object in its implementation of `get_memory_region_containing_address` which will have an address 0 and size 0, without realizing the problems this can cause. Several algorithms in lldb will try to iterate over the MemoryRegions of the process, starting at address 0 and expecting to iterate up to the highest vm address, stepping by the size of each region, so a 0-length region will result in an infinite loop. Add a check to Process::GetMemoryRegionInfo that rejects a MemoryRegion which does not contain the requested address; a 0-length memory region will therefor always be rejected. rdar://139678032