]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests/util/grub-shell: Print gdbinfo if on EFI platform
authorGlenn Washburn <development@efficientek.com>
Sun, 9 Jun 2024 02:22:31 +0000 (21:22 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 20 Jun 2024 13:05:35 +0000 (15:05 +0200)
Allow using GDB to debug a failing QEMU test. This output does not cause
issues for tests because it happens before the trim line, and so will be
ignored.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/util/grub-shell.in

index 496e1bab33c8c1558ae46740d5e324b764203050..3113cc3a2a32975ba0c8b5f4d1c4a2e595c4bfb7 100644 (file)
@@ -360,6 +360,9 @@ halt_cmd=${halt_cmd}
 export halt_cmd
 enable_progress_indicator=0
 export enable_progress_indicator
+if [ "${grub_modinfo_platform}" == efi ]; then
+  gdbinfo
+fi
 EOF