diff options
author | Florin Coras <florin.coras@gmail.com> | 2016-10-10 10:54:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2016-10-10 10:54:29 +0000 |
commit | 1db8c38a6fa7fc692fe18bbd47eb2f87ec6b143b (patch) | |
tree | d8666acab6ffa948333519cf102ca0a30bac5c84 /tests/data_plane/vpp_lite_topo/utils/scripts/attach.sh | |
parent | abc6884972bc0792f4817a3822f13128d716c889 (diff) | |
parent | aea14fd0ac0868ee21b278695b2a5a17f6768141 (diff) |
Merge "Add a help script for attaching running vpp with gdb"
Diffstat (limited to 'tests/data_plane/vpp_lite_topo/utils/scripts/attach.sh')
-rwxr-xr-x | tests/data_plane/vpp_lite_topo/utils/scripts/attach.sh | 16 |
1 files changed, 16 insertions, 0 deletions
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 |