Re: kext debugging in Lion broken?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com The debug host doesn't have to be Lion, at least not wrt to using the new gdb. You can get it by extracting DeveloperToolsCLI.pkg from an Xcode 4.1 installer. On Aug 16, 2011, at 11:13 PM, Jason Molenda wrote:
On Aug 16, 2011, at 7:05 PM, Ken Hornstein wrote:
If you are running Xcode 4.1's gdb on your debugger machine, you don't need to generate a .sym file with kextload -s. Instead you can target remote-kdp in gdb (on your "remote computer") and do
(gdb) add-kext ~/XXXX.kext
and gdb will get the addresses of where your kext was loaded directly from the kernel of the Lion system that's in kdp mode. (the kextload -s command that was used previously was the old way of telling gdb where everything got loaded)
Is that Lion only? Because, hot damn, that is cool!
Yeah, it requires the Xcode 4.1 gdb on the debugger-system and it requires a Lion kernel on the debuggee-system - there is a new structure added to the kernel in Lion which gdb reads to get the kext list. Earlier versions of the kernel didn't have that structure so we have to use the old method with the .sym files.
J _______________________________________________ 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/gary%40berktool.com
This email sent to gary@berktool.com
_______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Gary Kratkin