Forked from https://fedorahosted.org/gdb-heap/