Re: kdb with serial port
Re: kdb with serial port
- Subject: Re: kdb with serial port
- From: Carlos Calderon <email@hidden>
- Date: Tue, 5 Jun 2007 11:14:10 -0700
For posterity:
Some "debug" flags described here: <http://developer.apple.com/
technotes/tn2004/tn2118.html#SECDEBUGFLAGS>
All the "debug" flags are defined here: <Kernel/PrivateHeaders/kern/
debug.h>.
// carlos
On Jun 2, 2007, at 9:50 AM, Terry Lambert wrote:
On Jun 2, 2007, at 8:14 AM, apic | puredarwin.org wrote:
Thank you Terry for this great infos.
I put right after the delay you mentioned a PE_enter_debugger
("debug_me") which works fine, the problem at this point now is
the kernel does not find a mac/ip address to use. Which nic's mac
address is commonly used? The primary interfaces one?
Yes. If this is PPC, and you have bootp setup, then it will set
the IP address to the bootp address in Open Firmware, and then once
it's done that, even though it says it's IP is 0.0.0.0 when it's
waiting for the debugger to attach, the IP address will actually be
what the bootp/dhcpd vended to OF.
For Intel, I just always use the firewire debugging method (or
hardware debugger, if it's too early for IOKit to to have started),
which has the same effect. I don't know if Intel sets the IP in
EFI or not (maybe Derek is listening in on this and can answer).
The way to know if something is registered to handle debugging that
early, BTW, is whether or not it says "waiting for debugger" or it
says "We are hanging here...". If it says the latter, no one has
registered to handle kdp, and you will need to find some way to get
a driver loaded (generally, firewire is the recommended metho - see
the kernel debugging documentation for details).
-- Terry
_______________________________________________
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