aboutsummaryrefslogtreecommitdiff
path: root/Debug
diff options
context:
space:
mode:
Diffstat (limited to 'Debug')
-rw-r--r--Debug/NuttX5
1 files changed, 3 insertions, 2 deletions
diff --git a/Debug/NuttX b/Debug/NuttX
index 4b9f4b5a1..20b579310 100644
--- a/Debug/NuttX
+++ b/Debug/NuttX
@@ -178,9 +178,10 @@ define showtaskstack
printf "can't measure idle stack\n"
else
set $stack_free = 0
- while ($stack_free < $task->adj_stack_size) && *(uint8_t *)($task->stack_alloc_ptr + $stack_free)
+ while ($stack_free < $task->adj_stack_size) && ((uint32_t *)($task->stack_alloc_ptr))[$stack_free] == 0xffffffff
set $stack_free = $stack_free + 1
end
+ set $stack_free = $stack_free * 4
printf" stack 0x%08x-0x%08x (%d) %d free\n", $task->stack_alloc_ptr, $task->adj_stack_ptr, $task->adj_stack_size, $stack_free
end
end
@@ -278,4 +279,4 @@ define my_mem
set $cursor = $cursor - 4
end
end
-end \ No newline at end of file
+end