site_archiver@lists.apple.com Delivered-To: Darwin-kernel@lists.apple.com (gdb) source kgmacros kgmacros:28: Error in sourced command file: No struct type named mach_header. (gdb) target remote-kdp (gdb) attach w.x.y.z (gdb) add-symbols-file /Volume/KernelDebugKit/mach_kernel (gdb) source /Volumes/KernelDebugKit/kgmacros S+E -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... At 19:53 -0400 21/6/07, Greg wrote: I'm having difficulty using the kgmacros script, I searched google for for it and found a google-cached version of it from xnu-792.6.61. Whenever I try to load it in gdb I get this error: What the other folks said plus... make sure you connect to the target machine before loading the kauth macros. So, the sequence should be: The macro loading process needs to look at the kernel you're debugging, so if you load before you attach you run into problems. This email sent to site_archiver@lists.apple.com
participants (1)
-
Quinn