Re: lan based kgdb

yodaiken@fsmlabs.com
Sat, 16 Nov 2002 09:23:41 -0700


On Fri, Nov 15, 2002 at 11:59:32PM +0100, Stelian Pop wrote:
> 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.

Have you ever looked at a USB or 1394 driver? The nice thing about
serial is that the software to make it work is trivial. A debugger that
relies on a 5000 line driver is quite suspect.

>

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

-- 
---------------------------------------------------------
Victor Yodaiken 
Finite State Machine Labs: The RTLinux Company.
www.fsmlabs.com  www.rtlinux.com
1+ 505 838 9109

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