Esempio n. 1
0
 def __init__(self, reader, directory, ext=PdbFile.EXT_MODULE_FILES):
     if directory.streams[3].content_size == 0:
         raise PdbMissingDBIError()
     bits = BitAccess(512 * 1024)
     directory.streams[3].read(reader, bits)
     (self.modules, self.header, self.dbghdr,
      self.module_files) = PdbFile.load_dbi_stream(bits, True, ext)
Esempio n. 2
0
 def __init__(self, reader, directory):
     if directory.streams[1].content_size == 0:
         raise PdbMissingNameStreamError()
     bits = BitAccess(512 * 1024)
     directory.streams[1].read(reader, bits)
     (self.name_index, self.ver, self.sig, self.age,
      self.guid) = PdbFile.load_name_index(bits)