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: Fri, 26 Aug 2011 18:28:29 -0700
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 <email@hidden> wrote:
> On Mon, Aug 22, 2011 at 6:31 PM, mogambo <email@hidden> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden