Skip to content

Commit 945f32d

Browse files
committed
Document uc stepping bug
1 parent f82ca0f commit 945f32d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

qiling/debugger/gdb/gdb.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,12 @@ def handle_s(subcmd: str) -> Reply:
656656
"""Perform a single step.
657657
"""
658658

659+
# BUG: a known unicorn caching issue causes it to emulate more
660+
# steps than requestes. until that issue is fixed, single stepping
661+
# is essentially broken.
662+
#
663+
# @see: https://github.com/unicorn-engine/unicorn/issues/1606
664+
659665
self.gdb.resume_emu(steps=1)
660666

661667
return f'S{SIGTRAP:02x}'

0 commit comments

Comments
 (0)