Re: lan based kgdb

Andrew Morton (akpm@digeo.com)
Fri, 15 Nov 2002 14:51:11 -0800


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?
-
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/