Hi Robert,

I've searched and searched for a way to do this too.   It sure would be
great if somebody had not only the necessary pieces, but a simple HOWTO doc
as well.   The only GDB information I've seen on this seemed to imply that
you must run an identical copy of the kernel you wish to debug on the 2nd
box that you will debugging from.   Obviously, this is isn't very useful if
your kernel is dying during the boot process.   Additionally, I was
debugging a linux kernel for our Internet appliance  (MediaGX/CS5530).
Luckily I was able to get my kernel code up and running using  printk
through a serial tty device. In some cases - especially very early during
the boot process, you'll have to write directly to the serial port.   I
never trashed the boxes boot code sufficiently to need to hack linux to
support dedicated serial input.

VxWorks supports serial debugging so I'm certain there is a better way than
what I've described above, as well all know what a piece of crap VxWorks is.
The only thing VxWorks has in common with linux are a decent GNU development
environment a at least a few cases where they've stolen linux code.   In
fact, we nailed them on this and used it to force WindRiver to give us their
PPP source, which they had previously refused to do.

Good Luck and let us all know what you discover,
Tim McDaniel


----- Original Message -----
From: Robert Kaiser <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 01, 2000 11:42 AM
Subject: GDB stub for Linux/x86


> Hi everyone,
>
> I would like to remote-debug a Linux/i386 kernel via serial line.
> What I need is a suitable debug stub for GDB to patch into the linux
> kernel source. I'm almost sure that someone must have done this
> before, but I was unable to find anything suitable with the usual
> search engines. Does anyone in this group have a hint for me ?
>
> Thanks in advance!
>
> Rob
>
> ------------------------------------------------------------
> Robert Kaiser                       rkaiser AT sysgo DOT de
> Sysgo RTS GmbH
> Mainz, Germany
>
>
> --
> To unsubscribe from this list, send a message to [EMAIL PROTECTED]
> with the command "unsubscribe linux-embedded" in the message body.
> For more information, see <http://waste.org/mail/linux-embedded>.
>


--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

Reply via email to