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

Function DataAddressIterator

pydevd_attach_to_process/winappdbg/util.py:497–509  ·  view source on GitHub ↗

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

(memory_map)

Source from the content-addressed store, hash-verified

495
496
497def DataAddressIterator(memory_map):
498 """
499 Generator function that iterates through a memory map, returning only those
500 memory blocks that contain data.
501
502 @type memory_map: list( L{win32.MemoryBasicInformation} )
503 @param memory_map: List of memory region information objects.
504 Returned by L{Process.get_memory_map}.
505
506 @rtype: generator of L{win32.MemoryBasicInformation}
507 @return: Generator object to iterate memory blocks.
508 """
509 return CustomAddressIterator(memory_map, win32.MemoryBasicInformation.has_content)
510
511
512def ImageAddressIterator(memory_map):

Callers

nothing calls this directly

Calls 1

CustomAddressIteratorFunction · 0.85

Tested by

no test coverage detected