1#!/usr/bin/env bash
2
3# Help script for attaching running vpp
4#
5# Currently his sctipt waits for second vpp pid
6
7pid=""
8
9cd ${VPP_LITE_DIR}
10
11while [ "$pid" == "" ] ; do
12  pid=$(pidof vpp | awk '{print $2}')
13done
14
15echo "attached to $pid"
16gdb attach $pid -ex cont
17