Fix ps command reports wrong running stack corruption.
To get running tcb registers, need to read from frame register not the tcb context.
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
For unknown reason, for some cases, GDB refuses to read register using descriptor. Let's stick to the register name.
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
`thread` is a GDB prefix command. Use `define` can only change it to a
user prefix command. In this case, `thread 3` is unable to pass
the argument 3 to python.
Use python code to register command to overwrite this behavior. It may
not work with future GDB, but all is good for now.
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>