3 if [ -z "$WS_ROOT" ] ; then
4 echo "ERROR: WS_ROOT environment variable is not set!"
8 source $WS_ROOT/extras/vcl-ldpreload/env.sh
9 tmp_gdb_cmdfile="/tmp/gdb_cmdfile_vpp.$$"
11 trap "rm -f $tmp_gdb_cmdfile" SIGINT SIGTERM EXIT
13 cat <<EOF > $tmp_gdb_cmdfile
15 source $WS_ROOT/extras/gdb/gdb_cmdfile.vpp
20 sudo -E emacs --eval "(gdb \"gdb -x $tmp_gdb_cmdfile -i=mi --args $*\")" --eval "(setq frame-title-format \"VPP-DEBUG\")"
23 gdb_in_emacs $WS_ROOT/build-root/install-vpp_debug-native/vpp/bin/vpp unix { interactive exec $LDP_TEST_DIR/common/vpp_docker.conf } api-segment { gid $(id -g) }