Re: Which KPI collection contains PU_enter_debugger?
Re: Which KPI collection contains PU_enter_debugger?
- Subject: Re: Which KPI collection contains PU_enter_debugger?
- From: Terry Lambert <email@hidden>
- Date: Fri, 14 Oct 2005 15:27:23 -0700
On Oct 14, 2005, at 3:13 PM, Ron Aldrich wrote:
I'm writing a kernel file system for Mac OS X 10.4, and would like
to be able to compile some breakpoints into it, but when I load the
extension, I get the following error:
kld(): Undefined symbols:
_PE_enter_debugger
[...]
The documentation warns against playing mix and match between KPI
collections and kernel subcomponents, so currently I've declared
dependancies against all the components I could find which have
"kpi" in their name.
<key>OSBundleLibraries</key>
<dict>
<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>
<key>com.apple.kpi.unsupported</key>
<string>8.0.0b1</string>
</dict>
(As far as I know, I don't reference anything in
com.apple.kpi.unsupported, and since adding it didn't solve my
problem I'll be removing it).
So, is there a KPI collection which contains the PU_enter_debugger
symbol?
Along a more general line, how would I determine which kernel
component contains a particular symbol?
By looking in the exports lists.
IOKit.exports:_PE_enter_debugger
System6.0.exports:_PE_enter_debugger
In this case, you'd need to make sure you tell it you are depending
on IOKit or System6.0.
A betttter approach
Since you are already depending on "unsupported", you could also use
"Debugger":
System6.0.exports:_Debugger
Unsupported.exports:_Debugger
e.g.:
Debugger("My debug breakpoint #1");
But be aware that this method ignores the DB_NMI flag in the "debug="
boot flags, so the only way to turn it off is to do your own check
(which would require IOKit to get the "debug" parsed boot argument)
or recompile without it.
-- Terry
Thanks,
Ron Aldrich
Software Architects, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
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