代码拉取完成,页面将自动刷新
同步操作将从 w800_sdk/offline_audio_w800_rgb 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# dump the task info for rhino RTOS
# please file the elf before use this script
set height 0
define paddr
# print current info
i r
p *g_active_task[0]
bt
# store the register
set $gdb_r0 = $r0
set $gdb_r1 = $r1
set $gdb_r2 = $r2
set $gdb_r3 = $r3
set $gdb_r4 = $r4
set $gdb_r5 = $r5
set $gdb_r6 = $r6
set $gdb_r7 = $r7
set $gdb_r8 = $r8
set $gdb_r9 = $r9
set $gdb_r10 = $r10
set $gdb_r11 = $r11
set $gdb_r12 = $r12
set $gdb_r13 = $r13
set $gdb_r14 = $r14
set $gdb_r15 = $r15
set $gdb_psr = $psr
set $gdb_pc = $pc
# get list offset
set $gdb_offset = (int)((int)&g_active_task[0]->task_stats_item - (int)g_active_task[0])
# get tcb addr
set $gdb_tcb_addr = (ktask_t *)((int)(klist_t *)(&g_kobj_list.task_head)->next - $gdb_offset)
# get task name
set $gdb_task_name = ((ktask_t *)($gdb_tcb_addr))->task_name
set $gdb_i = 0
while (&($gdb_tcb_addr->task_stats_item) != &g_kobj_list.task_head)
# print the task info
p $gdb_i
p $gdb_task_name
p *$gdb_tcb_addr
# set register to restore the task
set $r0 = *(int *)((int)$gdb_tcb_addr->task_stack + 0)
set $r1 = *(int *)((int)$gdb_tcb_addr->task_stack + 4)
set $r2 = *(int *)((int)$gdb_tcb_addr->task_stack + 8)
set $r3 = *(int *)((int)$gdb_tcb_addr->task_stack + 12)
set $r4 = *(int *)((int)$gdb_tcb_addr->task_stack + 16)
set $r5 = *(int *)((int)$gdb_tcb_addr->task_stack + 20)
set $r6 = *(int *)((int)$gdb_tcb_addr->task_stack + 24)
set $r7 = *(int *)((int)$gdb_tcb_addr->task_stack + 28)
set $r8 = *(int *)((int)$gdb_tcb_addr->task_stack + 32)
set $r9 = *(int *)((int)$gdb_tcb_addr->task_stack + 36)
set $r10 = *(int *)((int)$gdb_tcb_addr->task_stack + 40)
set $r11 = *(int *)((int)$gdb_tcb_addr->task_stack + 44)
set $r12 = *(int *)((int)$gdb_tcb_addr->task_stack + 48)
set $r13 = *(int *)((int)$gdb_tcb_addr->task_stack + 52)
set $r15 = *(int *)((int)$gdb_tcb_addr->task_stack + 56)
set $psr = *(int *)((int)$gdb_tcb_addr->task_stack + 188)
set $pc = *(int *)((int)$gdb_tcb_addr->task_stack + 192)
set $r14 = (int)($gdb_tcb_addr->task_stack) + 196
# print the task stack backtrace
bt
# go to next task
set $gdb_i = $gdb_i + 1
set $gdb_tcb_addr = (ktask_t *) ((int)$gdb_tcb_addr->task_stats_item - $gdb_offset)
set $gdb_task_name = ((ktask_t *)($gdb_tcb_addr))->task_name
end
# restore the register
set $r0 = $gdb_r0
set $r1 = $gdb_r1
set $r2 = $gdb_r2
set $r3 = $gdb_r3
set $r4 = $gdb_r4
set $r5 = $gdb_r5
set $r6 = $gdb_r6
set $r7 = $gdb_r7
set $r8 = $gdb_r8
set $r9 = $gdb_r9
set $r10 = $gdb_r10
set $r11 = $gdb_r11
set $r12 = $gdb_r12
set $r13 = $gdb_r13
set $r14 = $gdb_r14
set $r15 = $gdb_r15
set $psr = $gdb_psr
set $pc = $gdb_pc
end
paddr
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。