This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 96a3bc2b5c6e4efdea7a4890d327199d2fdea9d9 Author: buxiasen <buxia...@xiaomi.com> AuthorDate: Wed Aug 7 14:20:40 2024 +0800 tools/gdb: fix if restore_regs failed script abort Signed-off-by: buxiasen <buxia...@xiaomi.com> --- tools/gdb/thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gdb/thread.py b/tools/gdb/thread.py index fda2aa7977..a6cd14b7c3 100644 --- a/tools/gdb/thread.py +++ b/tools/gdb/thread.py @@ -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