VirtualBox

Changeset 86296 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Sep 25, 2020 9:04:55 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140573
Message:

IPRT/alloc-ef.cpp: Added RTMemDumpFreed for use from gdb.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/alloc-ef.cpp

    r83548 r86296  
    308308    rtmemBlockUnlock();
    309309    return pBlock;
     310}
     311
     312
     313/**
     314 * Dumps the freed blocks.
     315 * This is something which you should call from gdb.
     316 */
     317extern "C" void RTMemDumpFreed(void);
     318void RTMemDumpFreed(void)
     319{
     320    fprintf(stderr, "address  size(alg)     caller\n");
     321    for (PRTMEMBLOCK pCur = g_pBlocksDelayHead; pCur; pCur = (PRTMEMBLOCK)pCur->Core.pRight)
     322        RTMemDumpOne(&pCur->Core, NULL);
     323
    310324}
    311325
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette