Skip to content

Commit 913a79a

Browse files
committed
Have core uc property reference arch uc instance
1 parent 55a0a44 commit 913a79a

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

qiling/core.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ def __init__(
6262
self._multithread = multithread
6363
self._log_filter = None
6464
self._internal_exception = None
65-
self._uc = None
6665
self._stop_options = stop
6766

6867
##################################
@@ -151,8 +150,6 @@ def __init__(
151150

152151
self._arch = select_arch(archtype, endian, thumb)(self)
153152

154-
self.uc = self.arch.uc
155-
156153
# Once we finish setting up arch, we can init QlCoreStructs and QlCoreHooks
157154
if not self.interpreter:
158155
QlCoreStructs.__init__(self, self.arch.endian, self.arch.bits)
@@ -472,11 +469,7 @@ def uc(self) -> 'Uc':
472469
473470
Type: Uc
474471
"""
475-
return self._uc
476-
477-
@uc.setter
478-
def uc(self, u: 'Uc'):
479-
self._uc = u
472+
return self.arch.uc
480473

481474
@property
482475
def stop_options(self) -> QL_STOP:

qiling/os/posix/syscall/unistd.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,6 @@ def __read_str_array(addr: int) -> Iterator[str]:
461461
if hasattr(ql.arch, 'msr'):
462462
ql.arch.msr.uc = uc
463463

464-
ql.uc = uc
465464
QlCoreHooks.__init__(ql, uc)
466465

467466
ql.os.load()

0 commit comments

Comments
 (0)