Skip to content

Commit

Permalink
debug: thread_info: Add posix thread status
Browse files Browse the repository at this point in the history
Add missing THREAD_INFO_OFFSET_T_STACK_PTR information for arch posix.

Signed-off-by: Gerson Fernando Budke <[email protected]>
  • Loading branch information
nandojve authored and cfriedt committed Aug 30, 2021
1 parent 96c7f6a commit 2797afb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions subsys/debug/thread_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ size_t _kernel_thread_info_offsets[] = {
#elif defined(CONFIG_SPARC)
[THREAD_INFO_OFFSET_T_STACK_PTR] = offsetof(struct k_thread,
callee_saved.o6),
#elif defined(CONFIG_ARCH_POSIX)
[THREAD_INFO_OFFSET_T_STACK_PTR] = offsetof(struct k_thread,
callee_saved.thread_status),
#else
/* Use a special value so that OpenOCD knows that obtaining the stack
* pointer is not possible on this particular architecture.
Expand Down

0 comments on commit 2797afb

Please sign in to comment.