Re: lan based kgdb

From: William Lee Irwin III (wli@holomorphy.com)
Date: Fri Nov 15 2002 - 15:38:54 EST


On Fri, Nov 15, 2002 at 12:29:18PM -0800, Kallol Biswas wrote:
> Is there a source level remote kernel debugger that
> communicates over an ethernet interface? The debugger
> kgdb from kgdb.sourceforge.net works only with serial port.

With some hacking to produce a polling network driver, it should very
well be possible to provide a communication back-end for a gdb stub
that uses an ethernet NIC.

gdb itself is already perfectly capable of communicating with
such targets, using the specifier

        target remote otherhost:1234

where 1234 is the port number the gdb stub on the target reserves for
itself to communicate with the host. It's probably best to use a
dedicated network interface, though it's not absolutely required. (With
a dedicated interface otherhost will then be the interface's hostname.)

A serious issue is that the communication protocol is somewhat more
complex, so there is a possibility the debug runtime will not be robust.

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



This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:39 EST