Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Mar 2023 12:51:42 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 743f4ba7e3bd - stable/13 - vmrun: Expose bhyve's -G option
Message-ID:  <202303271251.32RCpg9X005809@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj:

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

commit 743f4ba7e3bd647f77f0e613de67005ade5db51f
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-03-20 20:23:26 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-03-27 12:49:39 +0000

    vmrun: Expose bhyve's -G option
    
    MFC after:      1 week
    
    (cherry picked from commit b59f9d03cd87b721e22e1d2b37876d3d2a86a3f1)
---
 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}`
 		;;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303271251.32RCpg9X005809>