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 :content-type:content-transfer-encoding; bh=BCJL87kBjnDk8RJGfIY2P3CV1UFty3VKVproOC1SBVI=; b=UZVfegSWeimlrNEA1jcvM3SC5nF5otooKtutAVd1LiRwjvVLNbew8DJTX+FcdV7N5i W43N25Cp29RFh66AKX4ATrPEyJAq74xmT3gw4Ft2tMfAGNkbzbsdXH9tO9TfdJvYDHMi zZWBTorSPDw5hRlcLSLdWFQX6IqhX+K6pAir0= 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 add symbol table from file "com.omneon.kext.omfs.sym"? (y or n) y Reading symbols from <path>/com.omneon.kext.omfs.sym...Premature end of file reading symbol table (gdb) $ file com.omneon.kext.omfs.sym com.omneon.kext.omfs.sym: Mach-O 64-bit kext bundle x86_64 Brian, using -arch option in kextutil command line does not make a difference. I would highly appreciate some insight into this. -m. On Wed, Aug 17, 2011 at 4:02 PM, mogambo <mogambo13@gmail.com> wrote:
Hi,
While on the subject of kext debugging with gdb on 10.7, I have a related problem. When I try to debug a panic on 10.7, I see the error when I try to load the symbol file.
(gdb) add-symbol-file ~/fsd/symdir/com.omneon.kext.omfs.sym add symbol table from file "~/fsd/symdir/com.omneon.kext.omfs.sym"? (y or n) y Reading symbols from ~/fsd/symdir/com.omneon.kext.omfs.sym...Premature end of file reading symbol table
The symbol file is generated with the following command: sudo kextutil -arch x86_64 -s ~/fsd/symdir ~/fsd/omfs.kext
The backtrace can not show any frames from my kernel extension. Anyone know about this?
Thanks, -m.
_______________________________________________ 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