darling-xnu/config
2023-05-16 21:41:14 -07:00
..
System.kext Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
BSDKernel.arm64.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
BSDKernel.arm.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
BSDKernel.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
BSDKernel.x86_64.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
generate_combined_symbolsets_plist.sh Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
generate_linker_aliases.sh Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
generate_linker_exports.sh Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
generate_symbolset_plist.sh Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
IOKit.arm64.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
IOKit.arm64.hibernation.MacOSX.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
IOKit.arm64.MacOSX.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
IOKit.arm.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
IOKit.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
IOKit.x86_64.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
IOKit.x86_64.MacOSX.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Libkern.arm64.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Libkern.arm64.MacOSX.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Libkern.arm.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Libkern.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Libkern.x86_64.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Libkern.x86_64.MacOSX.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
list_supported.sh Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
MACFramework.arm64.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
MACFramework.arm.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
MACFramework.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
MACFramework.x86_64.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Mach.arm64.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Mach.arm.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Mach.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Mach.x86_64.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Makefile Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
MASTER Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
MASTER.arm Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
MASTER.arm64 Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
MASTER.arm64.bcm2837 Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
MASTER.arm64.BridgeOS Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
MASTER.arm64.iPhoneOS Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
MASTER.arm64.MacOSX Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
MASTER.x86_64 Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
MasterVersion Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
newvers.pl Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Private.arm64.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Private.arm64.MacOSX.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Private.arm.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Private.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Private.x86_64.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
README.DEBUG-kernel.txt Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Unsupported.arm64.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Unsupported.arm64.MacOSX.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Unsupported.arm.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Unsupported.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Unsupported.x86_64.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Unsupported.x86_64.MacOSX.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Unused.arm64.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Unused.arm.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
Unused.exports Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07:00
version.c Upload xnu-7195.141.2 Source 2023-05-16 21:41:14 -07: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"