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

Method get_module

pydevd_attach_to_process/winappdbg/event.py:973–987  ·  view source on GitHub ↗

@rtype: L{Module} @return: Module object for the newly loaded DLL.

(self)

Source from the content-addressed store, hash-verified

971 return self.raw.u.LoadDll.lpBaseOfDll
972
973 def get_module(self):
974 """
975 @rtype: L{Module}
976 @return: Module object for the newly loaded DLL.
977 """
978 lpBaseOfDll = self.get_module_base()
979 aProcess = self.get_process()
980 if aProcess.has_module(lpBaseOfDll):
981 aModule = aProcess.get_module(lpBaseOfDll)
982 else:
983 # XXX HACK
984 # For some reason the module object is missing, so make a new one.
985 aModule = Module(lpBaseOfDll, hFile=self.get_file_handle(), fileName=self.get_filename(), process=aProcess)
986 aProcess._add_module(aModule)
987 return aModule
988
989 def get_file_handle(self):
990 """

Callers 10

print_module_loadMethod · 0.45
print_module_unloadMethod · 0.45
__cleanup_moduleMethod · 0.45
_notify_load_dllMethod · 0.45
__init__Method · 0.45
get_moduleMethod · 0.45
get_moduleMethod · 0.45
__get_hooks_for_dllMethod · 0.45
get_main_moduleMethod · 0.45
find_modules_by_baseMethod · 0.45

Calls 7

get_module_baseMethod · 0.95
get_file_handleMethod · 0.95
get_filenameMethod · 0.95
ModuleClass · 0.90
has_moduleMethod · 0.80
_add_moduleMethod · 0.80
get_processMethod · 0.45

Tested by

no test coverage detected