MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / MappedAddressIterator

Function MappedAddressIterator

pydevd_attach_to_process/winappdbg/util.py:527–539  ·  view source on GitHub ↗

Generator function that iterates through a memory map, returning only those memory blocks that belong to memory mapped files. @type memory_map: list( L{win32.MemoryBasicInformation} ) @param memory_map: List of memory region information objects. Returned by L{Process.get_m

(memory_map)

Source from the content-addressed store, hash-verified

525
526
527def MappedAddressIterator(memory_map):
528 """
529 Generator function that iterates through a memory map, returning only those
530 memory blocks that belong to memory mapped files.
531
532 @type memory_map: list( L{win32.MemoryBasicInformation} )
533 @param memory_map: List of memory region information objects.
534 Returned by L{Process.get_memory_map}.
535
536 @rtype: generator of L{win32.MemoryBasicInformation}
537 @return: Generator object to iterate memory blocks.
538 """
539 return CustomAddressIterator(memory_map, win32.MemoryBasicInformation.is_mapped)
540
541
542def ReadableAddressIterator(memory_map):

Callers

nothing calls this directly

Calls 1

CustomAddressIteratorFunction · 0.85

Tested by

no test coverage detected