PE_enter_debugger("debug")
PE_enter_debugger("debug")
- Subject: PE_enter_debugger("debug")
- From: "Arvind Dalvi" <email@hidden>
- Date: Wed, 28 Feb 2007 19:58:30 +0530
Hello,
I was not sure darwin-driver was the right list, and hence, i am
posting my below query to darwin-kernel....
thanks,
a.d.
Forwarded Conversation
Subject: PE_enter_debugger("debug")
------------------------
From: Arvind Dalvi
To: darwin driver
Date: Wed, Feb 28, 2007 at 7:29 PM
Hello,
I have a simple KEXT (Non IOKit), which calls
PE_enter_debugger("debug") in its initialization phase.
Included <pexpert/pexpert.h> and <kernel/debug.h> along with regular
<libkern/libkern.h> and <mach/mach_types.h>
The KEXT compiles without any errors and warnings.
When i try to load the KEXT using -t option, i get error message saying:
kld(): Undefined symbols:
_PE_enter_debugger
What dependency i am missing in my Info.plist file ?
This is what i have in my OSBundleLibraries key
<key>com.apple.kpi.bsd</key>
<string>8.0.0b1</string>
<key>com.apple.kpi.libkern</key>
<string>8.0.0b1</string>
<key>com.apple.kpi.mach</key>
<string>8.0.0b1</string>
thanks,
a.d.
--------
From: Andrew Gallatin
To: Arvind Dalvi
Cc: darwin driver <email@hidden>
Date: Wed, Feb 28, 2007 at 7:35 PM
Arvind Dalvi writes:
> When i try to load the KEXT using -t option, i get error message saying:
>
> kld(): Undefined symbols:
> _PE_enter_debugger
>
> What dependency i am missing in my Info.plist file ?
For things like this, having the kernel source (and hence the
xnu-$VERSION/config/*exports*) files makes this easy:
% grep PE_enter_debug config/*.exports
config/IOKit.exports:_PE_enter_debugger
config/System6.0.exports:_PE_enter_debugger
So the best way might be to declare a dependency on IOKit.
Drew
--------
From: Arvind Dalvi
To: Andrew Gallatin
Cc: darwin driver <email@hidden>
Date: Wed, Feb 28, 2007 at 7:44 PM
Thanks Andrew....
The KEXT now loads, but it does not freeze the running kernel for debugging....
I am trying to debug Intel version of xnu (Darwin 8.0.1, 10.4). Have
configured 2 VMware VM with the opensource version of the above
Darwin. The debugging VM is ready with gdb....
Could you help me with missing bits...
thanks,
a.d.
[Quoted text 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