[lldb-dev] [Bug 28017] New: error: failed to load objectfile for static-linking archives?
via lldb-dev
lldb-dev at lists.llvm.org
Mon Jun 6 03:23:04 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28017
Bug ID: 28017
Summary: error: failed to load objectfile for static-linking
archives?
Product: lldb
Version: 3.6
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: chris+llvm at qwirx.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
I'm having trouble debugging my application with LLDB on Mac because it seems
to fail to find some of the compiled object files, which are inside a static
link library (.a file). Objects which are compiled directly into the binary
seem to be OK.
I get errors like this when I first try to access line-level information:
(lldb) l BackupStoreFile.cpp
error: backupstore.a(BackupStoreFile.o) failed to load objfile for
/Users/chris/projects/2004/boxi/bb-git/bin/bbackupquery/../../debug/lib/backupstore/backupstore.a
error: backupstore.a(BackupCommands.o) failed to load objfile for
/Users/chris/projects/2004/boxi/bb-git/bin/bbackupquery/../../debug/lib/backupstore/backupstore.a
...
error: common.a(autogen_CommonException.o) failed to load objfile for
/Users/chris/projects/2004/boxi/bb-git/bin/bbackupquery/../../debug/lib/common/common.a
error: Could not find source file "BackupStoreFile.cpp".
I suspect that either lldb does not fully understand the .a archive format, or
another bug prevents it from locating the correct object file inside the
archive. It is definitely there:
chris at Chriss-MacBook-Pro(backupstorepatch)$ ar t
/Users/chris/projects/2004/boxi/bb-git/bin/bbackupquery/../../debug/lib/backupstore/backupstore.a
__.SYMDEF
BackupAccountControl.o
...
BackupStoreDirectory.o
BackupStoreFile.o
BackupStoreFileCmbDiff.o
...
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160606/308be18b/attachment.html>
More information about the lldb-dev
mailing list