Debugging a core dump using lldb
Debugging a core dump using lldb
- Subject: Debugging a core dump using lldb
- From: Pratima Kudale <email@hidden>
- Date: Fri, 07 Nov 2014 17:37:22 -0800
- Acceptlanguage: en-US
- Thread-topic: Debugging a core dump using lldb
I am trying to debug a core dump using 10.9.5 kernel debug kit.
I am using below command to load my kext symbols:
target modules add /tmp/my.kext/Contents/MacOS/omfs --symfile /tmp/com.omneon.kext.myfs.sym
target module load --file /tmp/macosx/my.kext/Contents/MacOS/myfs __TEXT <address displayed in showallkexts>
Command works and even image list displays my module with appropriate symbol path.
"target dump symtab " displays all global variables correctly. But when I try to execute either "target variable foo" , it gives below error:
error: can't find global variable 'foo'
Symbols are generated using below command:
kextutil -n -arch x86_64 -s /tmp /tmp/myfs.kext -k /Volumes/KernelDebugKit/mach_kernel
Kext is built and signed from 10.6.8 machine, does that matter? Do I need to build a binary from 10.9 to debug it successfully?
Please let me know if I am doing something wrong here.
Thanks,
Pratima
_______________________________________________
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