Re: kext debugging in Lion broken?
Re: kext debugging in Lion broken?
- Subject: Re: kext debugging in Lion broken?
- From: Gary Kratkin <email@hidden>
- Date: Tue, 16 Aug 2011 23:24:00 -0300
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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
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