• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What's the darwinbuild argument to build a debug kernel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the darwinbuild argument to build a debug kernel?


  • Subject: Re: What's the darwinbuild argument to build a debug kernel?
  • From: Kevin Van Vechten <email@hidden>
  • Date: Thu, 13 Oct 2005 12:39:30 -0700


On Oct 12, 2005, at 6:35 PM, Sam Vaughan wrote:



Once upon a time you could build a debug kernel with:

     make KERNEL_CONFIGS=DEBUG all




you still can

set the KERNEL_CONFIGS environment variable to DEBUG
% export KERNEL_CONFIGS=DEBUG
I assume this works with DarwinBuild[1], as the environment variables
will be inherited by the child process,
but have not tried it.




Yeah that's one of the things I tried, but no joy unfortunately.



That probably did succeed in getting the environment variable set, but didn't cause KERNEL_CONFIGS=DEBUG to be passed on the make(1) command line, right? It should be possible to do this by editing your property list and adding an additional environment variable for xnu. The following example is for build 8C46, and you may need to substitute whichever build number you're using:


# darwinxref edit 8C46 xnu

This will display the properties of xnu in your favorite $EDITOR.



// Project xnu for build 8C46
// !$*UTF8*$!
{
        dependencies = {
                build = (
                        adv_cmds,
...



Simply modify it in the following way:



// Project xnu for build 8C46
// !$*UTF8*$!
{


        environment = {
            KERNEL_CONFIGS=DEBUG;
        };


        dependencies = {
                build = (
                        adv_cmds,
...



Then `# darwinbuild xnu` will produce the following results (note the inclusion of "KERNEL_CONFIGS=DEBUG"):




++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++
make install "SRCROOT=/SourceCache/xnu/xnu-792.2.4" "OBJROOT=/ private/var/tmp/xnu/xnu-792.2.4.obj" "SYMROOT=/private/var/tmp/xnu/ xnu-792.2.4.sym" "DSTROOT=/private/var/tmp/xnu/xnu-792.2.4.root" "RC_ProjectName=xnu" "RC_ProjectSourceVersion=792.2.4" "RC_ProjectNameAndSourceVersion=xnu-792.2.4" "RC_ProjectBuildVersion=1" "INSTALLED_PRODUCT_ASIDES=YES" "KERNEL_CONFIGS=DEBUG" "MACOSX_DEPLOYMENT_TARGET=10.4" "NEXT_ROOT=" "RC_ARCHS=ppc i386" "RC_CFLAGS=-pipe -no-cpp-precomp -arch ppc - arch i386" "RC_JASPER=YES" "RC_NONARCH_CFLAGS=-pipe -no-cpp- precomp" "RC_OS=macos" "RC_RELEASE=Tiger" "RC_XBS=YES" "RC_i386=YES" "RC_ppc=YES" "SEPARATE_STRIP=YES" "UNAME_RELEASE=8.0" "UNAME_SYSNAME=Darwin"
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++




Hope this helps,

- Kevin


_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: What's the darwinbuild argument to build a debug kernel? (From: Sam Vaughan <email@hidden>)

  • Prev by Date: Re: getting the application path in VnodeScopeListener
  • Next by Date: RE: How limits are enforced (was: various maxproc limits)
  • Previous by thread: Re: What's the darwinbuild argument to build a debug kernel?
  • Next by thread: mach_kdb on intel?
  • Index(es):
    • Date
    • Thread