This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define zephyr_show_thread | |
printf "State=%d; ", ((struct k_thread *)$arg0)->base.thread_state | |
printf "Prio=%d; ", ((struct k_thread *)$arg0)->base.prio | |
printf "Entry=%p; ", ((struct k_thread *)$arg0)->entry.pEntry | |
printf "PC=%p; ", *(((struct k_thread *)$arg0)->callee_saved.psp + 20) | |
printf "LR=%p; ", *(((struct k_thread *)$arg0)->callee_saved.psp + 24) | |
printf "PSP=%p; ", ((struct k_thread *)$arg0)->callee_saved.psp + 32 | |
set $stack_start = ((struct k_thread *)$arg0)->stack_info.start | |
set $stack_size = ((struct k_thread *)$arg0)->stack_info.size |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define zephyr_show_thread | |
printf "State=%d; ", ((struct k_thread *)$arg0)->base.thread_state | |
printf "Prio=%d; ", ((struct k_thread *)$arg0)->base.prio | |
printf "Entry=%p; ", ((struct k_thread *)$arg0)->entry.pEntry | |
printf "PC=%p; ", *(((struct k_thread *)$arg0)->callee_saved.psp + 20) | |
printf "PSP=%p; ", ((struct k_thread *)$arg0)->callee_saved.psp + 32 | |
set $stack_start = ((struct k_thread *)$arg0)->stack_info.start | |
set $stack_size = ((struct k_thread *)$arg0)->stack_info.size | |
printf "Stack: %p <- %p (%u bytes)", $stack_start, $stack_start + $stack_size, $stack_size |