summaryrefslogtreecommitdiffstats
path: root/tools/guest-diag
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-30 02:34:16 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-30 02:34:16 -0400
commit5e1caa2fd07a3a98b3fd481c81a5a1f7cce208be (patch)
tree5a9349eaf1329ebd8695783b2454964e889f8ad8 /tools/guest-diag
parentcebdc091810d33b049e3d77810250e8dfc3b6a2e (diff)
downloadopen-iov-5e1caa2fd07a3a98b3fd481c81a5a1f7cce208be.tar.gz
open-iov-5e1caa2fd07a3a98b3fd481c81a5a1f7cce208be.zip
guest-diag: run_cycle - verify live gdb before declaring arm failure
Diffstat (limited to 'tools/guest-diag')
-rwxr-xr-xtools/guest-diag/run_cycle.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/guest-diag/run_cycle.sh b/tools/guest-diag/run_cycle.sh
index 6786aa1..71db054 100755
--- a/tools/guest-diag/run_cycle.sh
+++ b/tools/guest-diag/run_cycle.sh
@@ -78,6 +78,13 @@ elif [ "$TRACE" = "gdb" ]; then
ARMED=1
break
fi
+ # The launch exec can time out even though nohup gdb started; verify
+ # from the guest side before declaring the arm failed.
+ if timeout 20 "$VMEXEC" exec "pgrep -f 'gdb -p' >/dev/null && echo GDBOK" 2>/dev/null | grep -q GDBOK; then
+ echo " arm attempt $a: exec timed out but gdb is running; continuing"
+ ARMED=1
+ break
+ fi
echo " arm attempt $a failed; retrying"
sleep 8
done