Re: svn commit: r353700 - in head: share/man/man4 sys/amd64/conf sys/conf sys/gdb sys/i386/conf sys/kern sys/net sys/sys
In message <201910182216.x9img7wo032...@slippy.cwsent.com>, Cy Schubert writes: > In message <20191018183718.5e6b3...@hermann.fritz.box>, "Hartmann, O." > writes: > > --Sig_/icZw9PmU7w9Aj=UqDZhZj.c > > Content-Type: text/plain; charset=US-ASCII > > Content-Transfer-Encoding: quoted-printable > > > > On Fri, 18 Oct 2019 09:26:51 -0700 > > Cy Schubert wrote: > > > > > On October 18, 2019 8:54:06 AM PDT, "Hartmann, O." > > > wrote: > > > >On Fri, 18 Oct 2019 07:24:12 -0700 > > > >Cy Schubert wrote: > > > > =20 > > > >> In message <20191018160935.7dda6...@hermann.fritz.box>, "Hartmann, > > > >> O." writes: =20 > > > >> > --Sig_/QDD9BZgeMM6.TJkOIciNb32 > > > >> > Content-Type: text/plain; charset=3DUS-ASCII > > > >> > Content-Transfer-Encoding: quoted-printable > > > >> > > > > >> > On Fri, 18 Oct 2019 14:00:45 +0200 > > > >> > Gary Jennejohn wrote: > > > >> > =20 > > > >> > > On Fri, 18 Oct 2019 12:21:04 +0200 > > > >> > > "Hartmann, O." wrote: > > > >> > >=3D20 =20 > > > >> > > > On Thu, 17 Oct 2019 21:33:01 + (UTC) > > > >> > > > Conrad Meyer wrote: > > > >> > > > =3D20 =20 > > > >> > > > > Author: cem > > > >> > > > > Date: Thu Oct 17 21:33:01 2019 > > > >> > > > > New Revision: 353700 > > > >> > > > > URL: https://svnweb.freebsd.org/changeset/base/353700 > > > >> > > > >=3D20 > > > >> > > > > Log: > > > >> > > > > Implement NetGDB(4) > > > >> > > > > =3D20 > > > >> > > > > NetGDB(4) is a component of a system using a panic-time > > > >> > > > > network stack to remotely debug crashed FreeBSD kernels > > > >> > > > > over the network, instead of traditional serial interfaces. > > > >> > > > > =3D20 > > > >> > > > > There are three pieces in the complete NetGDB system. > > > >> > > > > =3D20 > > > >> > > > > First, a dedicated proxy server must be running to accept > > > >> > > > > connections from both NetGDB and gdb(1), and pass > > > >> > > > > bidirectional traffic between the two protocols. > > > >> > > > > =3D20 > > > >> > > > > Second, the NetGDB client is activated much like ordinary > > > >> > > > > 'gdb' and similarly to 'netdump' in ddb(4) after a panic. > > > >> > > > > Like other debugnet(4) clients (netdump(4)), the network > > > >> > > > > interface on the route to the proxy server must be online > > > >> > > > > and support debugnet(4). =3D20 > > > >> > > > > Finally, the remote (k)gdb(1) uses 'target remote > > > >> > > > > :' (like any other TCP remote) to connect to > > > >> > > > > the proxy server.=3D20 > > > >> > > > > The NetGDB v1 protocol speaks the literal GDB remote > > > >> > > > > serial protocol, and uses a 1:1 relationship between GDB > > > >> > > > > packets and sequences of debugnet packets (fragmented by > > > >> > > > > MTU). There is no encryption utilized to keep debugging > > > >> > > > > sessions private, so this is only appropriate for local > > > >> > > > > segments or trusted networks. =3D20 > > > >> > > > > Submitted by:John Reimer > > > >> > > > > (earlier version) Discussed some with: emaste, markj > > > >> > > > > Relnotes:sure > > > >> > > > > Differential Revision: > > > >> > > > > https://reviews.freebsd.org/D21568 > > > >> > > > >=3D20 > > > >> > > > > Added: > > > >> > > > > head/share/man/man4/netgdb.4 (contents, props changed) > > > >> > > > > head/sys/gdb/netgdb.c (contents, props changed) > > > >> > > > > head/sys/gdb/netgdb.h (contents, props changed) > > > >> > > > > Modified: > > > >> > > > > head/share/man/man4/Makefile > > > >> > > > > head/share/man/man4/ddb.4 > > > >> > > > > head/sys/amd64/conf/GENERIC > > > >> > > > > head/sys/conf/NOTES > > > >> > > > > head/sys/conf/files > > > >> > > > > head/sys/conf/options > > > >> > > > > head/sys/gdb/gdb.h > > > >> > > > > head/sys/gdb/gdb_int.h > > > >> > > > > head/sys/gdb/gdb_main.c > > > >> > > > > head/sys/gdb/gdb_packet.c > > > >> > > > > head/sys/i386/conf/GENERIC > > > >> > > > > head/sys/kern/subr_kdb.c > > > >> > > > > head/sys/net/debugnet.c > > > >> > > > > head/sys/net/debugnet.h > > > >> > > > > head/sys/net/debugnet_inet.c > > > >> > > > > head/sys/net/debugnet_int.h > > > >> > > > > head/sys/sys/kdb.h > > > >> > > > > head/sys/sys/param.h > > > >> > > > >=3D20 > > > >> > > > > Modified: head/share/man/man4/Makefile > > > >> > > > > =20 > > > >=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D= > > =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D > > > >=20 > > > >> > > > > =20 > > > >> > =20 > > > >=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D= > > =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D > > > >=20 > > > >> > =20 > > > >=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D= > > =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D > > > >=20 > > > >> > =3D3D=3D3D=3D3D=3D3D=3D3D =20 > > > >> > > > > --- head/share/man/man4/Makefile Thu Oct 17 21:25:50 > > > >> > > > > 2019 (r353699) +++
Re: svn commit: r353700 - in head: share/man/man4 sys/amd64/conf sys/conf sys/gdb sys/i386/conf sys/kern sys/net sys/sys
In message <20191018183718.5e6b3...@hermann.fritz.box>, "Hartmann, O." writes: > --Sig_/icZw9PmU7w9Aj=UqDZhZj.c > Content-Type: text/plain; charset=US-ASCII > Content-Transfer-Encoding: quoted-printable > > On Fri, 18 Oct 2019 09:26:51 -0700 > Cy Schubert wrote: > > > On October 18, 2019 8:54:06 AM PDT, "Hartmann, O." > > wrote: > > >On Fri, 18 Oct 2019 07:24:12 -0700 > > >Cy Schubert wrote: > > > =20 > > >> In message <20191018160935.7dda6...@hermann.fritz.box>, "Hartmann, > > >> O." writes: =20 > > >> > --Sig_/QDD9BZgeMM6.TJkOIciNb32 > > >> > Content-Type: text/plain; charset=3DUS-ASCII > > >> > Content-Transfer-Encoding: quoted-printable > > >> > > > >> > On Fri, 18 Oct 2019 14:00:45 +0200 > > >> > Gary Jennejohn wrote: > > >> > =20 > > >> > > On Fri, 18 Oct 2019 12:21:04 +0200 > > >> > > "Hartmann, O." wrote: > > >> > >=3D20 =20 > > >> > > > On Thu, 17 Oct 2019 21:33:01 + (UTC) > > >> > > > Conrad Meyer wrote: > > >> > > > =3D20 =20 > > >> > > > > Author: cem > > >> > > > > Date: Thu Oct 17 21:33:01 2019 > > >> > > > > New Revision: 353700 > > >> > > > > URL: https://svnweb.freebsd.org/changeset/base/353700 > > >> > > > >=3D20 > > >> > > > > Log: > > >> > > > > Implement NetGDB(4) > > >> > > > > =3D20 > > >> > > > > NetGDB(4) is a component of a system using a panic-time > > >> > > > > network stack to remotely debug crashed FreeBSD kernels > > >> > > > > over the network, instead of traditional serial interfaces. > > >> > > > > =3D20 > > >> > > > > There are three pieces in the complete NetGDB system. > > >> > > > > =3D20 > > >> > > > > First, a dedicated proxy server must be running to accept > > >> > > > > connections from both NetGDB and gdb(1), and pass > > >> > > > > bidirectional traffic between the two protocols. > > >> > > > > =3D20 > > >> > > > > Second, the NetGDB client is activated much like ordinary > > >> > > > > 'gdb' and similarly to 'netdump' in ddb(4) after a panic. > > >> > > > > Like other debugnet(4) clients (netdump(4)), the network > > >> > > > > interface on the route to the proxy server must be online > > >> > > > > and support debugnet(4). =3D20 > > >> > > > > Finally, the remote (k)gdb(1) uses 'target remote > > >> > > > > :' (like any other TCP remote) to connect to > > >> > > > > the proxy server.=3D20 > > >> > > > > The NetGDB v1 protocol speaks the literal GDB remote > > >> > > > > serial protocol, and uses a 1:1 relationship between GDB > > >> > > > > packets and sequences of debugnet packets (fragmented by > > >> > > > > MTU). There is no encryption utilized to keep debugging > > >> > > > > sessions private, so this is only appropriate for local > > >> > > > > segments or trusted networks. =3D20 > > >> > > > > Submitted by: John Reimer > > >> > > > > (earlier version) Discussed some with: emaste, markj > > >> > > > > Relnotes: sure > > >> > > > > Differential Revision: > > >> > > > > https://reviews.freebsd.org/D21568 > > >> > > > >=3D20 > > >> > > > > Added: > > >> > > > > head/share/man/man4/netgdb.4 (contents, props changed) > > >> > > > > head/sys/gdb/netgdb.c (contents, props changed) > > >> > > > > head/sys/gdb/netgdb.h (contents, props changed) > > >> > > > > Modified: > > >> > > > > head/share/man/man4/Makefile > > >> > > > > head/share/man/man4/ddb.4 > > >> > > > > head/sys/amd64/conf/GENERIC > > >> > > > > head/sys/conf/NOTES > > >> > > > > head/sys/conf/files > > >> > > > > head/sys/conf/options > > >> > > > > head/sys/gdb/gdb.h > > >> > > > > head/sys/gdb/gdb_int.h > > >> > > > > head/sys/gdb/gdb_main.c > > >> > > > > head/sys/gdb/gdb_packet.c > > >> > > > > head/sys/i386/conf/GENERIC > > >> > > > > head/sys/kern/subr_kdb.c > > >> > > > > head/sys/net/debugnet.c > > >> > > > > head/sys/net/debugnet.h > > >> > > > > head/sys/net/debugnet_inet.c > > >> > > > > head/sys/net/debugnet_int.h > > >> > > > > head/sys/sys/kdb.h > > >> > > > > head/sys/sys/param.h > > >> > > > >=3D20 > > >> > > > > Modified: head/share/man/man4/Makefile > > >> > > > > =20 > > >=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D= > =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D > > >=20 > > >> > > > > =20 > > >> > =20 > > >=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D= > =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D > > >=20 > > >> > =20 > > >=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D= > =3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D > > >=20 > > >> > =3D3D=3D3D=3D3D=3D3D=3D3D =20 > > >> > > > > --- head/share/man/man4/Makefile Thu Oct 17 21:25:50 > > >> > > > > 2019 (r353699) +++ head/share/man/man4/Makefile > > >> > > > > Thu Oct 17 21:33:01 2019 (r353700) @@ -307,6 +307,7 > > >> > > > > @@ MAN=3D3D aac.4 \ net80211.4 \ > > >> > > > > netdump.4 \ > > >> > > > > netfpga10g_nf10bmac.4 \ > > >> > > > > +netgdb.4 \ > > >> > > > > netgraph.4 \ > >
Re: svn commit: r353700 - in head: share/man/man4 sys/amd64/conf sys/conf sys/gdb sys/i386/conf sys/kern sys/net sys/sys
On Fri, 18 Oct 2019 09:26:51 -0700 Cy Schubert wrote: > On October 18, 2019 8:54:06 AM PDT, "Hartmann, O." > wrote: > >On Fri, 18 Oct 2019 07:24:12 -0700 > >Cy Schubert wrote: > > > >> In message <20191018160935.7dda6...@hermann.fritz.box>, "Hartmann, > >> O." writes: > >> > --Sig_/QDD9BZgeMM6.TJkOIciNb32 > >> > Content-Type: text/plain; charset=US-ASCII > >> > Content-Transfer-Encoding: quoted-printable > >> > > >> > On Fri, 18 Oct 2019 14:00:45 +0200 > >> > Gary Jennejohn wrote: > >> > > >> > > On Fri, 18 Oct 2019 12:21:04 +0200 > >> > > "Hartmann, O." wrote: > >> > >=20 > >> > > > On Thu, 17 Oct 2019 21:33:01 + (UTC) > >> > > > Conrad Meyer wrote: > >> > > > =20 > >> > > > > Author: cem > >> > > > > Date: Thu Oct 17 21:33:01 2019 > >> > > > > New Revision: 353700 > >> > > > > URL: https://svnweb.freebsd.org/changeset/base/353700 > >> > > > >=20 > >> > > > > Log: > >> > > > > Implement NetGDB(4) > >> > > > > =20 > >> > > > > NetGDB(4) is a component of a system using a panic-time > >> > > > > network stack to remotely debug crashed FreeBSD kernels > >> > > > > over the network, instead of traditional serial interfaces. > >> > > > > =20 > >> > > > > There are three pieces in the complete NetGDB system. > >> > > > > =20 > >> > > > > First, a dedicated proxy server must be running to accept > >> > > > > connections from both NetGDB and gdb(1), and pass > >> > > > > bidirectional traffic between the two protocols. > >> > > > > =20 > >> > > > > Second, the NetGDB client is activated much like ordinary > >> > > > > 'gdb' and similarly to 'netdump' in ddb(4) after a panic. > >> > > > > Like other debugnet(4) clients (netdump(4)), the network > >> > > > > interface on the route to the proxy server must be online > >> > > > > and support debugnet(4). =20 > >> > > > > Finally, the remote (k)gdb(1) uses 'target remote > >> > > > > :' (like any other TCP remote) to connect to > >> > > > > the proxy server.=20 > >> > > > > The NetGDB v1 protocol speaks the literal GDB remote > >> > > > > serial protocol, and uses a 1:1 relationship between GDB > >> > > > > packets and sequences of debugnet packets (fragmented by > >> > > > > MTU). There is no encryption utilized to keep debugging > >> > > > > sessions private, so this is only appropriate for local > >> > > > > segments or trusted networks. =20 > >> > > > > Submitted by:John Reimer > >> > > > > (earlier version) Discussed some with: emaste, markj > >> > > > > Relnotes:sure > >> > > > > Differential Revision: > >> > > > > https://reviews.freebsd.org/D21568 > >> > > > >=20 > >> > > > > Added: > >> > > > > head/share/man/man4/netgdb.4 (contents, props changed) > >> > > > > head/sys/gdb/netgdb.c (contents, props changed) > >> > > > > head/sys/gdb/netgdb.h (contents, props changed) > >> > > > > Modified: > >> > > > > head/share/man/man4/Makefile > >> > > > > head/share/man/man4/ddb.4 > >> > > > > head/sys/amd64/conf/GENERIC > >> > > > > head/sys/conf/NOTES > >> > > > > head/sys/conf/files > >> > > > > head/sys/conf/options > >> > > > > head/sys/gdb/gdb.h > >> > > > > head/sys/gdb/gdb_int.h > >> > > > > head/sys/gdb/gdb_main.c > >> > > > > head/sys/gdb/gdb_packet.c > >> > > > > head/sys/i386/conf/GENERIC > >> > > > > head/sys/kern/subr_kdb.c > >> > > > > head/sys/net/debugnet.c > >> > > > > head/sys/net/debugnet.h > >> > > > > head/sys/net/debugnet_inet.c > >> > > > > head/sys/net/debugnet_int.h > >> > > > > head/sys/sys/kdb.h > >> > > > > head/sys/sys/param.h > >> > > > >=20 > >> > > > > Modified: head/share/man/man4/Makefile > >> > > > > > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > > > >> > > > > > >> > > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > > > >> > > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > > > >> > =3D=3D=3D=3D=3D > >> > > > > --- head/share/man/man4/Makefile Thu Oct 17 21:25:50 > >> > > > > 2019 (r353699) +++ head/share/man/man4/Makefile > >> > > > > Thu Oct 17 21:33:01 2019 (r353700) @@ -307,6 +307,7 > >> > > > > @@ MAN=3D aac.4 \ net80211.4 \ > >> > > > >netdump.4 \ > >> > > > >netfpga10g_nf10bmac.4 \ > >> > > > > + netgdb.4 \ > >> > > > >netgraph.4 \ > >> > > > >netintro.4 \ > >> > > > >netmap.4 \ > >> > > > >=20 > >> > > > [...] > >> > > >=20 > >> > > >=20 > >> > > > Having "nooptions NETGDB # netgdb(4) client > >> > > > support" defined in my kernel config file, buildkernel fails > >> > > > with the error shown below. > >> > > >=20 > >> > > > [...] > >> > > > --- debugnet.o --- > >> > > > /usr/src/sys/net/debugnet.c:662:4: error: implicit > >> > > > declaration of function 'db_printf' is invalid in C99 > >> > > > [-Werror,-Wimplicit-function-declaration] db_printf("%s: > >> > > > Could not get route for that server.\n", ^ > >> > > >
Re: svn commit: r353700 - in head: share/man/man4 sys/amd64/conf sys/conf sys/gdb sys/i386/conf sys/kern sys/net sys/sys
On October 18, 2019 8:54:06 AM PDT, "Hartmann, O." wrote: >On Fri, 18 Oct 2019 07:24:12 -0700 >Cy Schubert wrote: > >> In message <20191018160935.7dda6...@hermann.fritz.box>, "Hartmann, >> O." writes: >> > --Sig_/QDD9BZgeMM6.TJkOIciNb32 >> > Content-Type: text/plain; charset=US-ASCII >> > Content-Transfer-Encoding: quoted-printable >> > >> > On Fri, 18 Oct 2019 14:00:45 +0200 >> > Gary Jennejohn wrote: >> > >> > > On Fri, 18 Oct 2019 12:21:04 +0200 >> > > "Hartmann, O." wrote: >> > >=20 >> > > > On Thu, 17 Oct 2019 21:33:01 + (UTC) >> > > > Conrad Meyer wrote: >> > > > =20 >> > > > > Author: cem >> > > > > Date: Thu Oct 17 21:33:01 2019 >> > > > > New Revision: 353700 >> > > > > URL: https://svnweb.freebsd.org/changeset/base/353700 >> > > > >=20 >> > > > > Log: >> > > > > Implement NetGDB(4) >> > > > > =20 >> > > > > NetGDB(4) is a component of a system using a panic-time >> > > > > network stack to remotely debug crashed FreeBSD kernels over >> > > > > the network, instead of traditional serial interfaces. >> > > > > =20 >> > > > > There are three pieces in the complete NetGDB system. >> > > > > =20 >> > > > > First, a dedicated proxy server must be running to accept >> > > > > connections from both NetGDB and gdb(1), and pass >> > > > > bidirectional traffic between the two protocols. >> > > > > =20 >> > > > > Second, the NetGDB client is activated much like ordinary >> > > > > 'gdb' and similarly to 'netdump' in ddb(4) after a panic. >> > > > > Like other debugnet(4) clients (netdump(4)), the network >> > > > > interface on the route to the proxy server must be online and >> > > > > support debugnet(4). =20 >> > > > > Finally, the remote (k)gdb(1) uses 'target remote >> > > > > :' (like any other TCP remote) to connect to the >> > > > > proxy server.=20 >> > > > > The NetGDB v1 protocol speaks the literal GDB remote serial >> > > > > protocol, and uses a 1:1 relationship between GDB packets and >> > > > > sequences of debugnet packets (fragmented by MTU). There is >> > > > > no encryption utilized to keep debugging sessions private, so >> > > > > this is only appropriate for local segments or trusted >> > > > > networks. =20 >> > > > > Submitted by: John Reimer >> > > > > (earlier version) Discussed some with: emaste, markj >> > > > > Relnotes: sure >> > > > > Differential Revision: >> > > > > https://reviews.freebsd.org/D21568 >> > > > >=20 >> > > > > Added: >> > > > > head/share/man/man4/netgdb.4 (contents, props changed) >> > > > > head/sys/gdb/netgdb.c (contents, props changed) >> > > > > head/sys/gdb/netgdb.h (contents, props changed) >> > > > > Modified: >> > > > > head/share/man/man4/Makefile >> > > > > head/share/man/man4/ddb.4 >> > > > > head/sys/amd64/conf/GENERIC >> > > > > head/sys/conf/NOTES >> > > > > head/sys/conf/files >> > > > > head/sys/conf/options >> > > > > head/sys/gdb/gdb.h >> > > > > head/sys/gdb/gdb_int.h >> > > > > head/sys/gdb/gdb_main.c >> > > > > head/sys/gdb/gdb_packet.c >> > > > > head/sys/i386/conf/GENERIC >> > > > > head/sys/kern/subr_kdb.c >> > > > > head/sys/net/debugnet.c >> > > > > head/sys/net/debugnet.h >> > > > > head/sys/net/debugnet_inet.c >> > > > > head/sys/net/debugnet_int.h >> > > > > head/sys/sys/kdb.h >> > > > > head/sys/sys/param.h >> > > > >=20 >> > > > > Modified: head/share/man/man4/Makefile >> > > > > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >> > > > > >> > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >> > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >> > =3D=3D=3D=3D=3D >> > > > > --- head/share/man/man4/Makefile Thu Oct 17 21:25:50 >> > > > > 2019 (r353699) +++ head/share/man/man4/Makefile >> > > > > Thu Oct 17 21:33:01 2019 (r353700) @@ -307,6 +307,7 @@ >> > > > > MAN=3D aac.4 \ net80211.4 \ >> > > > > netdump.4 \ >> > > > > netfpga10g_nf10bmac.4 \ >> > > > > +netgdb.4 \ >> > > > > netgraph.4 \ >> > > > > netintro.4 \ >> > > > > netmap.4 \ >> > > > >=20 >> > > > [...] >> > > >=20 >> > > >=20 >> > > > Having "nooptions NETGDB # netgdb(4) client >> > > > support" defined in my kernel config file, buildkernel fails >> > > > with the error shown below. >> > > >=20 >> > > > [...] >> > > > --- debugnet.o --- >> > > > /usr/src/sys/net/debugnet.c:662:4: error: implicit declaration >> > > > of function 'db_printf' is invalid in C99 >> > > > [-Werror,-Wimplicit-function-declaration] db_printf("%s: Could >> > > > not get route for that server.\n", ^ >> > > > /usr/src/sys/net/debugnet.c:662:4: note: did you mean >> > > > 'if_printf'? /usr/src/sys/net/if_var.h:679:5: note: 'if_printf' >> > > > declared here int if_printf(struct ifnet *, const char *, >> > > > ...) __printflike(2, 3); ^ 1 error generated. =20 >> > >=20 >> > > And I also had to add "nooptions NETDUMP" to get the kernel to >> > >
Re: svn commit: r353700 - in head: share/man/man4 sys/amd64/conf sys/conf sys/gdb sys/i386/conf sys/kern sys/net sys/sys
On Fri, 18 Oct 2019 07:24:12 -0700 Cy Schubert wrote: > In message <20191018160935.7dda6...@hermann.fritz.box>, "Hartmann, > O." writes: > > --Sig_/QDD9BZgeMM6.TJkOIciNb32 > > Content-Type: text/plain; charset=US-ASCII > > Content-Transfer-Encoding: quoted-printable > > > > On Fri, 18 Oct 2019 14:00:45 +0200 > > Gary Jennejohn wrote: > > > > > On Fri, 18 Oct 2019 12:21:04 +0200 > > > "Hartmann, O." wrote: > > >=20 > > > > On Thu, 17 Oct 2019 21:33:01 + (UTC) > > > > Conrad Meyer wrote: > > > > =20 > > > > > Author: cem > > > > > Date: Thu Oct 17 21:33:01 2019 > > > > > New Revision: 353700 > > > > > URL: https://svnweb.freebsd.org/changeset/base/353700 > > > > >=20 > > > > > Log: > > > > > Implement NetGDB(4) > > > > > =20 > > > > > NetGDB(4) is a component of a system using a panic-time > > > > > network stack to remotely debug crashed FreeBSD kernels over > > > > > the network, instead of traditional serial interfaces. > > > > > =20 > > > > > There are three pieces in the complete NetGDB system. > > > > > =20 > > > > > First, a dedicated proxy server must be running to accept > > > > > connections from both NetGDB and gdb(1), and pass > > > > > bidirectional traffic between the two protocols. > > > > > =20 > > > > > Second, the NetGDB client is activated much like ordinary > > > > > 'gdb' and similarly to 'netdump' in ddb(4) after a panic. > > > > > Like other debugnet(4) clients (netdump(4)), the network > > > > > interface on the route to the proxy server must be online and > > > > > support debugnet(4). =20 > > > > > Finally, the remote (k)gdb(1) uses 'target remote > > > > > :' (like any other TCP remote) to connect to the > > > > > proxy server.=20 > > > > > The NetGDB v1 protocol speaks the literal GDB remote serial > > > > > protocol, and uses a 1:1 relationship between GDB packets and > > > > > sequences of debugnet packets (fragmented by MTU). There is > > > > > no encryption utilized to keep debugging sessions private, so > > > > > this is only appropriate for local segments or trusted > > > > > networks. =20 > > > > > Submitted by: John Reimer > > > > > (earlier version) Discussed some with:emaste, markj > > > > > Relnotes: sure > > > > > Differential Revision: > > > > > https://reviews.freebsd.org/D21568 > > > > >=20 > > > > > Added: > > > > > head/share/man/man4/netgdb.4 (contents, props changed) > > > > > head/sys/gdb/netgdb.c (contents, props changed) > > > > > head/sys/gdb/netgdb.h (contents, props changed) > > > > > Modified: > > > > > head/share/man/man4/Makefile > > > > > head/share/man/man4/ddb.4 > > > > > head/sys/amd64/conf/GENERIC > > > > > head/sys/conf/NOTES > > > > > head/sys/conf/files > > > > > head/sys/conf/options > > > > > head/sys/gdb/gdb.h > > > > > head/sys/gdb/gdb_int.h > > > > > head/sys/gdb/gdb_main.c > > > > > head/sys/gdb/gdb_packet.c > > > > > head/sys/i386/conf/GENERIC > > > > > head/sys/kern/subr_kdb.c > > > > > head/sys/net/debugnet.c > > > > > head/sys/net/debugnet.h > > > > > head/sys/net/debugnet_inet.c > > > > > head/sys/net/debugnet_int.h > > > > > head/sys/sys/kdb.h > > > > > head/sys/sys/param.h > > > > >=20 > > > > > Modified: head/share/man/man4/Makefile > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > > > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > > =3D=3D=3D=3D=3D > > > > > --- head/share/man/man4/Makefile Thu Oct 17 21:25:50 > > > > > 2019 (r353699) +++ head/share/man/man4/Makefile > > > > > Thu Oct 17 21:33:01 2019 (r353700) @@ -307,6 +307,7 @@ > > > > > MAN=3D aac.4 \ net80211.4 \ > > > > > netdump.4 \ > > > > > netfpga10g_nf10bmac.4 \ > > > > > + netgdb.4 \ > > > > > netgraph.4 \ > > > > > netintro.4 \ > > > > > netmap.4 \ > > > > >=20 > > > > [...] > > > >=20 > > > >=20 > > > > Having "nooptions NETGDB # netgdb(4) client > > > > support" defined in my kernel config file, buildkernel fails > > > > with the error shown below. > > > >=20 > > > > [...] > > > > --- debugnet.o --- > > > > /usr/src/sys/net/debugnet.c:662:4: error: implicit declaration > > > > of function 'db_printf' is invalid in C99 > > > > [-Werror,-Wimplicit-function-declaration] db_printf("%s: Could > > > > not get route for that server.\n", ^ > > > > /usr/src/sys/net/debugnet.c:662:4: note: did you mean > > > > 'if_printf'? /usr/src/sys/net/if_var.h:679:5: note: 'if_printf' > > > > declared here int if_printf(struct ifnet *, const char *, > > > > ...) __printflike(2, 3); ^ 1 error generated. =20 > > >=20 > > > And I also had to add "nooptions NETDUMP" to get the kernel to > > > compile and link. > > >=20 > > > > I already had "nooptions NETDUMP" defined. > > > This will fix it. > > Index: sys/net/debugnet.c >
Re: svn commit: r353700 - in head: share/man/man4 sys/amd64/conf sys/conf sys/gdb sys/i386/conf sys/kern sys/net sys/sys
In message <20191018160935.7dda6...@hermann.fritz.box>, "Hartmann, O." writes: > --Sig_/QDD9BZgeMM6.TJkOIciNb32 > Content-Type: text/plain; charset=US-ASCII > Content-Transfer-Encoding: quoted-printable > > On Fri, 18 Oct 2019 14:00:45 +0200 > Gary Jennejohn wrote: > > > On Fri, 18 Oct 2019 12:21:04 +0200 > > "Hartmann, O." wrote: > >=20 > > > On Thu, 17 Oct 2019 21:33:01 + (UTC) > > > Conrad Meyer wrote: > > > =20 > > > > Author: cem > > > > Date: Thu Oct 17 21:33:01 2019 > > > > New Revision: 353700 > > > > URL: https://svnweb.freebsd.org/changeset/base/353700 > > > >=20 > > > > Log: > > > > Implement NetGDB(4) > > > > =20 > > > > NetGDB(4) is a component of a system using a panic-time network > > > > stack to remotely debug crashed FreeBSD kernels over the network, > > > > instead of traditional serial interfaces. > > > > =20 > > > > There are three pieces in the complete NetGDB system. > > > > =20 > > > > First, a dedicated proxy server must be running to accept > > > > connections from both NetGDB and gdb(1), and pass bidirectional > > > > traffic between the two protocols. > > > > =20 > > > > Second, the NetGDB client is activated much like ordinary 'gdb' > > > > and similarly to 'netdump' in ddb(4) after a panic. Like other > > > > debugnet(4) clients (netdump(4)), the network interface on the > > > > route to the proxy server must be online and support debugnet(4). > > > > =20 > > > > Finally, the remote (k)gdb(1) uses 'target remote > > > > :' (like any other TCP remote) to connect to the > > > > proxy server.=20 > > > > The NetGDB v1 protocol speaks the literal GDB remote serial > > > > protocol, and uses a 1:1 relationship between GDB packets and > > > > sequences of debugnet packets (fragmented by MTU). There is no > > > > encryption utilized to keep debugging sessions private, so this is > > > > only appropriate for local segments or trusted networks. > > > > =20 > > > > Submitted by: John Reimer > > > > (earlier version) Discussed some with: emaste, markj > > > > Relnotes: sure > > > > Differential Revision:https://reviews.freebsd.org/D21568 > > > >=20 > > > > Added: > > > > head/share/man/man4/netgdb.4 (contents, props changed) > > > > head/sys/gdb/netgdb.c (contents, props changed) > > > > head/sys/gdb/netgdb.h (contents, props changed) > > > > Modified: > > > > head/share/man/man4/Makefile > > > > head/share/man/man4/ddb.4 > > > > head/sys/amd64/conf/GENERIC > > > > head/sys/conf/NOTES > > > > head/sys/conf/files > > > > head/sys/conf/options > > > > head/sys/gdb/gdb.h > > > > head/sys/gdb/gdb_int.h > > > > head/sys/gdb/gdb_main.c > > > > head/sys/gdb/gdb_packet.c > > > > head/sys/i386/conf/GENERIC > > > > head/sys/kern/subr_kdb.c > > > > head/sys/net/debugnet.c > > > > head/sys/net/debugnet.h > > > > head/sys/net/debugnet_inet.c > > > > head/sys/net/debugnet_int.h > > > > head/sys/sys/kdb.h > > > > head/sys/sys/param.h > > > >=20 > > > > Modified: head/share/man/man4/Makefile > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > =3D=3D=3D=3D=3D > > > > --- head/share/man/man4/MakefileThu Oct 17 21:25:50 > > > > 2019(r353699) +++ head/share/man/man4/Makefile Thu > > > > Oct 17 21:33:01 2019(r353700) @@ -307,6 +307,7 @@ MAN=3D > > > > aac.4 \ net80211.4 \ > > > > netdump.4 \ > > > > netfpga10g_nf10bmac.4 \ > > > > + netgdb.4 \ > > > > netgraph.4 \ > > > > netintro.4 \ > > > > netmap.4 \ > > > >=20 > > > [...] > > >=20 > > >=20 > > > Having "nooptions NETGDB # netgdb(4) client support" > > > defined in my kernel config file, buildkernel fails with the error > > > shown below. > > >=20 > > > [...] > > > --- debugnet.o --- > > > /usr/src/sys/net/debugnet.c:662:4: error: implicit declaration of > > > function 'db_printf' is invalid in C99 > > > [-Werror,-Wimplicit-function-declaration] db_printf("%s: Could not > > > get route for that server.\n", ^ /usr/src/sys/net/debugnet.c:662:4: > > > note: did you mean 'if_printf'? /usr/src/sys/net/if_var.h:679:5: > > > note: 'if_printf' declared here int if_printf(struct ifnet *, > > > const char *, ...) __printflike(2, 3); ^ > > > 1 error generated. =20 > >=20 > > And I also had to add "nooptions NETDUMP" to get the kernel to compile > > and link. > >=20 > > I already had "nooptions NETDUMP" defined. This will fix it. Index: sys/net/debugnet.c === --- sys/net/debugnet.c (revision 353717) +++ sys/net/debugnet.c (working copy) @@ -659,8 +659,10 @@ CURVNET_RESTORE(); if (dest_rt == NULL) { +#ifdef DDB db_printf("%s: Could not get route for that server.\n",
Re: svn commit: r353700 - in head: share/man/man4 sys/amd64/conf sys/conf sys/gdb sys/i386/conf sys/kern sys/net sys/sys
On Fri, 18 Oct 2019 14:00:45 +0200 Gary Jennejohn wrote: > On Fri, 18 Oct 2019 12:21:04 +0200 > "Hartmann, O." wrote: > > > On Thu, 17 Oct 2019 21:33:01 + (UTC) > > Conrad Meyer wrote: > > > > > Author: cem > > > Date: Thu Oct 17 21:33:01 2019 > > > New Revision: 353700 > > > URL: https://svnweb.freebsd.org/changeset/base/353700 > > > > > > Log: > > > Implement NetGDB(4) > > > > > > NetGDB(4) is a component of a system using a panic-time network > > > stack to remotely debug crashed FreeBSD kernels over the network, > > > instead of traditional serial interfaces. > > > > > > There are three pieces in the complete NetGDB system. > > > > > > First, a dedicated proxy server must be running to accept > > > connections from both NetGDB and gdb(1), and pass bidirectional > > > traffic between the two protocols. > > > > > > Second, the NetGDB client is activated much like ordinary 'gdb' > > > and similarly to 'netdump' in ddb(4) after a panic. Like other > > > debugnet(4) clients (netdump(4)), the network interface on the > > > route to the proxy server must be online and support debugnet(4). > > > > > > Finally, the remote (k)gdb(1) uses 'target remote > > > :' (like any other TCP remote) to connect to the > > > proxy server. > > > The NetGDB v1 protocol speaks the literal GDB remote serial > > > protocol, and uses a 1:1 relationship between GDB packets and > > > sequences of debugnet packets (fragmented by MTU). There is no > > > encryption utilized to keep debugging sessions private, so this is > > > only appropriate for local segments or trusted networks. > > > > > > Submitted by: John Reimer > > > (earlier version) Discussed some with:emaste, markj > > > Relnotes: sure > > > Differential Revision: https://reviews.freebsd.org/D21568 > > > > > > Added: > > > head/share/man/man4/netgdb.4 (contents, props changed) > > > head/sys/gdb/netgdb.c (contents, props changed) > > > head/sys/gdb/netgdb.h (contents, props changed) > > > Modified: > > > head/share/man/man4/Makefile > > > head/share/man/man4/ddb.4 > > > head/sys/amd64/conf/GENERIC > > > head/sys/conf/NOTES > > > head/sys/conf/files > > > head/sys/conf/options > > > head/sys/gdb/gdb.h > > > head/sys/gdb/gdb_int.h > > > head/sys/gdb/gdb_main.c > > > head/sys/gdb/gdb_packet.c > > > head/sys/i386/conf/GENERIC > > > head/sys/kern/subr_kdb.c > > > head/sys/net/debugnet.c > > > head/sys/net/debugnet.h > > > head/sys/net/debugnet_inet.c > > > head/sys/net/debugnet_int.h > > > head/sys/sys/kdb.h > > > head/sys/sys/param.h > > > > > > Modified: head/share/man/man4/Makefile > > > == > > > --- head/share/man/man4/Makefile Thu Oct 17 21:25:50 > > > 2019 (r353699) +++ head/share/man/man4/Makefile Thu > > > Oct 17 21:33:01 2019 (r353700) @@ -307,6 +307,7 @@ MAN= > > > aac.4 \ net80211.4 \ > > > netdump.4 \ > > > netfpga10g_nf10bmac.4 \ > > > + netgdb.4 \ > > > netgraph.4 \ > > > netintro.4 \ > > > netmap.4 \ > > > > > [...] > > > > > > Having "nooptions NETGDB # netgdb(4) client support" > > defined in my kernel config file, buildkernel fails with the error > > shown below. > > > > [...] > > --- debugnet.o --- > > /usr/src/sys/net/debugnet.c:662:4: error: implicit declaration of > > function 'db_printf' is invalid in C99 > > [-Werror,-Wimplicit-function-declaration] db_printf("%s: Could not > > get route for that server.\n", ^ /usr/src/sys/net/debugnet.c:662:4: > > note: did you mean 'if_printf'? /usr/src/sys/net/if_var.h:679:5: > > note: 'if_printf' declared here int if_printf(struct ifnet *, > > const char *, ...) __printflike(2, 3); ^ > > 1 error generated. > > And I also had to add "nooptions NETDUMP" to get the kernel to compile > and link. > I already had "nooptions NETDUMP" defined. pgpY92aPh4_Ii.pgp Description: OpenPGP digital signature
Re: svn commit: r353700 - in head: share/man/man4 sys/amd64/conf sys/conf sys/gdb sys/i386/conf sys/kern sys/net sys/sys
On Fri, Oct 18, 2019 at 7:00 AM Gary Jennejohn wrote: > > On Fri, 18 Oct 2019 12:21:04 +0200 > "Hartmann, O." wrote: > > > On Thu, 17 Oct 2019 21:33:01 + (UTC) > > Conrad Meyer wrote: > > > > > Author: cem > > > Date: Thu Oct 17 21:33:01 2019 > > > New Revision: 353700 > > > URL: https://svnweb.freebsd.org/changeset/base/353700 > > > > > > Log: > > > Implement NetGDB(4) > > > > > > NetGDB(4) is a component of a system using a panic-time network > > > stack to remotely debug crashed FreeBSD kernels over the network, > > > instead of traditional serial interfaces. > > > > > > There are three pieces in the complete NetGDB system. > > > > > > First, a dedicated proxy server must be running to accept > > > connections from both NetGDB and gdb(1), and pass bidirectional > > > traffic between the two protocols. > > > > > > Second, the NetGDB client is activated much like ordinary 'gdb' and > > > similarly to 'netdump' in ddb(4) after a panic. Like other > > > debugnet(4) clients (netdump(4)), the network interface on the route > > > to the proxy server must be online and support debugnet(4). > > > > > > Finally, the remote (k)gdb(1) uses 'target remote :' > > > (like any other TCP remote) to connect to the proxy server. > > > > > > The NetGDB v1 protocol speaks the literal GDB remote serial > > > protocol, and uses a 1:1 relationship between GDB packets and > > > sequences of debugnet packets (fragmented by MTU). There is no > > > encryption utilized to keep debugging sessions private, so this is > > > only appropriate for local segments or trusted networks. > > > > > > Submitted by: John Reimer (earlier > > > version) Discussed some with: emaste, markj > > > Relnotes: sure > > > Differential Revision:https://reviews.freebsd.org/D21568 > > > > > > Added: > > > head/share/man/man4/netgdb.4 (contents, props changed) > > > head/sys/gdb/netgdb.c (contents, props changed) > > > head/sys/gdb/netgdb.h (contents, props changed) > > > Modified: > > > head/share/man/man4/Makefile > > > head/share/man/man4/ddb.4 > > > head/sys/amd64/conf/GENERIC > > > head/sys/conf/NOTES > > > head/sys/conf/files > > > head/sys/conf/options > > > head/sys/gdb/gdb.h > > > head/sys/gdb/gdb_int.h > > > head/sys/gdb/gdb_main.c > > > head/sys/gdb/gdb_packet.c > > > head/sys/i386/conf/GENERIC > > > head/sys/kern/subr_kdb.c > > > head/sys/net/debugnet.c > > > head/sys/net/debugnet.h > > > head/sys/net/debugnet_inet.c > > > head/sys/net/debugnet_int.h > > > head/sys/sys/kdb.h > > > head/sys/sys/param.h > > > > > > Modified: head/share/man/man4/Makefile > > > == > > > --- head/share/man/man4/MakefileThu Oct 17 21:25:50 > > > 2019(r353699) +++ head/share/man/man4/Makefile Thu Oct > > > 17 21:33:01 2019(r353700) @@ -307,6 +307,7 @@ MAN= > > > aac.4 \ net80211.4 \ > > > netdump.4 \ > > > netfpga10g_nf10bmac.4 \ > > > + netgdb.4 \ > > > netgraph.4 \ > > > netintro.4 \ > > > netmap.4 \ > > > > > [...] > > > > > > Having "nooptions NETGDB # netgdb(4) client support" > > defined in my kernel config file, buildkernel fails with the error > > shown below. > > > > [...] > > --- debugnet.o --- > > /usr/src/sys/net/debugnet.c:662:4: error: implicit declaration of > > function 'db_printf' is invalid in C99 > > [-Werror,-Wimplicit-function-declaration] db_printf("%s: Could not get > > route for that server.\n", ^ /usr/src/sys/net/debugnet.c:662:4: note: > > did you mean 'if_printf'? /usr/src/sys/net/if_var.h:679:5: note: > > 'if_printf' declared here int if_printf(struct ifnet *, const char > > *, ...) __printflike(2, 3); ^ > > 1 error generated. > > And I also had to add "nooptions NETDUMP" to get the kernel to compile > and link. > diff --git a/sys/conf/files b/sys/conf/files index e47fe27466c..4bc5770e08c 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -4298,7 +4298,7 @@ netinet/libalias/alias_mod.c optional libalias | netgraph_nat netinet/libalias/alias_proxy.c optional libalias inet | netgraph_nat inet netinet/libalias/alias_util.c optional libalias inet | netgraph_nat inet netinet/libalias/alias_sctp.c optional libalias inet | netgraph_nat inet -netinet/netdump/netdump_client.c optional inet netdump +netinet/netdump/netdump_client.c optional inet debugnet netdump netinet6/dest6.c optional inet6 netinet6/frag6.c optional inet6 netinet6/icmp6.c optional inet6 That should fix that one. Thanks, Kyle Evans ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r353700 - in head: share/man/man4 sys/amd64/conf sys/conf sys/gdb sys/i386/conf sys/kern sys/net sys/sys
On Fri, 18 Oct 2019 12:21:04 +0200 "Hartmann, O." wrote: > On Thu, 17 Oct 2019 21:33:01 + (UTC) > Conrad Meyer wrote: > > > Author: cem > > Date: Thu Oct 17 21:33:01 2019 > > New Revision: 353700 > > URL: https://svnweb.freebsd.org/changeset/base/353700 > > > > Log: > > Implement NetGDB(4) > > > > NetGDB(4) is a component of a system using a panic-time network > > stack to remotely debug crashed FreeBSD kernels over the network, > > instead of traditional serial interfaces. > > > > There are three pieces in the complete NetGDB system. > > > > First, a dedicated proxy server must be running to accept > > connections from both NetGDB and gdb(1), and pass bidirectional > > traffic between the two protocols. > > > > Second, the NetGDB client is activated much like ordinary 'gdb' and > > similarly to 'netdump' in ddb(4) after a panic. Like other > > debugnet(4) clients (netdump(4)), the network interface on the route > > to the proxy server must be online and support debugnet(4). > > > > Finally, the remote (k)gdb(1) uses 'target remote :' > > (like any other TCP remote) to connect to the proxy server. > > > > The NetGDB v1 protocol speaks the literal GDB remote serial > > protocol, and uses a 1:1 relationship between GDB packets and > > sequences of debugnet packets (fragmented by MTU). There is no > > encryption utilized to keep debugging sessions private, so this is > > only appropriate for local segments or trusted networks. > > > > Submitted by: John Reimer (earlier > > version) Discussed some with: emaste, markj > > Relnotes: sure > > Differential Revision:https://reviews.freebsd.org/D21568 > > > > Added: > > head/share/man/man4/netgdb.4 (contents, props changed) > > head/sys/gdb/netgdb.c (contents, props changed) > > head/sys/gdb/netgdb.h (contents, props changed) > > Modified: > > head/share/man/man4/Makefile > > head/share/man/man4/ddb.4 > > head/sys/amd64/conf/GENERIC > > head/sys/conf/NOTES > > head/sys/conf/files > > head/sys/conf/options > > head/sys/gdb/gdb.h > > head/sys/gdb/gdb_int.h > > head/sys/gdb/gdb_main.c > > head/sys/gdb/gdb_packet.c > > head/sys/i386/conf/GENERIC > > head/sys/kern/subr_kdb.c > > head/sys/net/debugnet.c > > head/sys/net/debugnet.h > > head/sys/net/debugnet_inet.c > > head/sys/net/debugnet_int.h > > head/sys/sys/kdb.h > > head/sys/sys/param.h > > > > Modified: head/share/man/man4/Makefile > > == > > --- head/share/man/man4/MakefileThu Oct 17 21:25:50 > > 2019(r353699) +++ head/share/man/man4/Makefile Thu Oct > > 17 21:33:01 2019(r353700) @@ -307,6 +307,7 @@ MAN= > > aac.4 \ net80211.4 \ > > netdump.4 \ > > netfpga10g_nf10bmac.4 \ > > + netgdb.4 \ > > netgraph.4 \ > > netintro.4 \ > > netmap.4 \ > > > [...] > > > Having "nooptions NETGDB # netgdb(4) client support" > defined in my kernel config file, buildkernel fails with the error > shown below. > > [...] > --- debugnet.o --- > /usr/src/sys/net/debugnet.c:662:4: error: implicit declaration of > function 'db_printf' is invalid in C99 > [-Werror,-Wimplicit-function-declaration] db_printf("%s: Could not get > route for that server.\n", ^ /usr/src/sys/net/debugnet.c:662:4: note: > did you mean 'if_printf'? /usr/src/sys/net/if_var.h:679:5: note: > 'if_printf' declared here int if_printf(struct ifnet *, const char > *, ...) __printflike(2, 3); ^ > 1 error generated. And I also had to add "nooptions NETDUMP" to get the kernel to compile and link. -- Gary Jennejohn ___ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r353700 - in head: share/man/man4 sys/amd64/conf sys/conf sys/gdb sys/i386/conf sys/kern sys/net sys/sys
On Thu, 17 Oct 2019 21:33:01 + (UTC) Conrad Meyer wrote: > Author: cem > Date: Thu Oct 17 21:33:01 2019 > New Revision: 353700 > URL: https://svnweb.freebsd.org/changeset/base/353700 > > Log: > Implement NetGDB(4) > > NetGDB(4) is a component of a system using a panic-time network > stack to remotely debug crashed FreeBSD kernels over the network, > instead of traditional serial interfaces. > > There are three pieces in the complete NetGDB system. > > First, a dedicated proxy server must be running to accept > connections from both NetGDB and gdb(1), and pass bidirectional > traffic between the two protocols. > > Second, the NetGDB client is activated much like ordinary 'gdb' and > similarly to 'netdump' in ddb(4) after a panic. Like other > debugnet(4) clients (netdump(4)), the network interface on the route > to the proxy server must be online and support debugnet(4). > > Finally, the remote (k)gdb(1) uses 'target remote :' > (like any other TCP remote) to connect to the proxy server. > > The NetGDB v1 protocol speaks the literal GDB remote serial > protocol, and uses a 1:1 relationship between GDB packets and > sequences of debugnet packets (fragmented by MTU). There is no > encryption utilized to keep debugging sessions private, so this is > only appropriate for local segments or trusted networks. > > Submitted by: John Reimer (earlier > version) Discussed some with: emaste, markj > Relnotes: sure > Differential Revision: https://reviews.freebsd.org/D21568 > > Added: > head/share/man/man4/netgdb.4 (contents, props changed) > head/sys/gdb/netgdb.c (contents, props changed) > head/sys/gdb/netgdb.h (contents, props changed) > Modified: > head/share/man/man4/Makefile > head/share/man/man4/ddb.4 > head/sys/amd64/conf/GENERIC > head/sys/conf/NOTES > head/sys/conf/files > head/sys/conf/options > head/sys/gdb/gdb.h > head/sys/gdb/gdb_int.h > head/sys/gdb/gdb_main.c > head/sys/gdb/gdb_packet.c > head/sys/i386/conf/GENERIC > head/sys/kern/subr_kdb.c > head/sys/net/debugnet.c > head/sys/net/debugnet.h > head/sys/net/debugnet_inet.c > head/sys/net/debugnet_int.h > head/sys/sys/kdb.h > head/sys/sys/param.h > > Modified: head/share/man/man4/Makefile > == > --- head/share/man/man4/Makefile Thu Oct 17 21:25:50 > 2019 (r353699) +++ head/share/man/man4/Makefile Thu Oct > 17 21:33:01 2019 (r353700) @@ -307,6 +307,7 @@ MAN= > aac.4 \ net80211.4 \ > netdump.4 \ > netfpga10g_nf10bmac.4 \ > + netgdb.4 \ > netgraph.4 \ > netintro.4 \ > netmap.4 \ > [...] Having "nooptions NETGDB # netgdb(4) client support" defined in my kernel config file, buildkernel fails with the error shown below. [...] --- debugnet.o --- /usr/src/sys/net/debugnet.c:662:4: error: implicit declaration of function 'db_printf' is invalid in C99 [-Werror,-Wimplicit-function-declaration] db_printf("%s: Could not get route for that server.\n", ^ /usr/src/sys/net/debugnet.c:662:4: note: did you mean 'if_printf'? /usr/src/sys/net/if_var.h:679:5: note: 'if_printf' declared here int if_printf(struct ifnet *, const char *, ...) __printflike(2, 3); ^ 1 error generated. pgpuvjPX3Zy3o.pgp Description: OpenPGP digital signature