1) makeoptions DEBUG="-g" in config files still works, if you build your
kernel manually. However, it is disabled in "build.sh release" (and
friends).
2) you can build a netbsd.gdb for arbitrary kernels w/o touching the config
file by "build.sh kernel.gdb=conf"
3) you can force all your local builds to generate netbsd.gdb kernels
(overriding the "build.sh release" part of (1) above) by adding
MKKDEBUG=yes to /etc/mk.conf
4) you can force setting of DEBUG=-g in the generated makefile (without
touching the config file) by running: config -D DEBUG="-g" myconf
We should probably put this somewhere on the wiki, everybody please feel free
to properly document it. Same place should document MKDEBUG=yes and
MKDEBUGLIB=yes for userland.