Re: gdb error: Premature end of file reading symbol table
Re: gdb error: Premature end of file reading symbol table
- Subject: Re: gdb error: Premature end of file reading symbol table
- From: mogambo <email@hidden>
- Date: Mon, 22 Aug 2011 18:31:47 -0700
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 <email@hidden> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden