#include #include int _malloc_getcallers(ulong *pc, int mpc) { ulong l, v; ulong top; ulong caller; uchar *p; int npc; ulong x; l = (ulong)&l; if((l>>24) == 0x7F) /* in process stack */ top = 0x7ffff000; else top = (ulong)sbrk(0); for(npc=0, l=(ulong)&l; npc < mpc && l