def register_commands(): # Register the commands with gdb Heap() HeapSizes() HeapUsed() HeapFree() HeapAll() HeapLog() HeapLabel() HeapDiff() HeapSelect() HeapArenas() HeapArenaSelect() Hexdump() from heap.cpython import register_commands as register_cpython_commands register_cpython_commands()