• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..24-Oct-201418

BSDKernel.exportsH A D23-Feb-201412.7 KiB

BSDKernel.x86_64.exportsH A D10-Apr-2008225

generate_linker_exports.shH A D04-Nov-2009228

IOKit.exportsH A D28-May-201461.3 KiB

IOKit.x86_64.exportsH A D20-Jul-201424.1 KiB

Libkern.exportsH A D17-Oct-201319.9 KiB

Libkern.x86_64.exportsH A D20-Sep-20115 KiB

list_supported.shH A D31-Oct-20122.1 KiB

MACFramework.exportsH A D17-Oct-2013390

MACFramework.x86_64.exportsH A D17-Oct-2013150

Mach.exportsH A D24-Mar-20141.2 KiB

Mach.x86_64.exportsH A D19-Jun-200825

MakefileH A D20-Mar-20145.6 KiB

MASTERH A D24-Oct-201424.6 KiB

MASTER.x86_64H A D19-Jun-20143.7 KiB

MasterVersionH A D16-May-2013962

newvers.plH A D24-Apr-20146.6 KiB

Private.exportsH A D26-Aug-20146.6 KiB

Private.x86_64.exportsH A D02-Jul-20141,009

README.DEBUG-kernel.txtH A D22-May-20081.3 KiB

System.kext/H18-Sep-20144

Unsupported.exportsH A D07-Feb-20144.2 KiB

Unsupported.x86_64.exportsH A D18-Apr-20131.2 KiB

Unused.exportsH A D06-May-2014179

version.cH A D01-Sep-20102.2 KiB

README.DEBUG-kernel.txt

1This directory contains a universal DEBUG kernel, built for 32-bit and
264-bit Intel. It includes a dSYM bundle for remote kernel debugging
3and live kernel debugging.
4
5INSTALLATION
6
7!!!WARNING!!! These steps will overwrite the default kernel and
8System.kext. Backup all files before attempting these steps.
9
10To install the DEBUG kernel, do:
11bash-3.2$ sudo -s
12bash-3.2# cd /
13bash-3.2# ditto /AppleInternal/Developer/Extras/Kernel\ Debugging/System.kext /System/Library/Extensions/System.kext
14bash-3.2# cp -r /AppleInternal/Developer/Extras/Kernel\ Debugging/mach_kernel* /
15bash-3.2# chown -R root:wheel /System/Library/Extensions/System.kext /mach_kernel*
16bash-3.2# chmod -R g-w /System/Library/Extensions/System.kext /mach_kernel*
17bash-3.2# touch /System/Library/Extensions
18bash-3.2# shutdown -r now
19
20REMOTE KERNEL DEBUGGING
21
22See the documentation that accompanies the Kernel Debug Kit
23
24LIVE KERNEL DEBUGGING
25
26With the DEBUG kernel installed, set "kmem=1" in your "boot-args"
27NVRAM variable, reboot, and do:
28
29bash-3.2$ sudo gdb -a <arch> --quiet /mach_kernel
30(gdb) target darwin-kernel
31(gdb) source /AppleInternal/Developer/Extras/Kernel\ Debugging/kgmacros
32Loading Kernel GDB Macros package.  Type "help kgm" for more info.
33(gdb) attach
34Connected.
35
36<arch> should reflect the currently booted kernel architecture, either
37"i386" or "x86_64"
38
39
40