DragonFly BSD
DragonFly commits List (threaded) for 2004-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src src/sys/conf src/sys/i386/conf


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 20 Oct 2004 16:03:06 -0700 (PDT)

dillon      2004/10/20 16:03:05 PDT

DragonFly src repository

  Modified files:
    .                    Makefile.inc1 
    sys/conf             kmod.mk Makefile.i386 
    sys/i386/conf        LINT 
  Log:
  Change the default handling for kernels built with debugging info (DEBUG=-g).
  Since GENERIC includes this make option, this applies to most kernels.
  
  Previously, installed kernels were stripped of their debug information and
  installed modules were not.  With this commit, the debug info is left intact
  in the installed kernel and debug information is stripped from all backup
  copies that are made (kernel.old, modules.old).  Developers using DEBUG=-g
  (which is most) may actually see root disk space go down due to the stripping
  of kernel.old and modules.old (-~30MB), even though /kernel will be +~13MB
  larger.
  
  Two new makeoptions are available for specification in your kernel config or
  when you run the buildkernel/nativekernel/installkernel target to make.
  
  INSTALLSTRIPPED=1
  
      The installed kernel and modules will be stripped of debug info.  This
      option effectively reverts you to the pre-commit state of things.
  
  INSTALLSTRIPPEDMODULES=1
  
      The installed modules will be stripped of debug info.  The kernel will
      be left with debug info intact.
  
  What this means is that developres will no longer have to stuff a debug
  kernel off somewhere to use later instead of a crash, savecore will copy
  a debuggable kernel into /var/crash instead of a stripped kernel, and
  snapshot and release CD's will have debug kernels and working crash dumps
  right out of the box.  The memory impact of the debug kernel is zero since
  the debug info is not loaded, and the run-time impact of this change is
  also zero.
  
  The intention is multi-fold:
  
      * To make it easier for inexperienced users to provide meaningful debug
        info to developers when posting bug reports, especially during release
        cycles.
  
      * To not have to make copies of debug kernels for debugging purposes.
        Such copies often get out of sync with the actually running kernel
        and savecore does not know about them.
  
      * To make the debugging environment more uniform, less confusing, and
        easier to use.
  
  Revision  Changes    Path
  1.40      +24 -2     src/Makefile.inc1
  1.17      +7 -0      src/sys/conf/kmod.mk
  1.17      +48 -21    src/sys/conf/Makefile.i386
  1.40      +8 -0      src/sys/i386/conf/LINT


http://www.dragonflybsd.org/cvsweb/src/Makefile.inc1.diff?r1=1.39&r2=1.40&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/conf/kmod.mk.diff?r1=1.16&r2=1.17&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/conf/Makefile.i386.diff?r1=1.16&r2=1.17&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/i386/conf/LINT.diff?r1=1.39&r2=1.40&f=u



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