mirror of
https://github.com/darlinghq/darling-newlkm.git
synced 2024-12-04 10:03:32 +00:00
.. | ||
System.kext | ||
BSDKernel.arm64.exports | ||
BSDKernel.arm.exports | ||
BSDKernel.exports | ||
BSDKernel.x86_64.exports | ||
generate_linker_aliases.sh | ||
generate_linker_exports.sh | ||
IOKit.arm64.exports | ||
IOKit.arm.exports | ||
IOKit.exports | ||
IOKit.x86_64.exports | ||
Libkern.arm64.exports | ||
Libkern.arm.exports | ||
Libkern.exports | ||
Libkern.x86_64.exports | ||
list_supported.sh | ||
MACFramework.arm64.exports | ||
MACFramework.arm.exports | ||
MACFramework.exports | ||
MACFramework.x86_64.exports | ||
Mach.arm64.exports | ||
Mach.arm.exports | ||
Mach.exports | ||
Mach.x86_64.exports | ||
Makefile | ||
MASTER | ||
MASTER.arm | ||
MASTER.arm64 | ||
MASTER.arm64.bcm2837 | ||
MASTER.x86_64 | ||
MasterVersion | ||
newvers.pl | ||
Private.arm64.exports | ||
Private.arm.exports | ||
Private.exports | ||
Private.x86_64.exports | ||
README.DEBUG-kernel.txt | ||
Unsupported.arm64.exports | ||
Unsupported.arm.exports | ||
Unsupported.exports | ||
Unsupported.x86_64.exports | ||
Unused.arm64.exports | ||
Unused.arm.exports | ||
Unused.exports | ||
version.c |
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"