tools/gdb: fix if restore_regs failed script abort
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
parent
eded2017d4
commit
96a3bc2b5c
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ def restore_regs():
|
|||
if i >= tcbinfo["regs_num"]:
|
||||
break
|
||||
|
||||
gdb.execute(f"set ${reg.name}={saved_regs[i]}")
|
||||
gdb.execute(f"set ${reg.name}={int(saved_regs[i])}")
|
||||
i += 1
|
||||
|
||||
saved_regs = None
|
||||
|
|
Loading…
Reference in a new issue