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

Method is_address_here

pydevd_attach_to_process/winappdbg/module.py:666–682  ·  view source on GitHub ↗

Tries to determine if the given address belongs to this module. @type address: int @param address: Memory address. @rtype: bool or None @return: C{True} if the address belongs to the module, C{False} if it doesn't, and C{None} if i

(self, address)

Source from the content-addressed store, hash-verified

664 return _ModuleContainer.parse_label(module, function, offset)
665
666 def is_address_here(self, address):
667 """
668 Tries to determine if the given address belongs to this module.
669
670 @type address: int
671 @param address: Memory address.
672
673 @rtype: bool or None
674 @return: C{True} if the address belongs to the module,
675 C{False} if it doesn't,
676 and C{None} if it can't be determined.
677 """
678 base = self.get_base()
679 size = self.get_size()
680 if base and size:
681 return base <= address < (base + size)
682 return None
683
684 def resolve(self, function):
685 """

Callers 1

get_module_at_addressMethod · 0.80

Calls 2

get_baseMethod · 0.95
get_sizeMethod · 0.95

Tested by

no test coverage detected