aboutsummaryrefslogtreecommitdiff
path: root/Debug
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2014-04-26 21:12:06 +1000
committerLorenz Meier <lm@inf.ethz.ch>2014-04-28 11:43:09 +0200
commitf1258da61086b82ad04a9945dd36d52735efc6fb (patch)
treeb5d3b9869d2e6b87b90ecf4e07b8e344fe0faf54 /Debug
parente9c94fa58113f60c82be6d829fadd307195ecfb7 (diff)
downloadpx4-firmware-f1258da61086b82ad04a9945dd36d52735efc6fb.tar.gz
px4-firmware-f1258da61086b82ad04a9945dd36d52735efc6fb.tar.bz2
px4-firmware-f1258da61086b82ad04a9945dd36d52735efc6fb.zip
Debug: fixes for gdb extension macros
Diffstat (limited to 'Debug')
-rw-r--r--Debug/NuttX10
1 files changed, 5 insertions, 5 deletions
diff --git a/Debug/NuttX b/Debug/NuttX
index 3b95e96b2..d34e9f5b4 100644
--- a/Debug/NuttX
+++ b/Debug/NuttX
@@ -34,10 +34,10 @@ define _showheap
else
set $MM_ALLOC_BIT = 0x80000000
end
- printf "HEAP %d %p - %p\n", $index, g_heapstart[$index], g_heapend[$index]
+ printf "HEAP %d %p - %p\n", $index, g_mmheap.mm_heapstart[$index], g_mmheap.mm_heapend[$index]
printf "ptr size\n"
- set $node = (char *)g_heapstart[$index] + sizeof(struct mm_allocnode_s)
- while $node < g_heapend[$index]
+ set $node = (char *)g_mmheap.mm_heapstart[$index] + sizeof(struct mm_allocnode_s)
+ while $node < g_mmheap.mm_heapend[$index]
printf " %p", $node
set $nodestruct = (struct mm_allocnode_s *)$node
printf " %u", $nodestruct->size
@@ -47,7 +47,7 @@ define _showheap
else
set $used = $used + $nodestruct->size
end
- if ($nodestruct->size > g_heapsize) || (($node + $nodestruct->size) > g_heapend[$index])
+ if ($nodestruct->size > g_mmheap.mm_heapsize) || (($node + $nodestruct->size) > g_mmheap.mm_heapend[$index])
printf " (BAD SIZE)"
end
printf "\n"
@@ -59,7 +59,7 @@ define _showheap
end
define showheap
- set $nheaps = sizeof(g_heapstart) / sizeof(g_heapstart[0])
+ set $nheaps = sizeof(g_mmheap.mm_heapstart) / sizeof(g_mmheap.mm_heapstart[0])
printf "Printing %d heaps\n", $nheaps
set $heapindex = (int)0
while $heapindex < $nheaps