Re: 2.6 kgdb without serial port

From: Pavel Machek
Date: Fri Dec 26 2003 - 14:11:02 EST


Hi!

> > 2.6 kgdb patches in -mm tree seem to contain kgdb-over-ethernet stuff,
> > but still require me to fill in serial port interrupt/address. Is
> > there easy way to make it work without serial port? [This notebook has
> > none :-(].
>
> That's a bit ugly, but things should still work OK? Give it some random
> UART address but specify an ethernet connection at boot time - the kgdb
> stub should never touch the UART.

I found out what was biting me: using 2.95 with kgdb is bad idea. 2.95
with kgdb means reboot just after uncompressing kernel -- pretty nasty
to debug. Please apply,
Pavel
PS: kgdb could use some code-style changes. Will you accept such
patches?

--- tmp/linux/arch/i386/kernel/kgdb_stub.c 2003-12-26 18:50:45.000000000 +0100
+++ linux/arch/i386/kernel/kgdb_stub.c 2003-12-26 18:41:58.000000000 +0100
@@ -121,6 +121,10 @@
#include <linux/inet.h>
#include <linux/kallsyms.h>

+#if __GNUC__ < 3
+#error Sorry, your GCC is too old to work with kgdb. (It works with 3.3.2)
+#endif
+
/************************************************************************
*
* external low-level support routines

--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/