Re: PE_enter_debugger("debug")
Re: PE_enter_debugger("debug")
- Subject: Re: PE_enter_debugger("debug")
- From: "Arvind Dalvi" <email@hidden>
- Date: Thu, 1 Mar 2007 01:15:11 +0530
Hello,
As mentioned earlier, i got the KEXT loaded by adding the IOKit
dependency....Thanks Andrew and Mike....
My KEXT by deferencing a NULL pointer breaks into kernel febugging
mode, but is unable to connect to the debugger machine....
(PE_enter_debugger() was doing nothing...)
As mentioned in the Kernel Extension Concepts (
http://developer.apple.com/documentation/Darwin/Conceptual/KEXTConcept/index.html),
i could not set the following (Obviously, this requires the debugging
machine to be POWERPC kind)
==================================
If your target machine is a PowerPC-based Macintosh model not listed
above or an Intel-based Macintosh, enter this command:
$ sudo nvram boot-args="debug=0x14e"
Password:
==================================
But i have set the "debug=0x14e" flag in the
/Library/Preferences/SystemConfiguration/com.apple.Boot.plist file,
which i presume does the required.
Even after following all the procedures mentioned in the link above,
and various others, my target machine is unable to connect to
debugging machine...
It just says: kdp_poll: no debugger device
(NOTE: upon checking the source found that the function pointer
responsible for packet receive function holds on for only 3ms!!! Is my
interpretation correct ?)
Please advise
thanks,
a.d.
==================================
static
void
kdp_poll(
void
)
{
struct ether_header *eh;
struct udpiphdr aligned_ui, *ui = &aligned_ui;
struct ip aligned_ip, *ip = &aligned_ip;
if (pkt.input)
kdp_panic("kdp_poll");
if (!kdp_en_recv_pkt || !kdp_en_send_pkt)
kdp_panic("kdp_poll: no debugger device\n");
pkt.off = 0;
(*kdp_en_recv_pkt)(pkt.data, &pkt.len, 3/* ms */);
if (pkt.len == 0)
return;
if (pkt.len < (sizeof (struct ether_header) + sizeof (struct udpiphdr)))
return;
eh = (struct ether_header *)&pkt.data[pkt.off];
pkt.off += sizeof (struct ether_header);
if (ntohs(eh->ether_type) != ETHERTYPE_IP) {
return;
}
==================================
_______________________________________________
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