diff --git a/tools/gdb/thread.py b/tools/gdb/thread.py index a902134c62f..e05780ead8e 100644 --- a/tools/gdb/thread.py +++ b/tools/gdb/thread.py @@ -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: