diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2023-09-02 08:39:25 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2023-09-04 20:55:56 +0000 |
commit | a6b1a7d809e746325fe712b9de9ff086e55772dd (patch) | |
tree | 9122c4f211fa6d0e68bca363604e77d484814926 /extras/hs-test | |
parent | 931a32876a391d0f17ac4eefb145790c0521854d (diff) |
hs-test: fix gdb attach
Type: test
Change-Id: Ic48ca7a3aab47df50d4e38e6123c90140c944172
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'extras/hs-test')
-rw-r--r-- | extras/hs-test/vppinstance.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/extras/hs-test/vppinstance.go b/extras/hs-test/vppinstance.go index bed084c42ed..c20c5e2ee8c 100644 --- a/extras/hs-test/vppinstance.go +++ b/extras/hs-test/vppinstance.go @@ -137,10 +137,9 @@ func (vpp *VppInstance) start() error { cont <- true }() - // Start VPP in GDB and wait for user to attach it - vpp.container.execServer("su -c \"gdb -ex run --args vpp -c " + startupFileName + " &> /proc/1/fd/1\"") + vpp.container.execServer("su -c \"vpp -c " + startupFileName + " &> /proc/1/fd/1\"") fmt.Println("run following command in different terminal:") - fmt.Println("docker exec -it " + vpp.container.name + " gdb -ex \"attach $(docker exec " + vpp.container.name + " pidof gdb)\"") + fmt.Println("docker exec -it " + vpp.container.name + " gdb -ex \"attach $(docker exec " + vpp.container.name + " pidof vpp)\"") fmt.Println("Afterwards press CTRL+C to continue") <-cont fmt.Println("continuing...") |