This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit f0558cbb4614031e7efc6dc85fdca09a89761808 Author: anjiahao <[email protected]> AuthorDate: Thu Oct 15 19:37:31 2026 +0800 arch/sim: give the customize heap static its own name This file defines struct mm_heap_s for the customize manager while mm/mm_heap/mm.h defines the standard one, and fs/procfs has a static named g_heap too. A debugger resolving g_heap gets whichever declaration it finds first, so the customize layout -- declared only here -- stays out of reach for tools. Name the static g_sim_heap instead. Assisted-by: Claude Signed-off-by: anjiahao <[email protected]> --- arch/sim/src/sim/sim_ummheap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sim/src/sim/sim_ummheap.c b/arch/sim/src/sim/sim_ummheap.c index 3992355f4de..1a1e12849f4 100644 --- a/arch/sim/src/sim/sim_ummheap.c +++ b/arch/sim/src/sim/sim_ummheap.c @@ -188,13 +188,13 @@ struct mm_heap_s * Private Data ****************************************************************************/ -static struct mm_heap_s g_heap; +static struct mm_heap_s g_sim_heap; /**************************************************************************** * Public Data ****************************************************************************/ -struct mm_heap_s *g_mmheap = &g_heap; +struct mm_heap_s *g_mmheap = &g_sim_heap; #ifdef CONFIG_MM_RECORD_SEQNO unsigned long g_mm_seqno;
