mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
nuttxgdb: fix memdump busyloop when nodesize is 0
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
@@ -81,6 +81,7 @@ void mm_foreach(FAR struct mm_heap_s *heap, mm_node_handler_t handler,
|
||||
node = (FAR struct mm_allocnode_s *)((FAR char *)node + nodesize))
|
||||
{
|
||||
nodesize = MM_SIZEOF_NODE(node);
|
||||
DEBUGASSERT(nodesize >= MM_SIZEOF_ALLOCNODE);
|
||||
minfo("region=%d node=%p size=%zu preceding=%u (%c %c)\n",
|
||||
region, node, nodesize, (unsigned int)node->preceding,
|
||||
MM_PREVNODE_IS_FREE(node) ? 'F' : 'A',
|
||||
|
||||
Reference in New Issue
Block a user