• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Further debugging kernel panics.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Further debugging kernel panics.


  • Subject: Re: Further debugging kernel panics.
  • From: Pekka Nikander <email@hidden>
  • Date: Mon, 27 Sep 2004 09:55:49 +0300

Well I think I know what it is, but can't get the symbols to load.

When I load my kext, and do kextstat, the addresses begin there, so that is must be where it is crashing within my NKE, but I try to
load my kext's symbol file generated by kextload -s, and do backtrace(bt) and still it shows the ??,

I had problems of debugging symbols being removed from my kexts. It appeared that I needed to do two things to fix it:

- change some project property in Xcode (don't remember any more
  which one, as I have moved away from Xcode to use plain old
  Makefiles)

- not to use Xcode to "install" the kext in /tmp, but copy it
  verbatim.  For some reason I couldn't make Xcode install target
  not to strip the kext.

Finally, it was necessary for me to copy back the symbol
table, as generated with kextload -s, from the target machine
back go the machine running gdb, and make sure that I was
loading the right kernel to gdb.  (I was running a debug kernel
on the target machine, and regular kernel on the one where I run
gdb.)

--Pekka

_______________________________________________
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


References: 
 >Further debugging kernel panics. (From: Matt Jaffa <email@hidden>)
 >Re: Further debugging kernel panics. (From: Matt Jaffa <email@hidden>)

  • Prev by Date: Re: Further debugging kernel panics.
  • Next by Date: Re: Further debugging kernel panics.
  • Previous by thread: Re: Further debugging kernel panics.
  • Next by thread: Re: Further debugging kernel panics.
  • Index(es):
    • Date
    • Thread