Okay, so the first things we need to sort out is the lab. Getting started with Kernel debugging on macOS You’ve been a beginner once and wanted to have fun and learn so shut up. If you are going to say “well if people don’t know what to do with a kernel debugger they shouldn’t use one”, please segfault. Some of them stop at just the “now you should have a working debug session” - so what? what do I do next? I wanna have fun Goddammit! In this write-up I am doing my best to provide the most accurate information for 2019, the right commands, the right boot-args and of course, practical examples you can begin with. There are many write-ups on the internet about debugging the kernel on macOS but many of them are outdated as hell and the NVRAM boot arguments they tell you to set are no longer working. ![]() At first, by hiding under lock and key the documentation about the debug boot arguments, and then by moving the Kernel Debug Kit under the Developer Account-only Downloads section. ![]() Unfortunately, it’s not an easy task nowadays and Apple seems to want to make it harder and harder. ![]() Debugging the damn kernel is a very entertaining thing to do (until you provoke a serious exception, that is, and the kernel crawls into a corner from which it refuses to get out).
0 Comments
Leave a Reply. |