Re: 2.6 kgdb without serial port

Andrew Morton
2003-12-26T19:08:51Z

Pavel Machek <pavel@ucw.cz> wrote:
>
> 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,

I've been using 2.95.3 on and off for ages, no problems?

> PS: kgdb could use some code-style changes. Will you accept such
> patches?

Spose so. The kgdb stub really needs a serious reorganisation so that
non-ia32 architectures can share generic things. And general reduction of
the patch footprint, maybe some feature removal too. A fairly large job.