mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 13:52:22 +08:00
pynuttx:remove pthread_tcb_s cast
Just remove cast Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -889,8 +889,7 @@ def get_task_argvstr(tcb: Tcb) -> List[str]:
|
||||
if tcb.flags & TCB_FLAG_TTYPE_MASK == TCB_FLAG_TTYPE_PTHREAD:
|
||||
if tcb.type.code != gdb.TYPE_CODE_PTR:
|
||||
tcb = tcb.address
|
||||
tcb = tcb.cast(lookup_type("struct pthread_tcb_s").pointer())
|
||||
return ["", f"{tcb['cmn']['entry']['main']}", f'{tcb["arg"]}']
|
||||
return ["", f"{tcb['entry']['main']}", f'{tcb["arg"]}']
|
||||
|
||||
tls_info_s = lookup_type("struct tls_info_s").pointer()
|
||||
tls = tcb.stack_alloc_ptr.cast(tls_info_s)
|
||||
|
||||
Reference in New Issue
Block a user