The branch main has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=b59f9d03cd87b721e22e1d2b37876d3d2a86a3f1

commit b59f9d03cd87b721e22e1d2b37876d3d2a86a3f1
Author:     Mark Johnston <[email protected]>
AuthorDate: 2023-03-20 20:23:26 +0000
Commit:     Mark Johnston <[email protected]>
CommitDate: 2023-03-20 20:26:54 +0000

    vmrun: Expose bhyve's -G option
    
    MFC after:      1 week
---
 share/examples/bhyve/vmrun.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/share/examples/bhyve/vmrun.sh b/share/examples/bhyve/vmrun.sh
index c3cd05356eea..9770ff459a67 100755
--- a/share/examples/bhyve/vmrun.sh
+++ b/share/examples/bhyve/vmrun.sh
@@ -58,7 +58,7 @@ usage() {
            "[-d <disk file>]"
        echo "                [-e <name=value>] [-f <path of firmware>]" \
            "[-F <size>]"
-       echo "                [-H <directory>]"
+       echo "                [-G [w][address:]port] [-H <directory>]"
        echo "                [-I <location of installation iso>] [-l <loader>]"
        echo "                [-L <VNC IP for UEFI framebuffer>]"
        echo "                [-m <memsize>]" \
@@ -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}`
                ;;

Reply via email to