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

Function ImageAddressIterator

pydevd_attach_to_process/winappdbg/util.py:512–524  ·  view source on GitHub ↗

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

(memory_map)

Source from the content-addressed store, hash-verified

510
511
512def ImageAddressIterator(memory_map):
513 """
514 Generator function that iterates through a memory map, returning only those
515 memory blocks that belong to executable images.
516
517 @type memory_map: list( L{win32.MemoryBasicInformation} )
518 @param memory_map: List of memory region information objects.
519 Returned by L{Process.get_memory_map}.
520
521 @rtype: generator of L{win32.MemoryBasicInformation}
522 @return: Generator object to iterate memory blocks.
523 """
524 return CustomAddressIterator(memory_map, win32.MemoryBasicInformation.is_image)
525
526
527def MappedAddressIterator(memory_map):

Callers

nothing calls this directly

Calls 1

CustomAddressIteratorFunction · 0.85

Tested by

no test coverage detected