Edit File: memory_mapping.cpython-36.pyc
3 �e& � @ sr d dl mZ d dlmZ d dlmZ d dlZd dlmZ erLd dl m Z mZ ejd�Z G dd � d e�Zd d� ZdS )� )�HAS_PROC)�ProcessError)� formatAddressN)�ref)�openProc� ProcErrorz\([0-9a-f]+)-([0-9a-f]+) (.{4}) ([0-9a-f]+) ([0-9a-f]{2,3}):([0-9a-f]{2}) ([0-9]+)(?: +(.*))?c @ s4 e Zd ZdZdd� Zdd� Zdd� ZeZdd � Zd S )� MemoryMappinga� Process memory mapping (metadata about the mapping). Attributes: - start (int): first byte address - end (int): last byte address + 1 - permissions (str) - offset (int): for file, offset in bytes from the file start - major_device / minor_device (int): major / minor device number - inode (int) - pathname (str) - _process: weak reference to the process Operations: - "address in mapping" checks the address is in the mapping. - "search(somestring)" returns the offsets of "somestring" in the mapping - "str(mapping)" create one string describing the mapping - "repr(mapping)" create a string representation of the mapping, useful in list contexts c C s>