From aea14fd0ac0868ee21b278695b2a5a17f6768141 Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Thu, 6 Oct 2016 11:46:26 +0200 Subject: Add a help script for attaching running vpp with gdb Change-Id: I01baad5910a98f3ca8f764aca69aa7a564b19d05 Signed-off-by: Filip Tehlar --- tests/data_plane/vpp_lite_topo/utils/scripts/attach.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 tests/data_plane/vpp_lite_topo/utils/scripts/attach.sh (limited to 'tests/data_plane/vpp_lite_topo/utils') diff --git a/tests/data_plane/vpp_lite_topo/utils/scripts/attach.sh b/tests/data_plane/vpp_lite_topo/utils/scripts/attach.sh new file mode 100755 index 0000000..0b87085 --- /dev/null +++ b/tests/data_plane/vpp_lite_topo/utils/scripts/attach.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +# Help script for attaching running vpp +# +# Currently his sctipt waits for second vpp pid + +pid="" + +cd ${VPP_LITE_DIR} + +while [ "$pid" == "" ] ; do + pid=$(pidof vpp | awk '{print $2}') +done + +echo "attached to $pid" +gdb attach $pid -ex cont -- cgit 1.2.3-korg