Re: lan based kgdb

Stelian Pop (stelian.pop@fr.alcove.com)
Fri, 15 Nov 2002 23:59:32 +0100


On Fri, Nov 15, 2002 at 02:51:11PM -0800, Andrew Morton wrote:

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

I already know that, but this is not the point. The point is that
more and more boxes have no serial (or paralel) ports.

But even on those boxes, sometimes I'd just love to be able to use
kgdb. And I can't.

Ok, it will have to be at a higher level than the inb/outb serial
transport implementation (with possible bad effects on what can
and what cannot be debugged), but still, I feel there is a need
for that.

USB (with USB-to-serial adapter), network, ieee1394 would be
acceptable replacements for me.

Stelian.

-- 
Stelian Pop <stelian.pop@fr.alcove.com>
Alcove - http://www.alcove.com
-
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/