#!/bin/bash -ex git clone --depth=1 https://github.com/rogerhu/gdb-heap || true cd gdb-heap # make sure gdbinit exists touch ~/.gdbinit if ! grep "init-gdb-heap" ~/.gdbinit; then cat >> ~/.gdbinit <