This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb remote debugging, other than serial port?
On Mon, Jul 01, 2002 at 07:34:30PM -0400, Craig Rodrigues wrote:
> On Mon, Jul 01, 2002 at 06:40:35PM -0400, Daniel Jacobowitz wrote:
> > On Mon, Jul 01, 2002 at 12:13:31PM -0500, William A. Gatliff wrote:
> > > Craig:
> > >
> > >
> > > Well, I don't know about FreeBSD, but on my RH73 box, my USB-serial
> > > adapter didn't work. I'm not sure the problem is with gdb, however,
> > > as I didn't get minicom reliably to work either. :^(
> >
> > It sounded like Craig wanted to use a kernel debugger; you can't do
> > that over a USB-serial device.
>
> What's the reason for this? I'm not a serial interface expert,
> so don't really understand all the issues.
Well, it depends what you're trying to do. You were talking about
debugging a network stack, which calls for a kernel debugger, not a
userspace debugger at all. Those use serial because it is a trivial
polled interface and does not require a large driver.
I've used a Keyspan successfully to do userlevel debugging, though - or
to do the client side of kernel debugging.
> Could this potentially work with gdb if I have:
>
> - Legacy PC with serial port, running kernel, sending debug
> messages to serial port
>
> - New laptop with USB only, and no serial port, receiving
> gdb debug messages over the serial adapter
Yep.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer