Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Getting full debug symbol table?



On Mon, 19 May 2014, Martin Husemann wrote:
But the issue is more complex:

This should all be documented in src/BUILDING (generated from
src/doc/BUILDING.mdoc), but it is not.  Some of it should also be
documented in share/mk/bsd.README.

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.

I see the wiki as extra documentation, possibly more like a tutorial or how-to than a reference. The reference documentation should be in-tree.

--apb (Alan Barrett)


Home | Main Index | Thread Index | Old Index