Skip to content

Commit 5f2f105

Browse files
committed
fix #1228
1 parent 06d5316 commit 5f2f105

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

qiling/debugger/qdb/qdb.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,14 @@ def _run(self, address: int = 0, end: int = 0, count: int = 0) -> None:
117117
if getattr(self.ql.arch, 'is_thumb', False):
118118
address |= 1
119119

120-
self.ql.emu_start(begin=address, end=end, count=count)
120+
# assume we're running PE if on Windows
121+
if self.ql.os.type == QL_OS.WINDOWS:
122+
self.ql.count = count
123+
self.ql.entry_point = address
124+
self.ql.os.run()
125+
126+
else:
127+
self.ql.emu_start(begin=address, end=end, count=count)
121128

122129
def save_reg_dump(func) -> None:
123130
"""

0 commit comments

Comments
 (0)