ref: b16ad02a8d9b998d120a06702bd89e883268fd79
parent: 52649073089ccf1746f4cc3d5c3c4f8893e6c706
author: David Arroyo <david@arroyo.cc>
date: Sun Mar 15 20:17:37 EDT 2026
gdbfs: add default port to manual
--- a/sys/man/4/gdbfs
+++ b/sys/man/4/gdbfs
@@ -36,11 +36,14 @@
or connected to standard input/output if
.I addr
is not specified.
-If the
+If a a network or port is not specified,
+.BI tcp! addr !1234
+is used.
+The
.B -s
-option is given,
+option tells
.I gdbfs
-will post its channel at
+to post its channel at
.BI /srv/ srvname
(see
.IR srv (3)),
@@ -74,8 +77,8 @@
.IP
.EX
bind /mnt/term/net /net
- gdbfs -t /amd64/9pc64 tcp!localhost!1234
- acid 1
+ gdbfs -t /amd64/9pc64 localhost
+ acid -l kernel 1
.EE
.PP
Connect to gdbserver over a serial interface to debug an arm system:
@@ -88,6 +91,7 @@
Use a reliable transport such as TCP or a pipe for best results.
Stubs which emit more than one reply per request may cause gdbfs to become stuck.
+
.SH SOURCE
/sys/src/cmd/gdbfs
.SH "SEE ALSO"
--
⑨