diff --git a/share/examples/bhyve/vmrun.sh b/share/examples/bhyve/vmrun.sh index c3cd05356ee..9770ff459a6 100755 --- a/share/examples/bhyve/vmrun.sh +++ b/share/examples/bhyve/vmrun.sh @@ -58,7 +58,7 @@ usage() { "[-d ]" echo " [-e ] [-f ]" \ "[-F ]" - echo " [-H ]" + echo " [-G [w][address:]port] [-H ]" echo " [-I ] [-l ]" echo " [-L ]" echo " [-m ]" \ @@ -76,6 +76,7 @@ usage() { echo " -f: Use a specific UEFI firmware" echo " -F: Use a custom UEFI GOP framebuffer size" \ "(default: ${DEFAULT_VNCSIZE})" + echo " -G: bind the GDB stub to the specified address" echo " -H: host filesystem to export to the loader" echo " -i: force boot of the Installation CDROM image" echo " -I: Installation CDROM image location" \ @@ -132,7 +133,7 @@ vncport=${DEFAULT_VNCPORT} vncsize=${DEFAULT_VNCSIZE} tablet="" -while getopts aAc:C:d:e:Ef:F:g:hH:iI:l:L:m:n:p:P:t:Tuvw c ; do +while getopts aAc:C:d:e:Ef:F:G:hH:iI:l:L:m:n:p:P:t:Tuvw c ; do case $c in a) bhyverun_opt="${bhyverun_opt} -a" @@ -165,6 +166,9 @@ while getopts aAc:C:d:e:Ef:F:g:hH:iI:l:L:m:n:p:P:t:Tuvw c ; do F) vncsize="${OPTARG}" ;; + G) + bhyverun_opt="${bhyverun_opt} -G ${OPTARG}" + ;; H) host_base=`realpath ${OPTARG}` ;;