Re: [discuss] Re: kgdb for x86_64 2.6 kernels

George Anzinger
2004-01-09T22:17:00Z

Amit,

The base line kgdb code in the mm patches was offered by me. It derives from (a
long time ago) a kgdb I got from the RTIA (or was it the RTLINUX) folks. Prio
to that, well, your name is on it as well as others.

As you may have noted there have been a lot of changes, mostly for the better, I
hope. I think we have slightly different objectives in our work. I debug
kernels, not drivers, so I am interested in getting into kgdb as early as
possible. To this end the current mm patch allows one to put a breakpoint() as
the first line of C code in the kernel. This required a few adjustments, such
as configuring the I/O port at CONFIG time, for example.

I would like for the two versions of kgdb to merge while keeping the features of
both. The work on seperating the common code is something I like and, while I
never do modules, the automatic module stuff in gdb sound good.

May I suggest that we compare and contrast the two versions and take a look at
the differences and the overlaps and settle on one way of doing the various things.

George

--
George Anzinger george@mvista.com
High-res-timers: http://sourceforge.net/projects/high-res-timers/
Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml