diff --git a/tools/gdb/thread.py b/tools/gdb/thread.py index 8e42919358..b82ce286c3 100644 --- a/tools/gdb/thread.py +++ b/tools/gdb/thread.py @@ -106,6 +106,7 @@ class Nxsetregs(gdb.Command): if i >= tcbinfo["regs_num"]: return + gdb.execute("select-frame 0") if tcbinfo["reg_off"]["p"][i] != UINT16_MAX: value = gdb.Value(regs + tcbinfo["reg_off"]["p"][i]).cast( gdb.lookup_type("uintptr_t").pointer()