#!/bin/bash . /home/tom/packetforth/build/vars exec $PF "$@" # Debugger. Note, starting PF from a debugger is sometimes # problematic due to a gdb bug: # Error while reading shared library symbols: # Cannot find new threads: generic error # no args: execute current PF dev version without debugger [ -z "$1" ] && exec $PF "$@" # args: run in debugger exec gdb --quiet -ex "r $*" $PF # note, the "interactive" version doesn't work well in gdb since it # daemonizes performing some fork trick with pf-console