Re: Stepping Through Apple Sources
Re: Stepping Through Apple Sources
- Subject: Re: Stepping Through Apple Sources
- From: Kevin Brock <email@hidden>
- Date: Mon, 26 Oct 2009 16:43:38 -0700
Duane Murphy wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Is there a document or other information that describes how to setup
gdb with 2 machine debugging to also use Apple Sources? It would be
useful in some of my debugging situations to be able to step through
my code into Apple's sources.
I was doing this while debugging some problems with a network KEXT, and
stepping through the TCP/IP stack, setting breakpoints there etc. to
figure out why a generated packet was getting rejected.
As I recall I simply had to put the sources in the right location.
They're expected to be in
/SourceCache/<project>/<versioned name>
So for example, the xnu sources for 10.5.7 need to be in
/SourceCache/xnu/xnu-1228.12.14
If they're there, and the symbols are loaded, GDB will find them...
Since the versions are different you can have sources for every version
you need in SourceCache at the same time with no conflicts.
I don't think I had to do anything extra to get it working.
Kevin
|
_______________________________________________
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