EDIT: Apparently it was included in the basic gdb package or something.
cat `which gdbtui`
#!/bin/sh
prog=$(basename $0 tui)
dir=$(dirname $0) if [ "$dir" != "." ]; then prog=$dir/$prog fi
exec $prog --tui "$@"