Re: lan based kgdb
Alan Cox (alan@lxorguk.ukuu.org.uk)
16 Nov 2002 02:35:03 +0000
On Fri, 2002-11-15 at 22:51, Andrew Morton wrote:
> Stelian Pop wrote:
> >
> > On Fri, Nov 15, 2002 at 09:26:00PM +0000, Linus Torvalds wrote:
> >
> > > I dunno. I might even be willing to apply kgdb patches to my tree if it
> > > just could use the regular network card I already have connected on all
> > > my machines. None of my laptops have a serial line, for example, but
> > > they all have networking.
> > >
> > > Soon even _desktops_ probably won't have serial lines any more, only USB.
> >
> > Using USB instead of the serial line or the network card would be
> > the best IMHO, because:
> >
>
> Here is the kgdb stub's "send a byte" function:
>
> static void
> write_char(int chr)
> {
> while (!(inb(gdb_port + UART_LSR) & UART_LSR_THRE)) ;
>
> outb(chr, gdb_port + UART_TX);
> }
>
> Need I say more?
netdump has polled eepro100 handlers that will plug nicely into this. Of
course you still want a protocol on top of it, but there are some tiny
tcp implementations that are GPL (eg the Linux 8086 TCP by Harry K)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/