Skip to content

Commit 778b979

Browse files
committed
print context if still running when debugging mcu
1 parent 93bb984 commit 778b979

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

qiling/debugger/qdb/qdb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,8 @@ def _run(self: Qldbg, address: int = 0, end: int = 0, count: int = 0) -> None:
118118
self.ql.count -= 1
119119
if self.cur_addr in self.bp_list.keys():
120120
print(f"{color.CYAN}[+] hit breakpoint at 0x{self.cur_addr:08x}{color.END}")
121+
self.do_context()
121122
break
122-
123-
self.do_context()
124123
return
125124

126125
if self.ql.archtype in (QL_ARCH.ARM, QL_ARCH.ARM_THUMB, QL_ARCH.CORTEX_M) and is_thumb(self.ql.reg.cpsr):

0 commit comments

Comments
 (0)