Ejemplo n.º 1
0
        public unsafe void GetVersionInfo(ulong baseAddress, out VersionInfo version)
        {
            MemoryVirtualAddressSpace memoryAddressSpace = new MemoryVirtualAddressSpace(this);
            ElfFile file = new ElfFile(new Reader(memoryAddressSpace), (long)baseAddress);

            LinuxFunctions.GetVersionInfo(this, baseAddress, file, out version);
        }
Ejemplo n.º 2
0
        public ElfCoreFile(Stream stream)
        {
            _reader = new Reader(new StreamAddressSpace(stream));
            ElfFile = new ElfFile(_reader);

            if (ElfFile.Header.Type != ElfHeaderType.Core)
            {
                throw new InvalidDataException($"{stream.GetFilename() ?? "The given stream"} is not a coredump");
            }

#if DEBUG
            LoadFileTable();
#endif
        }