mirror of
https://github.com/qilingframework/qiling.git
synced 2026-10-12 02:21:40 +00:00
Annotations and import fixes
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
|
||||
import types
|
||||
|
||||
from qiling.arch.arch import QlArch
|
||||
from qiling.arch.evm.hooks import monkeypatch_core_hooks
|
||||
from qiling.arch.evm.vm.evm import QlArchEVMEmulator
|
||||
from qiling.arch.evm.vm.message import Message
|
||||
from qiling.const import *
|
||||
from ..arch import QlArch
|
||||
from .vm.evm import QlArchEVMEmulator
|
||||
from .hooks import monkeypatch_core_hooks
|
||||
|
||||
class QlArchEVM(QlArch):
|
||||
type = QL_ARCH.EVM
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
#
|
||||
|
||||
import ntpath
|
||||
from typing import Callable, TextIO
|
||||
from typing import Callable, TextIO, Type
|
||||
|
||||
from unicorn import UcError
|
||||
|
||||
from qiling import Qiling
|
||||
from qiling.arch.x86_const import GS_SEGMENT_ADDR, GS_SEGMENT_SIZE, FS_SEGMENT_ADDR, FS_SEGMENT_SIZE
|
||||
from qiling.arch.x86_utils import GDTManager, SegmentManager86, SegmentManager64
|
||||
from qiling.arch.x86_utils import GDTManager, SegmentManager, SegmentManager86, SegmentManager64
|
||||
from qiling.cc import intel
|
||||
from qiling.const import QL_ARCH, QL_OS, QL_INTERCEPT
|
||||
from qiling.exception import QlErrorSyscallError, QlErrorSyscallNotFound, QlMemoryMappedError
|
||||
@@ -137,7 +137,7 @@ class QlOsWindows(QlOs):
|
||||
def setupGDT(self):
|
||||
gdtm = GDTManager(self.ql)
|
||||
|
||||
segm_class = {
|
||||
segm_class: Type[SegmentManager] = {
|
||||
32 : SegmentManager86,
|
||||
64 : SegmentManager64
|
||||
}[self.ql.arch.bits]
|
||||
|
||||
Reference in New Issue
Block a user