2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Show a dump of the memory list.
9 #include <exec/lists.h>
10 #include <exec/memory.h>
11 #include <exec/execbase.h>
12 #include <aros/debug.h>
13 #include <proto/exec.h>
15 /*****************************************************************************
18 #include <proto/arossupport.h>
26 Print information about all memory lists.
35 This function is not part of a library and may thus be called
46 ******************************************************************************/
48 #ifndef __DONT_USE_DEBUGMEM__
56 mh
= (struct MemHeader
*) GetHead(&SysBase
->MemList
);
58 mh
= (struct MemHeader
*) GetSucc(mh
)
61 bug("List %s: Attr=%08lX from 0x%p to 0x%p Free=%ld\n"
69 for (mc
=mh
->mh_First
; mc
; mc
=mc
->mc_Next
)
71 bug (" Chunk %p Size %ld\n", mc
, mc
->mc_Bytes
);