From c925f40c2ad6f5e4d7a97eab30ca168ca4e62596 Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Sun, 18 Jul 2021 20:25:46 +0300 Subject: Update 'run_gdb.sh' script Signed-off-by: Konstantin Aladyshev --- scripts/run_gdb.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/run_gdb.sh b/scripts/run_gdb.sh index a5ba6af..1683c60 100755 --- a/scripts/run_gdb.sh +++ b/scripts/run_gdb.sh @@ -9,7 +9,7 @@ function show_help { echo "Description:" echo " run_gdb.sh is a script that helps to debug UEFI shell applications and drivers" echo "" - echo "Usage: run_gdb.sh [-1|-f] -m " + echo "Usage: run_gdb.sh -m [-1|-f|-p |-q ]" echo " -1 This is a first run of this configuration" echo " (in this case before main gdb launch there would be another QEMU start that will create 'debug.log' file)" echo " -f Load all debug symbols" @@ -63,6 +63,12 @@ else DRIVERS=${TARGET} fi +if [[ -z $TARGET ]]; then + echo "Error! Module is not provided." + echo "" + show_help + exit 1 +fi function test_file { FILE_NAME=$1 -- cgit v1.2.3-18-g5258