Jun Sun wrote: > > This patch make the following changes > > 1) CONFIG_REMOTE_DEBUG -> CONFIG_KGDB > 2) CONFIG_DEBUG -> CONFIG_RUNTIME_DEBUG > > MIPS is pretty much the only one (other than the pitiful s390 :0) > using REMOTE_DEBUG instead of KGDB. So it is a good thing to change > it. > > As Keith pointed out, CONFIG_DEBUG is too general (which has > already caused confusion, BTW). RUNTIME_DEBUG is more appropriate. I'd like to propose a further change here, which is to decouple the inclusion of debugging symbols from building with KGDB support. I use a JTAG debugger all the time, and don't need/want KGDB built in (by default it forces the remote GDB to attach and continue, and it steals one of the serial ports on my platform). How about adding "CONFIG_DEBUG_INFO" which simply adds '-g' to the CFLAGS? REMOTE_KGDB can be left independent of this option by allowing either option to enable '-g'. Patch for 2.4 attached. Comments? Kip