Re: Kauth stability? (kernel panic)
Re: Kauth stability? (kernel panic)
- Subject: Re: Kauth stability? (kernel panic)
- From: Quinn <email@hidden>
- Date: Fri, 22 Jun 2007 09:34:39 -0700
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:
(gdb) source kgmacros
kgmacros:28: Error in sourced command file:
No struct type named mach_header.
What the other folks said plus... make sure you connect to the target
machine before loading the kauth macros. So, the sequence should be:
(gdb) target remote-kdp
(gdb) attach w.x.y.z
(gdb) add-symbols-file /Volume/KernelDebugKit/mach_kernel
(gdb) source /Volumes/KernelDebugKit/kgmacros
The macro loading process needs to look at the kernel you're
debugging, so if you load before you attach you run into problems.
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden