[Lldb-commits] [PATCH] Update ObjectFileELF to detect ELF triple based on ELF notes and the ELF header.

Ed Maste emaste at freebsd.org
Wed Jun 25 19:50:48 PDT 2014


Hmm, I just tried w/ a core file I have around, and it seems we correctly get the triple but then fail: 

main-thread ObjectFileELF::GetModuleSpecifications file '/bin/sleep' module OSABI: ELFOSABI_FREEBSD
main-thread ObjectFileELF::GetModuleSpecifications file '/bin/sleep' set ELF module OS type from ELF header OSABI.
main-thread ObjectFileELF::RefineModuleDetailsFromNote parsing note name='FreeBSD', type=1
main-thread ObjectFileELF::RefineModuleDetailsFromNote detected FreeBSD, min version constant 1100021
main-thread ObjectFileELF::RefineModuleDetailsFromNote parsing note name='FreeBSD', type=2
main-thread ObjectFileELF::GetModuleSpecifications file '/bin/sleep' module set to triple: x86_64-unknown-freebsd (architecture x86_64)
main-thread 0x80926b600 Module::Module((x86_64) '/bin/sleep')
main-thread ObjectFileELF::GetModuleSpecifications file '/bin/sleep' module OSABI: ELFOSABI_FREEBSD
main-thread ObjectFileELF::GetModuleSpecifications file '/bin/sleep' set ELF module OS type from ELF header OSABI.
main-thread ObjectFileELF::RefineModuleDetailsFromNote parsing note name='FreeBSD', type=1
main-thread ObjectFileELF::RefineModuleDetailsFromNote detected FreeBSD, min version constant 1100021
main-thread ObjectFileELF::RefineModuleDetailsFromNote parsing note name='FreeBSD', type=2
main-thread ObjectFileELF::GetModuleSpecifications file '/bin/sleep' module set to triple: x86_64-unknown-freebsd (architecture x86_64)
main-thread ObjectFileELF::RefineModuleDetailsFromNote parsing note name='FreeBSD', type=1
main-thread ObjectFileELF::RefineModuleDetailsFromNote detected FreeBSD, min version constant 1100021
main-thread ObjectFileELF::RefineModuleDetailsFromNote parsing note name='FreeBSD', type=2
main-thread Target::Target created with architecture x86_64 (x86_64-unknown-freebsd)
main-thread 0x80926c000 Module::Module((x86_64) 'libc.so.7')
main-thread 0x80926c000 Module::~Module((unknown) '')
main-thread 0x80926c000 Module::Module((x86_64) '/data/emaste/src/llvm/build/sleep.core')
main-thread ObjectFileELF::GetModuleSpecifications file '/data/emaste/src/llvm/build/sleep.core' module OSABI: ELFOSABI_FREEBSD
main-thread ObjectFileELF::GetModuleSpecifications file '/data/emaste/src/llvm/build/sleep.core' set ELF module OS type from ELF header OSABI.
main-thread ObjectFileELF::GetModuleSpecifications file '/data/emaste/src/llvm/build/sleep.core' module set to triple: x86_64-unknown-freebsd (architecture x86_64)
main-thread 0x80926c000 Module::~Module((x86_64) '/data/emaste/src/llvm/build/sleep.core')
main-thread Went to stop the private state thread, but it was already invalid.
error: Unable to find process plug-in for core file '/data/emaste/src/llvm/build/sleep.core'

Looking into it...

http://reviews.llvm.org/D4302






More information about the lldb-commits mailing list