mittos65/dbg

12 lines
235 B
Bash
Executable File

#!/usr/bin/env bash
default="gdb -q -x /opt/toolchain/gdbinit"
if [[ "$1" == "-" ]]; then
shift
cmd="$@"
else
cmd="${default} $@"
fi
docker-compose -f toolchain/docker-compose.yml run --rm -u $(id -u):$(id -g) run ${cmd}