Hi, the KDK from Apple includes a README file (.txt or .html, I forget) which describes how to set up kernel debugging. I'd start by looking at those notes. There have also been WWDC sessions that talk about kernel debugging, e.g.
https://developer.apple.com/videos/play/wwdc2013/707/ (there are PDFs of the slides of the presentation - the lldb part comes at the end) > On Jul 27, 2016, at 10:31 PM, hrishikesh chaudhari via lldb-dev > <lldb-dev@lists.llvm.org> wrote: > > Hi, > I have been trying to debug my kernel Extension. In order to enter a kernel > into a panic mode, I have put hard debug point using (int $3). When the > target system starts, the kernel waits into panic mode for debugger to attach. > > Now the problem is: > > What should I set target in lldb command? I have mach_kernel from KDK (kernel > debug kit) and also have my own kernel extension. if I set mach_kernel a > target I am not able put breakpoint in my kernel extension and if I make > target as my kernel ext ..i can put breakpoint but then after hitting > continue it says invalid process ..... So the question is how to proceed > after connecting bebugger in panic mode??? – hrishikesh chaudhari Jul 22 at > 12:52 > Thanks > -- > Hrishikesh Chaudahri > > _______________________________________________ > lldb-dev mailing list > lldb-dev@lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev _______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev