Skip to content

Commit

Permalink
Merge pull request #1399 from ucgJhe/qdb
Browse files Browse the repository at this point in the history
bug fix for qdb
  • Loading branch information
xwings authored Nov 7, 2023
2 parents a3c7818 + 248c69a commit bde48c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiling/debugger/qdb/qdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def do_set(self, line: str) -> None:
reg_val = try_read_int(val.strip())

if reg_name in self.ql.arch.regs.save().keys():
if reg_val:
if reg_val is not None:
setattr(self.ql.arch.regs, reg_name, reg_val)
self.do_context()
qdb_print(QDB_MSG.INFO, f"set register {reg_name} to 0x{(reg_val & 0xfffffff):08x}")
Expand Down

0 comments on commit bde48c0

Please sign in to comment.