On Jun 22, 2007, at 12:34 PM, Quinn wrote:
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.
Is that necessary if on both systems I have the PPC KernelDebugKit mounted and I start gdb using this command:
$ gdb --arch ppc -x sym.dbg /Volumes/KernelDebugKit/mach_kernel
(Where sym.dbg runs "target remote-kdp" and "source /Volumes/KernelDebugKit/kgmacros").
Do I still need to explicitly add the symbols even if I run gdb on /Volumes/KernelDebugKit/mach_kernel as shown above?
Thanks,
- Greg