darling-newlkm/config
2020-05-14 11:17:09 -04:00
..
System.kext xnu-6153.61.1 2020-05-14 11:17:09 -04:00
BSDKernel.arm64.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
BSDKernel.arm.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
BSDKernel.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
BSDKernel.x86_64.exports xnu-3789.41.3 2017-04-03 13:39:39 +02:00
generate_linker_aliases.sh xnu-6153.61.1 2020-05-14 11:17:09 -04:00
generate_linker_exports.sh xnu-6153.61.1 2020-05-14 11:17:09 -04:00
IOKit.arm64.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
IOKit.arm.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
IOKit.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
IOKit.x86_64.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Libkern.arm64.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Libkern.arm.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Libkern.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Libkern.x86_64.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
list_supported.sh xnu-3789.41.3 2017-04-03 13:39:39 +02:00
MACFramework.arm64.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
MACFramework.arm.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
MACFramework.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
MACFramework.x86_64.exports xnu-3789.41.3 2017-04-03 13:39:39 +02:00
Mach.arm64.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Mach.arm.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Mach.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Mach.x86_64.exports xnu-2050.24.15 2017-04-03 13:38:57 +02:00
Makefile xnu-6153.61.1 2020-05-14 11:17:09 -04:00
MASTER xnu-6153.61.1 2020-05-14 11:17:09 -04:00
MASTER.arm xnu-6153.61.1 2020-05-14 11:17:09 -04:00
MASTER.arm64 xnu-6153.61.1 2020-05-14 11:17:09 -04:00
MASTER.arm64.bcm2837 xnu-6153.61.1 2020-05-14 11:17:09 -04:00
MASTER.x86_64 xnu-6153.61.1 2020-05-14 11:17:09 -04:00
MasterVersion xnu-6153.61.1 2020-05-14 11:17:09 -04:00
newvers.pl xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Private.arm64.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Private.arm.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Private.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Private.x86_64.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
README.DEBUG-kernel.txt xnu-2050.24.15 2017-04-03 13:38:57 +02:00
Unsupported.arm64.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Unsupported.arm.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Unsupported.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Unsupported.x86_64.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Unused.arm64.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Unused.arm.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
Unused.exports xnu-6153.61.1 2020-05-14 11:17:09 -04:00
version.c xnu-6153.61.1 2020-05-14 11:17:09 -04:00

This directory contains a universal DEBUG kernel, built for 32-bit and
64-bit Intel. It includes a dSYM bundle for remote kernel debugging
and live kernel debugging.

INSTALLATION

!!!WARNING!!! These steps will overwrite the default kernel and
System.kext. Backup all files before attempting these steps.

To install the DEBUG kernel, do:
bash-3.2$ sudo -s
bash-3.2# cd /
bash-3.2# ditto /AppleInternal/Developer/Extras/Kernel\ Debugging/System.kext /System/Library/Extensions/System.kext
bash-3.2# cp -r /AppleInternal/Developer/Extras/Kernel\ Debugging/mach_kernel* /
bash-3.2# chown -R root:wheel /System/Library/Extensions/System.kext /mach_kernel*
bash-3.2# chmod -R g-w /System/Library/Extensions/System.kext /mach_kernel*
bash-3.2# touch /System/Library/Extensions
bash-3.2# shutdown -r now

REMOTE KERNEL DEBUGGING

See the documentation that accompanies the Kernel Debug Kit

LIVE KERNEL DEBUGGING

With the DEBUG kernel installed, set "kmem=1" in your "boot-args"
NVRAM variable, reboot, and do:

bash-3.2$ sudo gdb -a <arch> --quiet /mach_kernel
(gdb) target darwin-kernel
(gdb) source /AppleInternal/Developer/Extras/Kernel\ Debugging/kgmacros
Loading Kernel GDB Macros package.  Type "help kgm" for more info.
(gdb) attach
Connected.

<arch> should reflect the currently booted kernel architecture, either
"i386" or "x86_64"