#!/usr/bin/env bash # # Run magic (GUI) under gdb, straight from the build tree. # Generated by configure from scripts/run_magic_gdb.sh.in. # # For batch/no-GUI debugging (no X needed, reproducible), point gdb at magicdnull # instead: gdb --args "$MAGIC_TCL/magicdnull" -dnull -nowrapper set -eu here="$(cd "$(dirname "$0")" && pwd)" . "$here/magic_run_common.sh" magic_require_built magic_stage exec gdb --args "$MAGIC_TCL/magicexec" -- "$@"