#!/bin/sh
malloc_so=`dirname $0`/malloc_debug.so
gdb -ex "set exec-wrapper env LD_PRELOAD=$malloc_so" --args "$@"

#!/bin/sh
malloc_so=`dirname $0`/${malloc_so-malloc_debug.so}
gdb -ex "set exec-wrapper env LD_PRELOAD=$malloc_so" --args "$@"

Make it possible to select which variant to debug
Make it possible to select which variant to debug
