On Monday, January 6, 2003, at 01:52 PM, Eric Long wrote: In debugging a network kernel extension, can I use gdb, or do I have to use ddb? I'm manually loading and unloading the kext. It seems like I should be able to use gdb. gdb Is it required that I debug remotely, or can I debug on the same machine the extension is running on? Yes. Think about hitting a breakpoint :-}. --Is that a dumb question? (-: Yup :-}. I haven't tried debugging in the kernel before. I found a document called "KernelProgramming.pdf" that provided a lot of instructions, which I've looked at, but it wasn't totally clear on these points. It only talks about remote debugging, but doesn't explicitly say that local debugging is out. If a breakpoint brings the whole kernel to a stop, then it makes sense that debugging would have to be done remotely only. It's out in general. I've used a debugger to peruse local system memory, although not on Mac OS X. Single-stepping and breakpoints in the kernel are hard to manage from the local system. I suppose one could think of ways to do it, but it might not be doing what you want (you'd have to, in some way, debug a virtual image of the kernel, not the kernel). All in all, you get fewer headaches by using remote debugging Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | When LuteFisk is outlawed | Only outlaws will have | LuteFisk *--------------------------------------*-------------------------------* _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Justin C. Walker