I\'m trying to investigate the state of the C/C++ heap from within gdb on Linux amd64, is there a nice way to do this?
One approach I\'ve tried is to \"call mallinfo
If you can change the code:
#include #include void dumpMallinfo(void) { struct mallinfo m = mallinfo(); printf("uordblks = %d\nfordblks = %d\n", m.uordblks, m.fordblks); }
In GDB, you can call dumpMallinfo().
call dumpMallinfo()