• 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: Sam Vaughan <email@hidden>
  • Date: Thu, 13 Oct 2005 11:35:13 +1000

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.

Alternatively ....

I have a patched kernel[2] I am having trouble building for x86 so
what I tend to do is

% cd /Volumes/Builds/Build8C46od1
% sudo -s
# pushd BuildRoot/Users/Shared/
# tar xzvf ../../../Sources/xnu-792.2.4.tar.gz
# popd
# chroot BuildRoot /bin/sh
sh-2.05b# cd Users/Shared/xnu-792.2.4/
sh-2.05b# make KERNEL_CONFIGS=DEBUG all

the advantage here is that everything I need to build xnu is already
installed
and I have a build environment I can destroy while leaving my machine
in one piece.

That looks promising, thanks for the suggestion, Sam. I recently found the bug I was chasing (I forgot to update a upl offset while doing I/O breakup which triggered an infinite loop in IOBlockStorageDriver) so I've lost my immediate need for a debug kernel, but I'll certainly give this a try next time.


Thanks again,

Sam
_______________________________________________
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


  • Follow-Ups:
    • Re: What's the darwinbuild argument to build a debug kernel?
      • From: Kevin Van Vechten <email@hidden>
  • Prev by Date: getting the application path in VnodeScopeListener
  • Next by Date: Re: getting the application path in VnodeScopeListener
  • Previous by thread: Re: What's the darwinbuild argument to build a debug kernel?
  • Next by thread: Re: What's the darwinbuild argument to build a debug kernel?
  • Index(es):
    • Date
    • Thread