Re: kdb with serial port
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com For posterity: // carlos On Jun 2, 2007, at 9:50 AM, Terry Lambert wrote: Thank you Terry for this great infos. _______________________________________________ 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... 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>. On Jun 2, 2007, at 8:14 AM, apic | puredarwin.org wrote: 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/carlos% 40apple.com This email sent to carlos@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Carlos Calderon