mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 07:40:27 +00:00
gdb/thread.py:simplify the logic of nxsetregs
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
parent
8eb1047595
commit
635e324e9a
1 changed files with 2 additions and 0 deletions
|
|
@ -93,6 +93,8 @@ class Nxsetregs(gdb.Command):
|
|||
gdb.lookup_type("char").pointer()
|
||||
)
|
||||
else:
|
||||
gdb.execute("set $_current_regs=tcbinfo_current_regs()")
|
||||
current_regs = gdb.parse_and_eval("$_current_regs")
|
||||
regs = current_regs.cast(gdb.lookup_type("char").pointer())
|
||||
|
||||
if regs == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue