Re: gdb error: Premature end of file reading symbol table
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=gqo98LlM4C+2GOnxg2pE/iz69Ml5/FvfeFfxJqOPy8A=; b=LwwIn0Dc6O2FloGO4Y8oH/KassUzIR5g7EZHbn9/pYxs1MnZ0aFNDb/5BG5XIrqaFF Z+fdHQzZ+Bvb1lXQiuJRoi6uyuNMbZcYfCaPOMCDD8BDOBr3VzQ1NV40KpPRlvEEM9Kx 0/ZPy/lg1YiGdoCHGS/WRbI9/h7J5rZiX9CsM= Thanks, Brian. I tried what you suggested, but it still does not work. I generated the symbols in the same directory as the kext while loading kext (did not need to use -n). I get the same error. -s. On Tue, Aug 23, 2011 at 8:03 AM, Brian Bechtel <brian.bechtel@gmail.com> wrote:
On Mon, Aug 22, 2011 at 6:31 PM, mogambo <mogambo13@gmail.com> wrote:
This is preventing me from making any progress on debugging the kernel panic further. I am trying to provide more information that seems relevant to me.
MacProQA9:~ apple$ sw_vers ProductName: Mac OS X ProductVersion: 10.7 BuildVersion: 11A494a MacProQA9:~ apple$ uname -a Darwin MacProQA9.local 11.0.0 Darwin Kernel Version 11.0.0: Mon Jun 13 11:33:28 PDT 2011; root:xnu-1699.22.70~3/RELEASE_X86_64 x86_64
$ hdiutil attach ~/Downloads/kernel_debug_kit_mac_os_x_lion_developer_preview_4_update_1_11a494a.dmg /dev/disk2 Apple_partition_scheme /dev/disk2s1 Apple_partition_map /dev/disk2s2 Apple_HFS /Volumes/KernelDebugKit
$ gdb -arch x86_64 /Volumes/KernelDebugKit/mach_kernel GNU gdb 6.3.50-20050815 (Apple version gdb-1704) (Thu Jun 23 10:48:29 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin"... (gdb) add-symbol-file com.omneon.kext.omfs.sym
What if you try "add-kext" instead of "add-symbol-file"? Specify the path to the kext, i.e.
(gdb) add-kext ~/fsd/omfs.kext
sudo kextutil -arch x86_64 -s ~/fsd/symdir ~/fsd/omfs.kext
...but before you do that, build the symbols into the same directory as your kext, e.g.
sudo kextutil -n -arch x86_64 -s ~/fsd/ ~/fsd/omfs.kext
-n don't load the kext, just generate symbols
There were changes in both SnowLeopard and Lion to help search for kexts and their symbols (see a previous post by Jason Molenda in this mailing list) which perhaps means that putting your symbols in a different directory than the kext itself is confusing someone.
Good luck.
_______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
mogambo